]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_home.php
Complete rewrite of and , wrapper functions added, see bug #101
[mailer.git] / inc / modules / admin / what-config_home.php
index 9c3ae2cc5b8eee198229baa2a5ccaa1c6a82fdc1..7a0d4ccfd0e4b8e463891e012667f508e05e95a9 100644 (file)
@@ -41,7 +41,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 ADD_DESCR("admin", __FILE__);
 
 $sub = "";
-if (!empty($_GET['sub'])) $sub = $_GET['sub'];
+if (REQUEST_ISSET_GET(('sub'))) $sub = REQUEST_GET('sub');
 
 switch ($sub)
 {
@@ -50,9 +50,9 @@ case "": // Output selection table
        break;
 
 case "settings": // Settings related to the index page
-       if (isset($_POST['ok'])) {
+       if (IS_FORM_SENT()) {
                // Save settings
-               ADMIN_SAVE_SETTINGS($_POST);
+               ADMIN_SAVE_SETTINGS_POST();
                OUTPUT_HTML("<a href=\"{!URL!}/modules.php?module=admin&amp;what=config_home&amp;sub=settings\">".ADMIN_CONTINUE_TO_CONFIG."</a>");
        } else {
                // Prepare data for the template
@@ -65,9 +65,9 @@ case "settings": // Settings related to the index page
        break;
 
 case "target": // Set which what-file will be placed in home-page (only modules.php?module=index)
-       if (isset($_GET['home'])) {
+       if (REQUEST_ISSET_GET(('home'))) {
                // Set new home
-               UPDATE_CONFIG("index_home", SQL_ESCAPE($_GET['home']));
+               UPDATE_CONFIG("index_home", SQL_ESCAPE(REQUEST_GET('home')));
        } // END - if
 
        // Load all what menu points