1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

Rename variables to avoid conflict with Adminer 2 sessions and enabled register_globals

This commit is contained in:
Jakub Vrana
2010-10-15 10:58:08 +02:00
parent d69e8c4b08
commit 49565e0563
9 changed files with 34 additions and 34 deletions

View File

@@ -266,7 +266,7 @@ if (!defined("DRIVER")) {
*/
function get_databases($flush = true) {
// SHOW DATABASES can take a very long time so it is cached
$return = &get_session("databases");
$return = &get_session("dbs");
if (!isset($return)) {
if ($flush) {
restart_session();
@@ -523,7 +523,7 @@ if (!defined("DRIVER")) {
* @return string
*/
function create_database($db, $collation) {
set_session("databases", null);
set_session("dbs", null);
return queries("CREATE DATABASE " . idf_escape($db) . ($collation ? " COLLATE " . q($collation) : ""));
}
@@ -532,7 +532,7 @@ if (!defined("DRIVER")) {
* @return bool
*/
function drop_databases($databases) {
set_session("databases", null);
set_session("dbs", null);
return apply_queries("DROP DATABASE", $databases, 'idf_escape');
}