X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-beg2.php;h=61951fb8e2c29ef49081a8f216134acc9d165cf4;hb=6e008d188bf9c7f8d4edc2a8799c61940eee48e7;hp=ce6bcf002006b7f5b919d6a1a6317f0c65f90f65;hpb=508228c85fba8448d00865b1639cb8cd7a69e457;p=mailer.git diff --git a/inc/modules/member/what-beg2.php b/inc/modules/member/what-beg2.php index ce6bcf0020..61951fb8e2 100644 --- a/inc/modules/member/what-beg2.php +++ b/inc/modules/member/what-beg2.php @@ -10,7 +10,7 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Alle moeglichen Gewinner der Bettel-Rallye aufl. * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * + * $Revision:: $ * * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * @@ -38,21 +38,21 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } elseif (!IS_MEMBER()) { - LOAD_URL("modules.php[5~?module=index"); -} elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) { - addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "beg"); + LOAD_URL('modules.php?module=index'); +} elseif ((!EXT_IS_ACTIVE('beg')) && (!IS_ADMIN())) { + addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'beg'); return; } // Add description as navigation point -ADD_DESCR("member", __FILE__); +ADD_DESCR('member', __FILE__); // Autopurge installed? -$lastOnline = "%s"; $ONLINE = ""; -if (EXT_IS_ACTIVE("autopurge")) { +$lastOnline = "%s"; $ONLINE = ''; +if (EXT_IS_ACTIVE('autopurge')) { // Use last online timestamp to keep inactive members away from here $lastOnline = " AND last_online >= (UNIX_TIMESTAMP() - %s)"; $ONLINE = getConfig('ap_inactive_since'); @@ -65,7 +65,7 @@ ORDER BY beg_points DESC, last_online DESC, userid LIMIT %s", array($ONLINE, getConfig('beg_ranks')), __FILE__, __LINE__); // Reset temporary variable and check for users -$OUT = ""; +$OUT = ''; if (SQL_NUMROWS($result) > 0) { // Load our winners... $SW = 2; $cnt = 1;