Permalink
Browse files

No longer depend on grab_globals.lib.php for $_GET variables

  • Loading branch information...
1 parent 4f91642 commit 0e4a4fca95edd959c2c77a401eb474f86740f40f @lem9 lem9 committed Feb 29, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 server_privileges.php
View
@@ -28,6 +28,25 @@
$conditional_class = '';
}
+if (isset($_GET['username'])) {
+ $GLOBALS['username'] = $_GET['username'];
+}
+if (isset($_GET['hostname'])) {
+ $GLOBALS['hostname'] = $_GET['hostname'];
+}
+if (isset($_GET['dbname'])) {
+ $GLOBALS['dbname'] = $_GET['dbname'];
+}
+if (isset($_GET['tablename'])) {
+ $GLOBALS['tablename'] = $_GET['tablename'];
+}
+if (isset($_GET['checkprivs'])) {
+ $GLOBALS['checkprivs'] = $_GET['checkprivs'];
+}
+if (isset($_GET['initial'])) {
+ $GLOBALS['initial'] = $_GET['initial'];
+}
+
/**
* Messages are built using the message name
*/

0 comments on commit 0e4a4fc

Please sign in to comment.