X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-unlock_sponsor.php;h=7ece3c07a87f49d58fc386bbcc49b0fbd75c9280;hb=aa63aed07428a99ea09002c8d072990677700080;hp=b267371155022c145580c72d66cde4426ff3ba48;hpb=508228c85fba8448d00865b1639cb8cd7a69e457;p=mailer.git diff --git a/inc/modules/admin/what-unlock_sponsor.php b/inc/modules/admin/what-unlock_sponsor.php index b267371155..7ece3c07a8 100644 --- a/inc/modules/admin/what-unlock_sponsor.php +++ b/inc/modules/admin/what-unlock_sponsor.php @@ -10,7 +10,7 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Sponsorenaccounts freigeben * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * + * $Revision:: $ * * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * @@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { } // Add description as navigation point -ADD_DESCR("admin", __FILE__); +ADD_DESCR('admin', __FILE__); // Check if admin has submitted form if (IS_FORM_SENT()) { @@ -65,7 +65,7 @@ WHERE `status`='PENDING' AND id='%s' LIMIT 1", if (SQL_NUMROWS($result_main) == 1) { // Load data - $content = SQL_FETCHROW($result_main); + $content = SQL_FETCHARRAY($result_main); // Check for open payments and close them $result = SQL_QUERY_ESC("SELECT DISTINCT so.aid, so.pay_count, so.pay_ordered, so.pay_status, @@ -136,7 +136,7 @@ WHERE id='%s' LIMIT 1", $REFERRAL = SQL_FETCHARRAY($result); // Send warnings out? - if ($REFERRAL['receive_warnings'] == "Y") { + if ($REFERRAL['receive_warnings'] == 'Y') { // Translate some data $REFERRAL['points'] = TRANSLATE_COMMA($REFERRAL['points']); $REFERRAL['ref_points'] = TRANSLATE_COMMA(getConfig('sponsor_ref_points')); @@ -163,7 +163,7 @@ WHERE id='%s' LIMIT 1", } } else { // Nothing selected - LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_SPONSOR_NONE_SELECTED_UNLOCK')); + LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_SPONSOR_NONE_SELECTED_UNLOCK')); } // Add seperator @@ -182,7 +182,7 @@ ORDER BY if (SQL_NUMROWS($result) > 0) { // Entries found so let's list them! - $OUT = ""; $SW = 2; + $OUT = ''; $SW = 2; while ($content = SQL_FETCHARRAY($result)) { // Transfer data to array // @TODO Rewritings: remote->remote_addr, created->sponsor_created in template @@ -207,7 +207,7 @@ if (SQL_NUMROWS($result) > 0) { LOAD_TEMPLATE("admin_unlock_sponsor"); } else { // No pending accounts found - LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_SPONSOR_NONE_PENDING')); + LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_SPONSOR_NONE_PENDING')); } // Free memory