X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-sponsor_infos.php;h=7b20ab7fb4246a27287afa7e7ce96d0a7d32e162;hb=b8aa17b98b99c27eafbdca0fa090bae63527da9a;hp=2539e16300381cc65e277c1f90a87f51b06e4418;hpb=4001187f22197f55e5a1f211fc8defcc180f7c32;p=mailer.git diff --git a/inc/modules/guest/what-sponsor_infos.php b/inc/modules/guest/what-sponsor_infos.php index 2539e16300..7b20ab7fb4 100644 --- a/inc/modules/guest/what-sponsor_infos.php +++ b/inc/modules/guest/what-sponsor_infos.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Informationen/Preise fuer den Sponsoren * * -------------------------------------------------------------------- * - * * + * $Revision:: $ * + * $Date:: $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -32,15 +37,15 @@ // 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 ((!EXT_IS_ACTIVE("sponsor"))) { - addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "sponsor"); +} elseif ((!EXT_IS_ACTIVE('sponsor'))) { + addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('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; @@ -51,12 +56,12 @@ $result_act = SQL_QUERY("SELECT DISTINCT m.title, c.conv_rate, c.conv_name FROM `{!_MYSQL_PREFIX!}_sponsor_menu` AS m LEFT JOIN `{!_MYSQL_PREFIX!}_sponsor_action_convert` AS c ON m.what=c.ext_name LEFT JOIN `{!_MYSQL_PREFIX!}_sponsor_registry` AS r ON m.what=r.ext_name -WHERE m.action='actions' AND r.is_active='Y' +WHERE m.`action`='actions' AND r.is_active='Y' 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 @@ -76,17 +81,17 @@ 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 $content = array( 'sw' => $SW, 'name' => $content['pay_name'], - 'rate' => TRANSLATE_COMMA($content['pay_rate']), + 'rate' => translateComma($content['pay_rate']), 'min' => $content['pay_min_count'], 'curr' => $content['pay_currency'], - 'price' => TRANSLATE_COMMA($content['pay_min_count']), + 'price' => translateComma($content['pay_min_count']), ); // Load row template and switch color @@ -95,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