* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Some security stuff...
if ((!defined('__SECURITY')) || (!isAdmin())) {
die();
-}
+} // END - if
// Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
// Set selection data to empty array when it is empty
if (!isPostRequestParameterSet('sel')) setPostRequestParameter('sel', array());
setPostRequestParameter('sel', array($adminId => 1));
} // END - if
-if ((isPostRequestParameterSet('edit')) && (countPostSelection() > 0)) {
+if ((isFormSent('edit')) && (ifPostContainsSelections())) {
// Edit account(s)
adminsEditAdminAccount(postRequestArray());
-} elseif ((isPostRequestParameterSet('change')) && (count(postRequestParameter('login')) > 0)) {
+} elseif ((isFormSent('change')) && (count(postRequestParameter('login')) > 0)) {
// Change admin accounts
adminsChangeAdminAccount(postRequestArray());
-} elseif ((isPostRequestParameterSet('del')) && (countPostSelection() > 0)) {
+} elseif ((isFormSent('delete')) && (ifPostContainsSelections())) {
// Show admin accounts for deletetion
adminsDeleteAdminAccount(postRequestArray());
} else {
- if ((isPostRequestParameterSet('remove')) && (countPostSelection() > 0)) {
+ if ((isFormSent('remove')) && (ifPostContainsSelections())) {
// Remove accounts now
adminsRemoveAdminAccount(postRequestArray());
} // END - if