]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-rallyes.php
Admin menu has now a JavaScript "effect":
[mailer.git] / inc / modules / guest / what-rallyes.php
index 50760250e47f9844c966a5cf6dd79c289cbe8575..55dbf0f355fdf7b0781ba90d4fd314a6a364c498 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('rallye')) && (!isAdmin())) {
-       displayMessage(generateExtensionInactiveNotInstalledMessage('rallye'));
+       displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=rallye%}');
        return;
 } // END - if
 
@@ -86,7 +86,7 @@ if (SQL_NUMROWS($result) == 1) {
        }
 
        // Set admin line (currently set to impressum, later to contact form)
-       // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;admin=' . $adminId . '%}">' . $login . '</a>';
+       // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;id=' . $adminId . '%}">' . $login . '</a>';
 
        // Set title
        $content['title'] = $title;
@@ -105,26 +105,26 @@ if (SQL_NUMROWS($result) == 1) {
        $content['end']   = generateDateTime($end  , 1);
 
        // Determine min_users
-       $content['min_users'] = determineReferalRallyeMinimumUsers($min_users);
+       $content['min_users'] = determineReferralRallyeMinimumUsers($min_users);
 
        // Determine min prices (now in function)
-       $content['min_prices'] = determineReferalRallyeMinimumPrices($min_prices);
+       $content['min_prices'] = determineReferralRallyeMinimumPrices($min_prices);
 
        if ($expired === true) {
-               $content['prices']       = addReferalRallyeWinners($id);
+               $content['prices']       = addReferralRallyeWinners('guest', $id);
                $content['top_users']    = '<div align="center" class="big">' . $content['extras'] . '</div>';
                $content['can_win_this'] = '{--RALLYE_OUR_WINNERS_ARE--}';
        } else {
-               $content['prices']       = addReferalRallyePrices($id, 'html');
-               $content['top_users']    = addReferalRallyeTopUsers($id, getMemberId());
+               $content['prices']       = addReferralRallyePrices($id, 'html');
+               $content['top_users']    = addReferralRallyeTopUsers('guest', $id, getMemberId());
                $content['can_win_this'] = '{--RALLYE_YOU_CAN_WIN--}';
        }
 
        // And load final template
-       loadTemplate('guest_rallye_show', false, $content);
+       loadTemplate('guest_show_rallye', false, $content);
 } else {
        // No rallye found so far
-       loadTemplate('guest_no_rallyes');
+       loadTemplate('guest_rallye_404');
 }
 
 // Close the div tag