mirror of
https://github.com/cytopia/devilbox.git
synced 2025-02-21 01:42:14 +00:00
Fix Adminer for PHP 8.0/8.1
This commit is contained in:
parent
2d5361891e
commit
4acfa94639
2038
.devilbox/www/htdocs/vendor/adminer-4.7.7-en-php8.php
vendored
Normal file
2038
.devilbox/www/htdocs/vendor/adminer-4.7.7-en-php8.php
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -417,8 +417,10 @@ HTML;
|
||||
if ($el['path'] == '__ADMINER__') {
|
||||
if (version_compare(loadClass('Php')->getVersion(), '5.4', '<')) {
|
||||
$el['path'] = '/vendor/adminer-4.6.3-en.php';
|
||||
} else {
|
||||
} elseif (version_compare(loadClass('Php')->getVersion(), '8.0', '<')){
|
||||
$el['path'] = '/vendor/adminer-4.7.7-en.php';
|
||||
} else {
|
||||
$el['path'] = '/vendor/adminer-4.7.7-en-php8.php';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ DVLBOX_PATH="$( cd "${SCRIPT_PATH}/../.." && pwd -P )"
|
||||
. "${SCRIPT_PATH}/../scripts/.lib.sh"
|
||||
|
||||
RETRIES=10
|
||||
DISABLED_VERSIONS=("8.0" "8.1")
|
||||
DISABLED_VERSIONS=()
|
||||
|
||||
|
||||
echo
|
||||
@ -52,7 +52,7 @@ if ! URL="$( run "\
|
||||
curl -sS --fail 'http://localhost:${HOST_PORT_HTTPD}/index.php' \
|
||||
| tac \
|
||||
| tac \
|
||||
| grep -Eo '/vendor/adminer-[.0-9]+-en\\.php'" \
|
||||
| grep -Eo '/vendor/adminer-[.0-9]+-en(-php8)?\\.php'" \
|
||||
"${RETRIES}" "" "0" )"; then
|
||||
printf "\\r[FAILED] Retrieve Adminer URL\\n"
|
||||
run "curl -sS 'http://localhost:${HOST_PORT_HTTPD}/index.php' || true"
|
||||
|
@ -13,7 +13,7 @@ DVLBOX_PATH="$( cd "${SCRIPT_PATH}/../.." && pwd -P )"
|
||||
. "${SCRIPT_PATH}/../scripts/.lib.sh"
|
||||
|
||||
RETRIES=10
|
||||
DISABLED_VERSIONS=("8.0" "8.1")
|
||||
DISABLED_VERSIONS=()
|
||||
|
||||
|
||||
echo
|
||||
@ -52,7 +52,7 @@ if ! URL="$( run "\
|
||||
curl -sS --fail 'http://localhost:${HOST_PORT_HTTPD}/index.php' \
|
||||
| tac \
|
||||
| tac \
|
||||
| grep -Eo '/vendor/adminer-[.0-9]+-en\\.php'" \
|
||||
| grep -Eo '/vendor/adminer-[.0-9]+-en(-php8)?\\.php'" \
|
||||
"${RETRIES}" "" "0" )"; then
|
||||
printf "\\r[FAILED] Retrieve Adminer URL\\n"
|
||||
run "curl -sS 'http://localhost:${HOST_PORT_HTTPD}/index.php' || true"
|
||||
|
@ -13,7 +13,7 @@ DVLBOX_PATH="$( cd "${SCRIPT_PATH}/../.." && pwd -P )"
|
||||
. "${SCRIPT_PATH}/../scripts/.lib.sh"
|
||||
|
||||
RETRIES=10
|
||||
DISABLED_VERSIONS=("8.0" "8.1")
|
||||
DISABLED_VERSIONS=()
|
||||
|
||||
|
||||
echo
|
||||
@ -52,7 +52,7 @@ if ! URL="$( run "\
|
||||
curl -sS --fail 'http://localhost:${HOST_PORT_HTTPD}/index.php' \
|
||||
| tac \
|
||||
| tac \
|
||||
| grep -Eo '/vendor/adminer-[.0-9]+-en\\.php'" \
|
||||
| grep -Eo '/vendor/adminer-[.0-9]+-en(-php8)?\\.php'" \
|
||||
"${RETRIES}" "" "0" )"; then
|
||||
printf "\\r[FAILED] Retrieve Adminer URL\\n"
|
||||
run "curl -sS 'http://localhost:${HOST_PORT_HTTPD}/index.php' || true"
|
||||
|
Loading…
x
Reference in New Issue
Block a user