]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-sponsor_infos.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / modules / guest / what-sponsor_infos.php
index a651cee891d65a887e2fc4dba67e5547776c814c..1cc9636916bcf7b829ed80568b6576e1c61d8935 100644 (file)
 if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
        require($INC);
-} elseif ((!EXT_IS_ACTIVE("sponsor"))) {
-       addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "sponsor");
+} elseif ((!EXT_IS_ACTIVE('sponsor'))) {
+       addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'sponsor');
        return;
 }
 
 // Add description as navigation point
-ADD_DESCR("guest", __FILE__);
+ADD_DESCR('guest', __FILE__);
 
 // Init both results (see footer of this file)
 $result_act = false;
@@ -61,7 +61,7 @@ ORDER BY m.sort ASC", __FILE__, __LINE__);
 
 if (SQL_NUMROWS($result_act) > 0) {
        // Load all actions
-       $OUT_ACT = ""; $SW = 2;
+       $OUT_ACT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result_act)) {
                // Prepare data for the row template
                // @TODO Rewritings: conv->conv_rate,name->conv_name in template
@@ -81,7 +81,7 @@ if (SQL_NUMROWS($result_act) > 0) {
        $result_pay = SQL_QUERY("SELECT pay_name, pay_rate, pay_min_count, pay_currency FROM `{!_MYSQL_PREFIX!}_sponsor_paytypes` ORDER BY pay_name", __FILE__, __LINE__);
        if (SQL_NUMROWS($result_pay) > 0) {
                // Load all pay types
-               $OUT_PAY = ""; $SW = 2;
+               $OUT_PAY = ''; $SW = 2;
                while ($content = SQL_FETCHARRAY($result_pay)) {
                        // Prepare data for the row template
                        // @TODO Rewritings: name->pay_name,min->pay_min_count,min->pay_min_count,curr->pay_currency
@@ -100,12 +100,12 @@ if (SQL_NUMROWS($result_act) > 0) {
                }
        } else {
                // No pay types setuped so far!
-               $OUT_PAY = LOAD_TEMPLATE("guest_sponsor_infos_none_row", LOAD_TEMPLATE("admin_settings_saved", true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED')));
+               $OUT_PAY = LOAD_TEMPLATE("guest_sponsor_infos_none_row", LOAD_TEMPLATE('admin_settings_saved', true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED')));
        }
 } else {
        // No actions activated so far!
-       $OUT_ACT = LOAD_TEMPLATE("guest_sponsor_infos_none_row", LOAD_TEMPLATE("admin_settings_saved", true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED')));
-       $OUT_PAY = LOAD_TEMPLATE("guest_sponsor_infos_none_row", LOAD_TEMPLATE("admin_settings_saved", true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED')));
+       $OUT_ACT = LOAD_TEMPLATE("guest_sponsor_infos_none_row", LOAD_TEMPLATE('admin_settings_saved', true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED')));
+       $OUT_PAY = LOAD_TEMPLATE("guest_sponsor_infos_none_row", LOAD_TEMPLATE('admin_settings_saved', true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED')));
 }
 
 // Free memory