X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-surfbar_book.php;h=1fb968bbf247f5c252f698ddafbba24d2dbfe4a6;hb=d22fa6e71e81743b277da0873e2abe7fc7bb5d98;hp=0b98ccd88d2e6d1479726d63cb287e2c37140c07;hpb=d8148e3f1f3a6762b2e786dbe99ada269dcf2ea0;p=mailer.git diff --git a/inc/modules/member/what-surfbar_book.php b/inc/modules/member/what-surfbar_book.php index 0b98ccd88d..1fb968bbf2 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 = getMessage('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 = 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)), - '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] ?>