]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_home.php
Surfbar actions will never be deleted/locked/undeleted
[mailer.git] / inc / modules / admin / what-config_home.php
index 8c016880427ef26c8c76a43ec90ae9597de276ae..cda95994d6a4da33433e5ddf8fac15196d69537a 100644 (file)
@@ -45,7 +45,9 @@ addYouAreHereLink('admin', __FILE__);
 
 // Init 'sub' value
 $sub = '';
-if (isGetRequestParameterSet('sub')) $sub = getRequestParameter('sub');
+if (isGetRequestParameterSet('sub')) {
+       $sub = getRequestParameter('sub');
+} // END - if
 
 switch ($sub) {
        case 'settings': // Settings related to the index page
@@ -54,14 +56,14 @@ switch ($sub) {
                        adminSaveSettingsFromPostData();
 
                        // Display continue link
-                       loadTemplate('admin_settings_saved', false, '<a href="{%url=modules.php?module=admin&amp;what=config_home&amp;sub=settings%}">{--ADMIN_CONTINUE_TO_CONFIG--}</a>');
+                       displayMessage('<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
                        $content = array_fill(-1, 60, '');
                        $content[getConfig('index_delay')] = ' selected="selected"';
 
                        // Generate selection
-                       $content['cookie_selection'] = createTimeSelections(getConfig('index_cookie'), 'index_cookie', 'YMWD');
+                       $content['cookie_selection'] = createConfigurationTimeSelections('index_cookie', 'YMWD');
 
                        // Output form
                        loadTemplate('admin_config_home_settings', false, $content);
@@ -75,10 +77,17 @@ switch ($sub) {
                } // END - if
 
                // Load all what menu points
-               $result = SQL_QUERY("SELECT id, what, title
-FROM `{?_MYSQL_PREFIX?}_guest_menu`
-WHERE `action`='main' AND `what` != '' AND `what` IS NOT NULL AND `locked`='N'
-ORDER BY `sort` ASC", __FILE__, __LINE__);
+               $result = SQL_QUERY("SELECT
+       `id`, `what`, `title`
+FROM
+       `{?_MYSQL_PREFIX?}_guest_menu`
+WHERE
+       `action`='main' AND
+       `what` != '' AND
+       `what` IS NOT NULL AND
+       `locked`='N'
+ORDER BY
+       `sort` ASC", __FILE__, __LINE__);
 
                // Init variables
                $OUT = '';