]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_doubler.php
Extension 'yoomedia' now alpha status, some rewrites
[mailer.git] / inc / modules / admin / what-list_doubler.php
index d9f373aa2fa79bf242c9db9ed432b87e1e6bef31..36d767fde3a374479c9188fee45a8df2b8ecd7cd 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) {
+if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
 if (empty($_GET['mode'])) {
        // Chosse the overview page as default
@@ -58,7 +58,7 @@ case "already":  // Already payed out points
 
 case "overview": // General overview page
        $SUM_ALREADY = 0; $SUM_WAITING = 0;
-       // Number of direct already payouts and referral
+       // Number of direct already payouts and referal
        $result = SQL_QUERY("SELECT COUNT(id) FROM "._MYSQL_PREFIX."_doubler WHERE completed='Y' AND is_ref='N'", __FILE__, __LINE__);
        list($cnt) = SQL_FETCHROW($result);
        SQL_FREERESULT($result);
@@ -91,7 +91,7 @@ case "overview": // General overview page
        }
        define('__DOUBLER_ALREADY_ALL_LINK', "<A href=\"".URL."/modules.php?module=admin&amp;what=list_doubler&amp;mode=already&amp;select=all\">".$SUM_ALREADY."</A>");
 
-       // And the same for waiting pouts (direct and referral)
+       // And the same for waiting pouts (direct and referal)
        $result = SQL_QUERY("SELECT COUNT(id) FROM "._MYSQL_PREFIX."_doubler WHERE completed='N' AND is_ref='N'", __FILE__, __LINE__);
        list($cnt) = SQL_FETCHROW($result);
        SQL_FREERESULT($result);