19 Commits
Author SHA1 Message Date
tracer 609f6ad1f1 Switch download() to curl with browser User-Agent and Referer header
file_get_contents with a stream context User-Agent was still getting 403
from download.phpbb.com on some servers. curl gives more control; adding
a realistic User-Agent and Referer header resolves the block.
2026-06-21 17:52:34 +02:00
tracer 9ecbf8e83e Fix 403 on phpBB archive download by sending a User-Agent header
download.phpbb.com blocks file_get_contents requests that carry no
User-Agent. Added a private download() helper that sets one via stream
context, and wired all three download calls through it. Also added an
early exit with a clear error message if the main archive download fails,
preventing the script from writing an empty file and continuing to the
confirm prompt.
2026-06-21 17:30:12 +02:00
tracer 32532147e8 Minor cleanup 2023-05-29 19:07:23 +02:00
tracer 2fd033a8c5 removed debug stuff 2023-05-29 19:01:16 +02:00
tracer a1b030e463 Fixes for language files7. 2023-05-29 16:18:23 +02:00
tracer 21fb878ffb Fixes for language files6. 2023-05-29 16:17:12 +02:00
tracer 2114bcc8b5 Fixes for language files5. 2023-05-29 16:14:05 +02:00
tracer 7d88fc5066 Fixes for language files4. 2023-05-29 16:12:03 +02:00
tracer 08a53a737f Fixes for language files3. 2023-05-29 16:07:40 +02:00
tracer 46e90bd798 Fixes for language files2. 2023-05-29 15:53:23 +02:00
tracer c8b88021ed Fixes for language files1. 2023-05-29 15:50:59 +02:00
tracer dabe69967d Fixes for language files. 2023-05-29 15:49:01 +02:00
tracer 154bd410a4 added more flibiliy for versions, added dry-run option 2023-05-29 15:26:11 +02:00
tracer 7e85faf2f2 added more flibiliy for versions, added dry-run option 2023-05-29 15:07:19 +02:00
tracer 21e577b2ca Added the changes regarding shebang and php version to the README.md 2022-08-30 14:20:52 +02:00
tracer 04ae283e13 Changed shebang to be more generic, a KeyHelp environment needs an explicit call with keyhelp-php81 2022-08-30 14:18:58 +02:00
tracer 9f31cf0304 Changed shebang to be more generic, a KeyHelp environment needs an explicit call with keyhelp-php81 2022-08-30 14:18:36 +02:00
tracer e3a9fb1454 Lowered required version to php 8.0 2022-08-30 14:16:33 +02:00
tracer b99438c925 Lowered required version to php 8.0 2022-08-30 14:16:25 +02:00
4 changed files with 590 additions and 499 deletions
File diff suppressed because it is too large Load Diff
+4 -2
View File
@@ -5,7 +5,7 @@ Shell Script to update phpBB to current version.
Usage:
Switch into you current phpBB root directory, then
Switch into your current phpBB root directory, then
`git clone https://git.24unix.net/tracer/phpbb_updates.git`
@@ -21,7 +21,7 @@ Then: Install composer (https://getcomposer.org/download/) and run
`composer install`
followed by:
`php update.php`
`php update.php` or `/update.php`
If you are using KeyHelp, replace
@@ -31,3 +31,5 @@ and
+1
View File
@@ -9,6 +9,7 @@
"require": {
"php-school/cli-menu": "^4.3",
"ext-curl": "*",
"ext-posix": "*",
"ext-pdo": "*"
},
+14 -2
View File
@@ -1,9 +1,21 @@
#!/usr/bin/keyhelp-php81 -d apc.enable_cli=1
#!/usr/bin/env php
<?php
use App\UpdateController;
require __DIR__ . '/vendor/autoload.php';
$update = new UpdateController();
$options = $update->parseOpts();
// Help option
if (array_key_exists(key: 'h', array: $options) || array_key_exists(key: 'help', array: $options)) {
$update->printHelp();
exit(0);
}
if (array_key_exists(key: 'd', array: $options) || array_key_exists(key: 'dry-run', array: $options)) {
$update->setDryRun();
}
$update->handleUpdate();