Complete rewrite of and , wrapper functions added, see bug #101
[mailer.git] / modules.php
index d19dbb2c85897c60a045786bca72f0bf62803f8a..3a95d923ba0e1db9193fbacde8d79f92632cdb90 100644 (file)
@@ -45,14 +45,14 @@ $GLOBALS['action'] = "";
 $GLOBALS['userid'] = 0;
 
 // Fix missing module to "index"
-if (empty($_GET['module'])) $_GET['module'] = "index";
+if (!REQUEST_ISSET_GET(('module'))) REQUEST_SET_GET('module', "index");
 
 // Secure action/what if present
-if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']);
-if (!empty($_GET['what']))   $GLOBALS['what']   = secureString($_GET['what']);
+if (REQUEST_ISSET_GET(('action'))) $GLOBALS['action'] = secureString(REQUEST_GET('action'));
+if (REQUEST_ISSET_GET(('what')))   $GLOBALS['what']   = secureString(REQUEST_GET('what'));
 
 // Secure the module name (very important line!)
-$GLOBALS['module'] = secureString($_GET['module']);
+$GLOBALS['module'] = secureString(REQUEST_GET('module'));
 
 // Needed include files
 require("inc/config.php");