- LOAD_TEMPLATE("admin_settings_saved", false, MEMBER_SURFBAR_NO_MORE_ALLOWED);
-} elseif (isset($_POST['ok'])) {
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_SURFBAR_NO_MORE_ALLOWED--}');
+} elseif ((isFormSent()) && (isPostRequestParameterSet('limited'))) {
+ // Is limitation "no" and "limit" is > 0?
+ if ((postRequestParameter('limited') != 'Y') && ((isPostRequestParameterSet('limit')) && (postRequestParameter('limit') > 0)) || (!isPostRequestParameterSet('limit'))) {
+ // Set it to unlimited
+ setPostRequestParameter('limit', 0);
+ } // END - if
+
+ // By default something went wrong
+ $message = '{--MEMBER_SURFBAR_URL_NOT_ADDED--}';
+