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:
Maurício Meneghini Fauth 2024-07-14 01:21:55 -03:00
parent 878f8cc706
commit bd2140576b
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
7 changed files with 0 additions and 17 deletions

View File

@ -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(

View File

@ -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.

View File

@ -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;

View 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) {

View File

@ -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) {

View File

@ -3,8 +3,6 @@
declare(strict_types=1);
// phpcs:disable PSR1.Files.SideEffects
define('PHPMYADMIN', true);
define('TESTSUITE', true);
if (! defined('ROOT_PATH')) {

View File

@ -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);
}