Skip to content

Commit 06714df

Browse files
committed
fix
1 parent 5d4770c commit 06714df

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

requirements.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
<?php
22
if (!defined('PHP_VERSION_ID')) {
3-
$version = explode('.', PHP_VERSION);
4-
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
3+
$version = explode('.', PHP_VERSION);
4+
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
55
}
66
if (PHP_VERSION_ID < 50300) {
7-
echo "ERROR: PHP 5.3 or higher required\n";
8-
exit(1);
7+
echo "ERROR: PHP 5.3 or higher required\n";
8+
exit(1);
99
}
1010
if (!function_exists('mysqli_connect')) {
11-
echo "ERROR: MySQLi extension not found\n";
12-
exit(1);
11+
echo "ERROR: MySQLi extension not found\n";
12+
exit(1);
1313
}
14-
if (!file_exists('tools/latest.php')) {
15-
echo "INFO: Adminer not found, downloading...\n";
16-
file_put_contents('tools/latest.php',file_get_contents('http://adminer.org/latest.php'));
14+
if (!file_exists('vendor/mindaphp/tools/latest.php')) {
15+
echo "INFO: Adminer not found, downloading...\n";
16+
file_put_contents('vendor/mindaphp/tools/latest.php', file_get_contents('http://adminer.org/latest.php'));
1717
}
18-
if (!file_exists('tools/latest.php')) {
19-
echo "ERROR: Could not write 'tools/latest.php'\n";
20-
exit(1);
18+
if (!file_exists('vendor/mindaphp/tools/latest.php')) {
19+
echo "ERROR: Could not write 'vendor/mindaphp/tools/latest.php'\n";
20+
exit(1);
2121
}
2222
if (!file_exists('composer.phar')) {
23-
echo "INFO: Composer not found, downloading...\n";
24-
file_put_contents('composer.phar',file_get_contents('https://getcomposer.org/composer.phar'));
23+
echo "INFO: Composer not found, downloading...\n";
24+
file_put_contents('composer.phar', file_get_contents('https://getcomposer.org/composer.phar'));
2525
}
2626
if (!file_exists('composer.phar')) {
27-
echo "ERROR: Could not write 'composer.phar'\n";
28-
exit(1);
27+
echo "ERROR: Could not write 'composer.phar'\n";
28+
exit(1);
2929
}
3030
if (!file_exists('phpunit.phar')) {
31-
echo "INFO: PHPUnit not found, downloading...\n";
32-
file_put_contents('phpunit.phar',file_get_contents('https://phar.phpunit.de/phpunit.phar'));
31+
echo "INFO: PHPUnit not found, downloading...\n";
32+
file_put_contents('phpunit.phar', file_get_contents('https://phar.phpunit.de/phpunit.phar'));
3333
}
3434
if (!file_exists('phpunit.phar')) {
35-
echo "ERROR: Could not write 'phpunit.phar'\n";
36-
exit(1);
35+
echo "ERROR: Could not write 'phpunit.phar'\n";
36+
exit(1);
3737
}
3838
exit(0);

0 commit comments

Comments
 (0)