wernis extension is now alpha code (only listing in admin area is missing), naming...
[mailer.git] / inc / modules / member / what-beg2.php
index 67bbd992eb1a654d6e8f843cf77eff32d054740a..07534dab6e9f14f477ea52956c1e5bf5b5083bda 100644 (file)
@@ -39,7 +39,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
 }
  elseif (!IS_LOGGED_IN())
 {
-       LOAD_URL(URL."/modules.php[5~?module=index");
+       LOAD_URL("modules.php[5~?module=index");
 }
  elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN()))
 {
@@ -57,14 +57,14 @@ if (EXT_IS_ACTIVE("autopurge"))
 {
        // Use last online timestamp to keep inactive members away from here
        $LAST   = " AND last_online >= %s";
-       $ONLINE = bigintval(time() - $CONFIG['ap_in_since']);
+       $ONLINE = bigintval(time() - $_CONFIG['ap_in_since']);
 }
 
 // Let's check if there are some points left we can "pay"...
 $result = SQL_QUERY_ESC("SELECT userid, beg_points AS beg, last_online FROM "._MYSQL_PREFIX."_user_data
 WHERE beg_points > 0 AND status='CONFIRMED'".$LAST."
 ORDER BY beg_points DESC, last_online DESC, userid LIMIT %s",
- array($ONLINE, $CONFIG['beg_ranks']), __FILE__, __LINE__);
+ array($ONLINE, $_CONFIG['beg_ranks']), __FILE__, __LINE__);
 
 // Reset temporary variable and check for users
 $OUT = "";