Commit graph

42 commits

Author SHA1 Message Date
El RIDO
99265e5464
avoid undefined variable warning 2025-07-29 07:49:56 +02:00
El RIDO
4fd63176ad
belt & braces
occasionally paste without meta attribute are encountered (while they are written), leading to:

PHP Warning:  Trying to access array offset on false in /srv/bin/administration on line 287
PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /srv/bin/administration:287
Stack trace:
#0 /srv/bin/administration(287): array_key_exists()
#1 /srv/bin/administration(398): PrivateBin\Administration->_statistics()
#2 /srv/bin/administration(403): PrivateBin\Administration->__construct()
#3 {main}
  thrown in /srv/bin/administration on line 287
2025-07-28 15:39:33 +02:00
El RIDO
2ef562e41e
replaced the term "paste" with the more generic "document"
kudos @Ribas160
2025-07-26 08:44:13 +02:00
El RIDO
634c15a2e8
clearer wording
The comments are not actually read, it just checks if discussion was enabled or not.
2025-07-24 13:44:49 +02:00
El RIDO
b8a3c6f920
replaced the term "paste" with the more generic "document" 2025-07-24 13:34:54 +02:00
Ribas160
d04401c12b
Fix configuration combinations test errors 2025-07-22 22:38:50 +03:00
El RIDO
9eabc7e84e
add statistics on v1 pastes in administration script and an option to delete them 2025-07-05 17:29:26 +02:00
Ribas160
692e7af196 - window.confirm fallbacks for page template removed
- page template removed from configuration-test-generator
2025-07-03 13:13:42 +03:00
El RIDO
cfb609814a
remove duplicate options 2025-04-23 19:05:53 +02:00
Jesus Suarez
bce152c890
Update bin/administration
Use spaces instead of tabs for indentation consistency

Co-authored-by: El RIDO <elrido@gmx.net>
2025-04-22 16:44:12 -05:00
Jesus Suarez
abe7874829
Update bin/administration
Replace tabs with spaces for consistent code formatting

Co-authored-by: El RIDO <elrido@gmx.net>
2025-04-22 16:43:54 -05:00
Jesus Suarez
df1f742789
Update bin/administration
Refactor lines 160-165 as suggested for improved readability and consistency

Co-authored-by: El RIDO <elrido@gmx.net>
2025-04-22 16:43:35 -05:00
Jesus Suarez
1f7f6c93b0
Update bin/administration
Refactor code style: replace tabs with spaces, document new option, and maintain alphabetical order

Co-authored-by: El RIDO <elrido@gmx.net>
2025-04-22 16:43:01 -05:00
root
302921a811 Add --delete-all option to administration script for mass paste deletion 2025-04-22 04:12:46 -05:00
El RIDO
233a69adde
typo in usage 2024-10-19 10:55:36 +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
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
d88945663e detect and report on damaged pastes
May occur during statistics or purge, when existing pastes get parsed, addresses #1214
2023-12-16 07:38:09 +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
8c1310c334
update unit test doc & PHP 8 fixes
having had to re-do all of these steps on a new environment, I noticed
some inconsistencies and updated the doc:
- moved unit testing doc into common doc folder, so it is easier to find
- removed no longer supported Janitor reference
- removed note regarding generated test duration, current version takes
  less than a minute
- addressed each function removal & phpunit deprecations
2023-12-03 13:40:04 +01:00
El RIDO
f56907bd38
increment version 2023-09-11 19:36:45 +02:00
github-actions[bot]
95747ed11c Merge remote-tracking branch 'origin/master' into php8 2023-07-09 07:32:46 +00:00
El RIDO
01afe7d481
incrementing version 2023-07-09 08:44:22 +02:00
El RIDO
dabcafb99b
Merge branch 'master' into php8 2023-07-05 07:15:28 +02:00
El RIDO
01ea041f94
fix PHP 8.2 ${var} string interpolation deprecation
see also https://php.watch/versions/8.2/$%7Bvar%7D-string-interpolation-deprecated
2023-05-21 11:07:21 +02:00
github-actions[bot]
4ae461df47 Merge remote-tracking branch 'origin/master' into php8 2022-12-24 06:11:22 +00:00
El RIDO
e84a8694e4
incrementing version 2022-12-24 05:52:07 +01:00
github-actions[bot]
99ce99a9fc Merge remote-tracking branch 'origin/master' into php8 2022-12-24 04:48:56 +00:00
El RIDO
5de779a989
improve documentation 2022-12-20 19:14:37 +01:00
El RIDO
5c43ab6ef8
refactor administrative script into OOP style and to our code guidelines 2022-12-19 20:41:12 +01:00
El RIDO
d8bcc58d22
Merge branch 'master' into admin 2022-12-05 20:40:33 +01:00
El RIDO
46c0fc851c
Merge branch 'master' into php8 2022-11-17 06:04:12 +01:00
El RIDO
4e2ff47b1c
add an administrative script 2022-11-13 11:18:56 +01:00
El RIDO
b3699cae8f
Merge branch 'master' into bin 2022-11-10 19:28:29 +01:00
El RIDO
669c98550c
add a version check, the third argument in getopt requires PHP >= 7.1 2022-11-06 08:05:41 +01:00
El RIDO
62bb68344c
move all scripts into one location
- standardize includes, namings
- made migrate executable
- updated ConfigurationCombinationsTest generator to work with current persistance API
2022-11-05 09:32:30 +01:00
Felix J. Ogris
9a61e8fd48 started script for storage backend migrations
todo: GCS

added GCS, no GLOBALS, two methods for saving pastes and comments

use GLOBALS for verbosity again

added getAllPastes() to all storage providers

moved to bin, added --delete options, make use of $store->getAllPastes()

added --delete-* options to help

longopts without -- *sigh*

fixed arguments

drop singleton behaviour to allow multiple backends of the same type simultaneously

remove singleton from Model, collapse loop in migrate.php

comments is not indexed

tests without data singleton

fix

exit if scandir() fails

extended meta doc
2022-11-01 16:02:17 +01:00