* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
// Some security stuff...
if (!defined('__SECURITY')) {
- die();
+ exit();
} elseif (!isMember()) {
// Redirect
redirectToIndexMemberOnlyModule();
} // END - if
// Still allowed to book more URLs?
-if (!SURFBAR_IF_USER_BOOK_MORE_URLS()) {
+if (!ifSurfbarMemberAllowedMoreUrls()) {
// No more URLs allowed to book!
displayMessage('{--MEMBER_SURFBAR_NO_MORE_ALLOWED--}');
-} elseif ((isFormSent()) && (isPostRequestParameterSet('limited'))) {
+} elseif ((isFormSent()) && (isPostRequestElementSet('limited'))) {
// Is limitation "no" and "limit" is > 0?
- if (postRequestParameter('limited') == 'N') {
+ if (postRequestElement('limited') == 'N') {
// Set it to unlimited
- setPostRequestParameter('limit', 0);
+ setPostRequestElement('limit', 0);
} // END - if
// By default something went wrong
$message = '{--MEMBER_SURFBAR_URL_NOT_ADDED--}';
// Register the new URL
- $insertId = SURFBAR_MEMBER_ADD_URL(postRequestParameter('url'), postRequestParameter('limit'));
+ $insertId = doSurfbarMemberAddUrl(postRequestElement('url'), postRequestElement('limit'));
// Was this fine?
- if ($insertId > 0) {
+ if (isValidId($insertId)) {
// URL added and waiting for unlock
$message = '{--MEMBER_SURFBAR_URL_ADDED--}';
} // END - if