]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_mods.php
Global rewrite of engine:
[mailer.git] / inc / modules / admin / what-config_mods.php
index f490afd9d42039f2055e70060dd33330cc68373a..d2605ecc0ccfc68b6cf9b3634683aa59be654daf 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 08/27/2004 *
- * ================                             Last change: 08/27/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 08/27/2004 *
+ * ===================                          Last change: 08/27/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-config_mods.php                             *
@@ -44,11 +44,9 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
 
-$SEL = '0';
 if (isPostRequestElementSet('edit')) {
        // Check if at least one module is selected
-       $SEL = countPostSelection();
-       if ($SEL > 0) {
+       if (countPostSelection() > 0) {
                // Output header
                $OUT = ''; $SW = 2;
 
@@ -119,7 +117,7 @@ if (isPostRequestElementSet('edit')) {
        loadTemplate('admin_settings_saved', false, getMessage('MODS_CHANGED'));
 }
 
-if ($SEL == '0') {
+if (countPostSelection() == '0') {
        // Load module data (We do not need to check if there's at least one...)
        $result = SQL_QUERY('SELECT id, module, locked, hidden, admin_only, title, mem_only
 FROM `{?_MYSQL_PREFIX?}_mod_reg`
@@ -130,8 +128,8 @@ ORDER BY module', __FILE__, __LINE__);
                if (empty($content['title'])) $content['title'] = '---';
                if (($content['module'] == 'index') || ($content['module'] == 'login')) {
                        // Add link to detail statistics
-                       $content['module'] = "<strong><a href=\"{?URL?}/modules.php?module=admin&amp;what=stats_mods&amp;mod=".$content['module']."\">".$content['module']."</a></strong>";
-               }
+                       $content['module'] = "<strong><a href=\"{%url=modules.php?module=admin&amp;what=stats_mods&amp;mod=" . $content['module'] . "%}\">" . $content['module'] . "</a></strong>";
+               } // END - if
 
                // Prepare array for the template
                // @TODO Rewritings: mod->module in template