]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-sponsor_infos.php
The old column name 'id' must be back :(
[mailer.git] / inc / modules / guest / what-sponsor_infos.php
index 089f83de149e211f8be476e27676499691b84141..dd757d9e3c3ccec1a973b72c26667b6c231580a5 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * 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 *
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 } // END - if
 
 // Add description as navigation point
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('sponsor'))) {
-       displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
+       displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=sponsor%}');
        return;
 } // END - if
 
 // Init both results (see footer of this file)
-$result_act = false;
-$result_pay = false;
+$result_act = FALSE;
+$result_pay = FALSE;
 
 // Load all sponsor actions
 $result_act = SQL_QUERY("SELECT
@@ -76,7 +76,7 @@ if (!SQL_HASZERONUMS($result_act)) {
        $OUT_ACT = '';
        while ($content = SQL_FETCHARRAY($result_act)) {
                // Load row template and switch color
-               $OUT_ACT .= loadTemplate('guest_sponsor_act_row', true, $content);
+               $OUT_ACT .= loadTemplate('guest_sponsor_act_row', TRUE, $content);
        } // END - while
 
        // Check for pay types
@@ -86,16 +86,16 @@ if (!SQL_HASZERONUMS($result_act)) {
                $OUT_PAY = '';
                while ($content = SQL_FETCHARRAY($result_pay)) {
                        // Load row template and switch color
-                       $OUT_PAY .= loadTemplate('guest_sponsor_pay_row', true, $content);
+                       $OUT_PAY .= loadTemplate('guest_sponsor_pay_row', TRUE, $content);
                } // END - while
        } else {
                // No pay types setuped so far!
-               $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', false, displayMessage('{--SPONSOR_NO_ACTIONS_ACTIVATED--}', true));
+               $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', FALSE, displayMessage('{--SPONSOR_NO_ACTIONS_ACTIVATED--}', TRUE));
        }
 } else {
        // No actions activated so far!
-       $OUT_ACT = loadTemplate('guest_sponsor_infos_none_row', true, displayMessage('{--SPONSOR_NO_ACTIONS_ACTIVATED--}', true));
-       $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', true, displayMessage('{--SPONSOR_NO_ACTIONS_ACTIVATED--}', true));
+       $OUT_ACT = loadTemplate('guest_sponsor_infos_none_row', TRUE, displayMessage('{--SPONSOR_NO_ACTIONS_ACTIVATED--}', TRUE));
+       $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', TRUE, displayMessage('{--SPONSOR_NO_ACTIONS_ACTIVATED--}', TRUE));
 }
 
 // Free memory
@@ -109,7 +109,7 @@ $content = array(
 );
 
 // Load main template
-loadTemplate('guest_sponsor_infos', false, $content);
+loadTemplate('guest_sponsor_infos', FALSE, $content);
 
 // [EOF]
 ?>