]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_home.php
fooRequestElementBar() functions renamed, adding of request parameters added:
[mailer.git] / inc / modules / admin / what-config_home.php
index 80dd70947ef7c01ec9c81b779811463cde87e0d8..106ed65c428fa0af472f3144a7f9be2aaee2de8f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
  * Mailer v0.2.1-FINAL                                Start: 09/22/2004 *
- * ================                             Last change: 09/22/2004 *
+ * ===================                          Last change: 09/22/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-config_home.php                             *
@@ -46,7 +46,7 @@ addMenuDescription('admin', __FILE__);
 
 // Init 'sub' value
 $sub = '';
-if (isGetRequestElementSet('sub')) $sub = getRequestElement('sub');
+if (isGetRequestParameterSet('sub')) $sub = getRequestParameter('sub');
 
 switch ($sub) {
        case 'settings': // Settings related to the index page
@@ -55,7 +55,7 @@ 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>");
+                       loadTemplate('admin_settings_saved', false, '<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, '');
@@ -70,9 +70,9 @@ switch ($sub) {
                break;
 
        case 'target': // Set which what-file will be placed in home-page (only modules.php?module=index)
-               if (isGetRequestElementSet(('home'))) {
+               if (isGetRequestParameterSet(('home'))) {
                        // Set new home
-                       updateConfiguration('index_home', getRequestElement(('home')));
+                       updateConfiguration('index_home', getRequestParameter(('home')));
                } // END - if
 
                // Load all what menu points
@@ -88,13 +88,13 @@ ORDER BY `sort` ASC", __FILE__, __LINE__);
                // Process all entries
                while ($content = SQL_FETCHARRAY($result)) {
                        // Link for setting 'what' as new "home"
-                       $newHomeLink = "<a href=\"{?URL?}/modules.php?module=admin&amp;what=config_home&amp;sub=target&amp;home=".$content['what']."\">{--_IS_NEW_HOME--}</a>";
+                       $newHomeLink = '<a href="{%url=modules.php?module=admin&amp;what=config_home&amp;sub=target&amp;home=' . $content['what'] . '%}">{--_IS_NEW_HOME--}</a>';
 
                        // Is this current home?
                        if ($content['what'] == getConfig('index_home')) {
                                // Is current home
-                               $newHomeLink = "<div class=\"admin_mark\">{--_IS_CURRENT_HOME--}</div>";
-                               $content['title'] = "<div class=\"admin_mark\">".$content['title']."</div>";
+                               $newHomeLink      = '<div class="admin_mark">{--_IS_CURRENT_HOME--}</div>';
+                               $content['title'] = '<div class="admin_mark">' . $content['title'] . '</div>';
                        } // END - if
 
                        // Prepare content