X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-surfbar_book.php;h=f712de3e64c100d227ffb49f1b68079a28912c7b;hp=5881f300be37aa5cfb47cad790e3594ac8467975;hb=57227d33e870ec5cd271209c4a978a52b45c2dd6;hpb=b8c86fa12322603c24a88ea2b0fd3dbeba612752 diff --git a/inc/modules/member/what-surfbar_book.php b/inc/modules/member/what-surfbar_book.php index 5881f300be..f712de3e64 100644 --- a/inc/modules/member/what-surfbar_book.php +++ b/inc/modules/member/what-surfbar_book.php @@ -1,7 +1,7 @@ 0? - if ((REQUEST_POST('limited') == "N") && ((REQUEST_ISSET_POST(('limit'))) && (REQUEST_POST('limit') > 0)) || (!REQUEST_ISSET_POST(('limit')))) { + if ((postRequestParameter('limited') != 'Y') && ((isPostRequestParameterSet(('limit'))) && (postRequestParameter('limit') > 0)) || (!isPostRequestParameterSet(('limit')))) { // Set it to unlimited - REQUEST_SET_POST('limit', 0); + setPostRequestParameter('limit', 0); } // END - if // Register the new URL - $insertId = SURFBAR_MEMBER_ADD_URL(REQUEST_POST('url'), REQUEST_POST('limit')); + $insertId = SURFBAR_MEMBER_ADD_URL(postRequestParameter('url'), postRequestParameter('limit')); // By default something went wrong - $msg = getMessage('MEMBER_SURFBAR_URL_NOT_ADDED'); + $message = getMessage('MEMBER_SURFBAR_URL_NOT_ADDED'); // Was this fine? if ($insertId > 0) { // URL added and waiting for unlock - $msg = getMessage('MEMBER_SURFBAR_URL_ADDED'); + $message = getMessage('MEMBER_SURFBAR_URL_ADDED'); } // END - if // Load message template - LOAD_TEMPLATE("admin_settings_saved", false, $msg); + loadTemplate('admin_settings_saved', false, $message); } else { // Prepare some content $content = array( - 'reward' => TRANSLATE_COMMA(SURFBAR_DETERMINE_REWARD(true)), - 'costs' => TRANSLATE_COMMA(SURFBAR_DETERMINE_COSTS(true)), + 'reward' => translateComma(SURFBAR_DETERMINE_REWARD(true)), + 'costs' => translateComma(SURFBAR_DETERMINE_COSTS(true)), 'max_order' => getConfig('surfbar_max_order'), 'curr_order' => SURFBAR_GET_TOTAL_USER_URLS() ); // Load surfbar order form - LOAD_TEMPLATE(sprintf("member_surfbar_book_%s", strtolower(getConfig('surfbar_pay_model'))), false, $content); + loadTemplate(sprintf("member_surfbar_book_%s", strtolower(getConfig('surfbar_pay_model'))), false, $content); } //