Skip to content

Commit dfb29f0

Browse files
authored
Merge pull request #274 from iMattPro/updates
Update phpbb4 issues
2 parents 79f0414 + aef1a70 commit dfb29f0

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ QuickInstall is designed to run on all modern browsers. Please don't use old stu
4040
##### phpBB Requirements
4141
phpBB boards require a web server running PHP and one of the following database management systems.
4242

43-
| phpBB | PHP | MySQL | MariaDB | PostgreSQL | SQLite | MS SQL |
44-
|---------------|---------------|--------|---------|------------|----------------|--------------|
45-
| 4.0.x (alpha) | 7.3.0 - 8.x | 4.1.3+ | 5.1+ | 8.3+ | SQLite 3.6.15+ | Server 2000+ |
46-
| 3.3.x | 7.1.3 - 8.x | 4.1.3+ | 5.1+ | 8.3+ | SQLite 3.6.15+ | Server 2000+ |
47-
| 3.2.2 - 3.2.x | 5.4.7 - 7.2.x | 3.23+ | 5.1+ | 8.3+ | SQLite 3.6.15+ | Server 2000+ |
48-
| 3.2.0 - 3.2.1 | 5.4.7 - 7.1.x | 3.23+ | 5.1+ | 8.3+ | SQLite 3.6.15+ | Server 2000+ |
49-
| 3.1.x | 5.4.7 - 5.6.x | 3.23+ | 5.1+ | 8.3+ | SQLite 2 or 3 | Server 2000+ |
50-
| 3.0.x | 5.4.7 - 5.6.x | 3.23+ | - | 7.x | SQLite 2 | Server 2000 |
43+
| phpBB | PHP | MySQL | MariaDB | PostgreSQL | SQLite | MS SQL |
44+
|----------------|---------------|--------|---------|------------|----------------|--------------|
45+
| 4.0.0 (alpha) | 8.1+ | 4.1.3+ | 5.1+ | 8.3+ | SQLite 3.6.15+ | Server 2000+ |
46+
| 3.3.11 - 3.3.x | 7.2.0 - 8.x | 4.1.3+ | 5.1+ | 8.3+ | SQLite 3.6.15+ | Server 2000+ |
47+
| 3.3.0 - 3.3.10 | 7.1.3 - 8.x | 4.1.3+ | 5.1+ | 8.3+ | SQLite 3.6.15+ | Server 2000+ |
48+
| 3.2.2 - 3.2.11 | 5.4.7 - 7.2.x | 3.23+ | 5.1+ | 8.3+ | SQLite 3.6.15+ | Server 2000+ |
49+
| 3.2.0 - 3.2.1 | 5.4.7 - 7.1.x | 3.23+ | 5.1+ | 8.3+ | SQLite 3.6.15+ | Server 2000+ |
50+
| 3.1.x | 5.4.7 - 5.6.x | 3.23+ | 5.1+ | 8.3+ | SQLite 2 or 3 | Server 2000+ |
51+
| 3.0.x | 5.4.7 - 5.6.x | 3.23+ | - | 7.x | SQLite 2 | Server 2000 |
5152

5253
## 🐞 Support
5354
You can receive support at the [phpBB3 QuickInstall Discussion/Support](https://www.phpbb.com/customise/db/official_tool/phpbb3_quickinstall/support) forum.

includes/qi_file.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,9 @@ public static function copy_dir($src_dir, $dst_dir)
5151
self::append_slash($src_dir);
5252
self::append_slash($dst_dir);
5353

54-
if (!is_dir($dst_dir))
54+
if (!is_dir($dst_dir) && !mkdir($dst_dir) && !is_dir($dst_dir))
5555
{
56-
if (!mkdir($dst_dir) && !is_dir($dst_dir))
57-
{
58-
throw new \RuntimeException('COPY_DIR_ERROR');
59-
}
56+
throw new RuntimeException('COPY_DIR_ERROR');
6057
}
6158

6259
foreach (scandir($src_dir) as $file)

includes/qi_functions.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,20 @@ function legacy_request_var($var_name, $default, $multibyte = false, $cookie = f
278278
}
279279
else
280280
{
281-
list($key_type, $type) = each($default);
281+
// Get first key and value
282+
$key_type = key($default);
283+
$type = current($default);
282284
$type = gettype($type);
283285
$key_type = gettype($key_type);
286+
284287
if ($type === 'array')
285288
{
286289
reset($default);
287290
$default = current($default);
288-
list($sub_key_type, $sub_type) = each($default);
291+
292+
// Get first key and value of the nested array
293+
$sub_key_type = key($default);
294+
$sub_type = current($default);
289295
$sub_type = gettype($sub_type);
290296
$sub_type = ($sub_type === 'array') ? 'NULL' : $sub_type;
291297
$sub_key_type = gettype($sub_key_type);

modules/qi_create.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,12 @@ public function run()
855855

856856
// add log entry :D
857857
$user->ip = &$user_ip;
858-
if (defined('PHPBB_31'))
858+
if (defined('PHPBB_40'))
859+
{
860+
global $phpbb_log;
861+
$phpbb_log->add('admin', 2, $user->ip, qi::lang('LOG_INSTALL_INSTALLED_QI', qi::current_version()));
862+
}
863+
else if (defined('PHPBB_31'))
859864
{
860865
add_log('admin', qi::lang('LOG_INSTALL_INSTALLED_QI', qi::current_version()));
861866
}

0 commit comments

Comments
 (0)