X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-surfbar_book.php;h=528ce0063f140d1f1276127843a3d7b473b0a8c4;hb=6c0abc9f643c69610fe87be0ddb1a5dab95c6d39;hp=29db48ee2ca2817b84f9a112ba15ae6faf0c299b;hpb=f97a999e0737c0007ae9c3c26dfef49f75a175ac;p=mailer.git diff --git a/inc/modules/member/what-surfbar_book.php b/inc/modules/member/what-surfbar_book.php index 29db48ee2c..528ce0063f 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')); - // By default something went wrong - $msg = getMessage('MEMBER_SURFBAR_URL_NOT_ADDED'); + $message = '{--MEMBER_SURFBAR_URL_NOT_ADDED--}'; + + // Register the new URL + $insertId = SURFBAR_MEMBER_ADD_URL(postRequestParameter('url'), postRequestParameter('limit')); // Was this fine? if ($insertId > 0) { // URL added and waiting for unlock - $msg = getMessage('MEMBER_SURFBAR_URL_ADDED'); + $message = '{--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)), - 'max_order' => getConfig('surfbar_max_order'), - 'curr_order' => SURFBAR_GET_TOTAL_USER_URLS() + 'reward' => SURFBAR_DETERMINE_REWARD(true), + 'costs' => SURFBAR_DETERMINE_COSTS(true), ); // 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); } -// +// [EOF] ?>