fooRequestElementBar() functions renamed, adding of request parameters added:
[mailer.git] / inc / modules / member / what-surfbar_list.php
index 86b919ff2e2d1daaa30f804d4ca728eee927c7e1..b096222d07aeb3dcbe6f4affcebb78b5008e12da 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 09/17/2008 *
- * ================                             Last change: 09/17/2008 *
+ * Mailer v0.2.1-FINAL                                Start: 09/17/2008 *
+ * ===================                          Last change: 09/17/2008 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-surfbar_list.php                            *
@@ -55,11 +55,11 @@ if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
 $URLs = SURFBAR_GET_USER_URLS();
 
 // Are there entries or form is submitted?
-if ((isFormSent()) && (isPostRequestElementSet(('action'))) && (isPostRequestElementSet('id'))) {
+if ((isFormSent()) && (isPostRequestParameterSet(('action'))) && (isPostRequestParameterSet('id'))) {
        // Process the form
        if (SURFBAR_MEMBER_DO_FORM(postRequestArray(), $URLs)) {
                // Action performed but shall we display it?
-               if (((postRequestElement('action') != 'edit') && (postRequestElement('action') != "delete")) || (isPostRequestElementSet(('execute')))) {
+               if (((postRequestParameter('action') != 'edit') && (postRequestParameter('action') != "delete")) || (isPostRequestParameterSet(('execute')))) {
                        // Display "action done" message if action is wether 'edit' nor 'delete' or has been executed
                        loadTemplate('admin_settings_saved', false, getMessage('MEMBER_SURFBAR_ACTION_DONE'));
                } // END - if
@@ -76,7 +76,7 @@ if ((isFormSent()) && (isPostRequestElementSet(('action'))) && (isPostRequestEle
                $content['url'] = generateDerefererUrl($content['url']);
                if ($content['views_total'] > 0) {
                        // Include link to stats
-                       $content['views_total'] = "[<a href=\"{?URL?}/modules.php?module=login&amp;what=surfbar_list\">".translateComma($content['views_total'])."</a>]";
+                       $content['views_total'] = "[<a href=\"{%url=modules.php?module=login&amp;what=surfbar_list%}\">".translateComma($content['views_total'])."</a>]";
                } // END - if
                $content['registered']  = generateDateTime($content['registered'], 2);
                $content['last_locked'] = generateDateTime($content['last_locked'], 2);