Commit Graph

45 Commits

Author SHA1 Message Date
El RIDO 2e11b13464 remove dead code 2025-11-11 17:56:49 +01:00
El RIDO c35fc4f790 use more straight forward in_array check
kudos @Ribas160 for the suggestion
2025-11-11 17:53:50 +01:00
El RIDO a371f5cab5 remove dead code 2025-11-11 12:49:37 +01:00
El RIDO f2164353c3 use realpath and validate tpl directory contents
to ensure only php files inside the tpl dir can get used as templates
2025-11-11 09:34:54 +01:00
El RIDO dae5f7fd61 partially revert #1559
Instead of automatically adding custom templates, we log an error if
that template is missing in the available templates. Still mitigates
arbitrary file inclusion, as the string is now checked against a fixed
allow list.
2025-11-10 17:31:35 +01:00
El RIDO 17ff44037a prevent use of paths in template names, only file names inside tpl directory are allowed 2025-11-10 12:23:50 +01:00
Ribas160 44f8cfbfb8 Fix error when a custom template is not in the default available templates list 2025-06-18 14:51:11 +03:00
El RIDO 5d4561bd0a drop ctype requirement (only one use left) 2025-03-13 08:29:53 +01:00
El RIDO 4b6c8356f5 clarify use of cache buster, avoid using regex 2024-07-09 22:35:21 +02:00
El RIDO e051cde317 apply StyleCI recommendation 2024-07-09 21:48:40 +02:00
El RIDO d27e7e8ee3 make scriptTag parameter a string for flexibility and clarity 2024-07-09 21:38:41 +02:00
El RIDO 8b3b16be44 SRI hashes are now configurable, no longer hardcoded in templates
- addresses #1365
- should make upgrades easier for those using custom templates
- if the JS files got customized, the default SRI hashes can be replaced in the conf.php file, added commented section in conf.sample.php
2024-07-07 16:36:52 +02:00
El RIDO cebc9acce6 enable strict types in PHP 2024-06-04 07:13:55 +02:00
El RIDO 05402ef304 remove version from doc blocs
- @version in file header level isn't used on code docs, it is intended
  for API versions at class or method level
- avoids needing to update all these files on version increment
- avoids needing to regenerate SRI hashes for privatebin.js through
  extra phpunit run
- simplifies VERSION_FILES list
- avoids having to filter above list during loop
- adds a few missing doc bloc headers
2024-05-28 21:03:22 +02:00
El RIDO 22419cd68a incrementing version 2024-05-13 19:18:30 +02:00
El RIDO 5067e9222c incrementing version 2024-05-05 20:43:33 +02:00
El RIDO 7565be8ed5 initial work on a bootstrap 5 template
current status:
- renders without PHP errors & passes unit tests
- displays pastes
- responsive navbar
- right-to-left support
- auto dark mode with toggle

to be done:
- add "Dark Mode" to translation strings
- get expiration and format selections to work
- fix modals (password, QR-code, etc.)
- replace glyphicons with Bootstrap Icons (no longer included)
- test all the different settings and combinations
- check tab alignment in HTML source
2024-04-01 18:59:28 +02:00
El RIDO aad975a721 incrementing version 2024-02-11 15:31:11 +01:00
El RIDO a3ee624d3a incrementing version 2024-02-11 14:17:27 +01:00
El RIDO d0420fb418 1.6.2 release 2023-12-15 07:20:20 +01:00
El RIDO 3bd570bd6a incrementing version 2023-12-04 21:07:17 +01:00
El RIDO f56907bd38 increment version 2023-09-11 19:36:45 +02:00
El RIDO 01afe7d481 incrementing version 2023-07-09 08:44:22 +02:00
El RIDO e84a8694e4 incrementing version 2022-12-24 05:52:07 +01:00
El RIDO b5602dd1ae incrementing version 2022-12-11 05:02:15 +01:00
El RIDO 4056057a3c updated some links to https 2022-11-18 05:36:33 +01:00
El RIDO 456ced37c2 incrementing version 2022-04-05 07:30:51 +02:00
El RIDO 458ebcb321 incrementing version 2021-04-05 17:05:14 +02:00
El RIDO 9914c37683 incrementing version 2020-03-22 06:44:04 +01:00
El RIDO adece1d784 incrementing version 2020-02-16 11:15:51 +01:00
El RIDO ed590ee557 incrementing version 2020-01-08 19:31:06 +01:00
El RIDO 2d4edfe401 incrementing version number in preparation of release 2019-09-22 19:42:04 +02:00
El RIDO 07018e5876 incrementing version number in preparation of release 2019-07-08 18:35:34 +02:00
El RIDO b5ebc4a3d7 incrementing version 2018-08-11 19:29:58 +02:00
El RIDO cfe60db8fd increment version number 2018-07-01 13:11:32 +02:00
El RIDO 6fa2bfe30e updated documentation, incremented version 2017-10-08 16:40:51 +02:00
El RIDO bbcc3e167b implementing recommendations of scrutinizer 2017-03-25 00:58:59 +01:00
El RIDO 67f6c4eb61 turned bootstrap template variants into logic 2017-01-08 10:02:07 +01:00
El RIDO 1426d4e371 tagging 1.1 release and updating documentation 2016-12-26 12:13:50 +01:00
rugk da10a761c4 Fix more typos 2016-12-12 18:50:00 +01:00
rugk 658d5ae84d Fix style-ci errors 2016-12-12 18:43:23 +01:00
El RIDO 1f46823942 applying patch based on StyleCI ruleset 2016-10-29 10:24:08 +02:00
El RIDO e925833090 bumping version number to 1.0 2016-08-25 09:53:31 +02:00
El RIDO ca66653d0c applying: php-cs-fixer fix lib/ --level=psr2 2016-08-11 15:05:43 +02:00
El RIDO b45bef8388 Renamed classes for full PSR-2 compliance, some cleanup 2016-08-09 11:54:42 +02:00