X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-rallyes.php;h=232520584aeb9af9383000b08c327e37f5af1ddf;hb=648afd5e9ca91e878a755fdb5438ac6103a4ac7e;hp=26417389b94f979e1fd73c131f5dd7011a9bb0af;hpb=4f2414a0134da82027fce8a6c98696a207c8c8cc;p=mailer.git diff --git a/inc/modules/guest/what-rallyes.php b/inc/modules/guest/what-rallyes.php index 26417389b9..232520584a 100644 --- a/inc/modules/guest/what-rallyes.php +++ b/inc/modules/guest/what-rallyes.php @@ -1,7 +1,7 @@ '); // Check for possible running rallyes -$ADMIN = " AND d.is_active='Y'"; -if (isAdmin()) $ADMIN = ''; +$ADD = " AND d.is_active='Y'"; +if (isAdmin()) $ADD = ''; $result = SQL_QUERY("SELECT d.id, d.admin_id, a.login, d.title, d.descr, d.template, d.start_time, d.end_time, d.min_users, d.min_prices @@ -65,7 +66,7 @@ INNER JOIN ON d.admin_id=a.id WHERE - d.notified='Y'".$ADMIN." + d.notified='Y'" . $ADD . " ORDER BY d.end_time LIMIT 1", __FILE__, __LINE__); @@ -83,11 +84,11 @@ if (SQL_NUMROWS($result) == 1) { // Rallye will expire in less one day! $content['extras'] = getMessage('RALLYE_EXPIRE_ONE_DAY'); } else { - $content['extras'] = "{--RALLYE_REGISTER_NOW--}"; + $content['extras'] = '{--RALLYE_REGISTER_NOW--}'; } // Set admin line (currently set to impressum, later to contact form) - // @TODO Reactivate this: $content['admin'] = "".$login.""; + // @TODO Reactivate this: $content['admin'] = '' . $login . ''; // Set title $content['title'] = $title; @@ -109,15 +110,15 @@ if (SQL_NUMROWS($result) == 1) { $content['min_users'] = determineReferalRallyeMinimumUsers($min_users); // Determine min prices (now in function) - $content['min_prices'] = determineReferalRallyeMinimumPrices(); + $content['min_prices'] = determineReferalRallyeMinimumPrices($min_prices); if ($expired === true) { $content['prices'] = addReferalRallyeWinners($id); - $content['top_users'] = "
".$content['extras']."
"; + $content['top_users'] = '
' . $content['extras'] . '
'; $content['can_win_this'] = getMessage('RALLYE_OUR_WINNERS_ARE'); } else { $content['prices'] = addReferalRallyePrices($id, 'html'); - $content['top_users'] = addReferalRallyeTopUsers($id, getUserId()); + $content['top_users'] = addReferalRallyeTopUsers($id, getMemberId()); $content['can_win_this'] = getMessage('RALLYE_YOU_CAN_WIN'); }