mirror of
https://github.com/vrana/adminer.git
synced 2025-08-07 23:27:17 +02:00
Move constants to namespace
This commit is contained in:
@@ -80,10 +80,10 @@ include "../adminer/drivers/mysql.inc.php"; // must be included as last driver
|
||||
|
||||
$jush = Driver::$jush;
|
||||
|
||||
define("SERVER", $_GET[DRIVER]); // read from pgsql=localhost
|
||||
define("DB", $_GET["db"]); // for the sake of speed and size
|
||||
define('Adminer\SERVER', $_GET[DRIVER]); // read from pgsql=localhost
|
||||
define('Adminer\DB', $_GET["db"]); // for the sake of speed and size
|
||||
define(
|
||||
"ME",
|
||||
'Adminer\ME',
|
||||
preg_replace('~\?.*~', '', relative_uri()) . '?'
|
||||
. (sid() ? SID . '&' : '')
|
||||
. (SERVER !== null ? DRIVER . "=" . urlencode(SERVER) . '&' : '')
|
||||
|
Reference in New Issue
Block a user