X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-refback.php;h=c034e62298be73ef180483db3324b96cab24c8a1;hb=2bda7ccdfd87b065a61ff976b5f9e98e46f73591;hp=e751a5a9d2bcef7c11e75094154b160c9a71d2a4;hpb=c47144dd555bbab4acdf9085e4623900dedb0e7c;p=mailer.git diff --git a/inc/modules/member/what-refback.php b/inc/modules/member/what-refback.php index e751a5a9d2..c034e62298 100644 --- a/inc/modules/member/what-refback.php +++ b/inc/modules/member/what-refback.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Refback-Einstellungen * * -------------------------------------------------------------------- * - * * + * $Revision:: 856 $ * + * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: stelzi $ * + * 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 * @@ -39,12 +44,12 @@ if (!defined('__SECURITY')) { // User is not logged in LOAD_URL("modules.php?module=index"); } elseif ((!EXT_IS_ACTIVE("refback")) && (!IS_ADMIN())) { - addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "refback"); + addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "refback"); return; } // Is the refback system enabled? -if (getConfig('refback_enabled') == "N") { +if (getConfig('refback_enabled') != "Y") { // Output message LOAD_TEMPLATE("admin_settings_saved", false, getMessage('MEMBER_REFBACK_DISABLED')); // Abort here @@ -55,16 +60,16 @@ if (getConfig('refback_enabled') == "N") { ADD_DESCR("member", __FILE__); // Was the form submitted? -if ((isset($_POST['edit'])) && (isset($_POST['id']))) { +if ((REQUEST_ISSET_POST('edit')) && (REQUEST_ISSET_POST(('id')))) { // Okay, has the user entered some values? - if (isset($_POST['percents'])) { + if (REQUEST_ISSET_POST(('percents'))) { // Revert german commta for testing - $percents = REVERT_COMMA($_POST['percents']); + $percents = REVERT_COMMA(REQUEST_POST('percents')); // Validate percents if ((($percents >= getConfig('refback_min_perc')) || (round($percents) == 0)) && ($percents <= getConfig('refback_max_perc'))) { // Change ref-back for this direct id - $status = REFBACK_CHANGE_MEMBER_PERCENTS($_POST['id'], $_POST['percents']); + $status = REFBACK_CHANGE_MEMBER_PERCENTS(REQUEST_POST('id'), REQUEST_POST('percents')); // Check status if (isset($status['ok'])) { @@ -85,7 +90,7 @@ if ((isset($_POST['edit'])) && (isset($_POST['id']))) { // Insert line } else { // Read data from refback table - $content = GET_USER_REF_ENTRY($_POST['id']); + $content = GET_USER_REF_ENTRY(REQUEST_POST('id')); // Translate comma $content['refback'] = TRANSLATE_COMMA($content['refback']);