]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-stats_mods.php
More HTML improvements
[mailer.git] / inc / modules / admin / what-stats_mods.php
index 7157b6e835740dceb13a54551ab497e4417ee719..c6d08c379af255372c2abd11a83e623fada40dd2 100644 (file)
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
 
-// If var is empty set it to empty
-if (!isGetRequestElementSet('mod')) setRequestGetElement('mod', '');
-
 // Check if module was selected
-if ((getRequestElement('mod') == 'index') || (getRequestElement('mod') == 'login')) {
+if ((getRequestParameter('mod') == 'index') || (getRequestParameter('mod') == 'login')) {
        // Select menu system
-       $mod = mapModuleToTable(getRequestElement('mod'));
+       $mod = mapModuleToTable(getRequestParameter('mod'));
 
        // Load module's detail statistic
        $result = SQL_QUERY_ESC("SELECT `action`, `title`, `counter` FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `what` != '' AND `what` IS NOT NULL ORDER BY `counter` DESC",
@@ -81,7 +78,7 @@ if ((getRequestElement('mod') == 'index') || (getRequestElement('mod') == 'login
 
                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
 
                // Add color switch