Remove the PHPMYADMIN constant
This constant was used to avoid non-entry-points scripts being called
directly. As phpMyAdmin has a public directory now, directly calling
scripts outside public is not possible anymore.
Introduced by afbb2a9dc2.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
878f8cc706
commit
bd2140576b
@ -2,10 +2,6 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
if (! defined('PHPMYADMIN')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$vendorConfig = require_once ROOT_PATH . 'app/vendor_config.php';
|
||||
if (
|
||||
! is_array($vendorConfig) || ! isset(
|
||||
|
||||
@ -9,10 +9,6 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
if (! defined('PHPMYADMIN')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
return [
|
||||
/**
|
||||
* Path to vendor autoload file. Useful when you want to have vendor dependencies somewhere else.
|
||||
|
||||
@ -16,7 +16,6 @@ if (! defined('ROOT_PATH')) {
|
||||
define('ROOT_PATH', dirname(__DIR__) . DIRECTORY_SEPARATOR);
|
||||
}
|
||||
|
||||
define('PHPMYADMIN', true);
|
||||
require_once ROOT_PATH . 'app/constants.php';
|
||||
require_once AUTOLOAD_FILE;
|
||||
|
||||
|
||||
@ -9,7 +9,6 @@ if (! defined('ROOT_PATH')) {
|
||||
define('ROOT_PATH', dirname(__DIR__) . DIRECTORY_SEPARATOR);
|
||||
}
|
||||
|
||||
define('PHPMYADMIN', true);
|
||||
// phpcs:enable
|
||||
|
||||
if (PHP_VERSION_ID < 80102) {
|
||||
|
||||
@ -9,7 +9,6 @@ if (! defined('ROOT_PATH')) {
|
||||
define('ROOT_PATH', dirname(__DIR__, 2) . DIRECTORY_SEPARATOR);
|
||||
}
|
||||
|
||||
define('PHPMYADMIN', true);
|
||||
// phpcs:enable
|
||||
|
||||
if (PHP_VERSION_ID < 80102) {
|
||||
|
||||
@ -3,8 +3,6 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
// phpcs:disable PSR1.Files.SideEffects
|
||||
|
||||
define('PHPMYADMIN', true);
|
||||
define('TESTSUITE', true);
|
||||
|
||||
if (! defined('ROOT_PATH')) {
|
||||
|
||||
@ -14,10 +14,6 @@ if (! defined('ROOT_PATH')) {
|
||||
}
|
||||
|
||||
// phpcs:disable PSR1.Files.SideEffects
|
||||
if (! defined('PHPMYADMIN')) {
|
||||
define('PHPMYADMIN', true);
|
||||
}
|
||||
|
||||
if (! defined('TESTSUITE')) {
|
||||
define('TESTSUITE', true);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user