]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_nickname.php
Mailer project continued (heavy refactoring):
[mailer.git] / inc / modules / admin / what-list_nickname.php
index b9e1dd16c16588c23853606f7f98824a3585753e..c67f0d50ad8b0677025abf03862b8a00d3fe761f 100644 (file)
@@ -16,8 +16,8 @@
  * $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 *
@@ -45,8 +45,18 @@ addYouAreHereLink('admin', __FILE__);
 
 // Check if 'userid' is set
 if (isGetRequestElementSet('userid')) {
+       // Delete entries?
+       if (isFormSent('do_delete')) {
+               // Remove entries from database
+               doGenericXmlTemplateCallback('admin_delete_do_nickname_history', array(
+                       'userid' => bigintval(getRequestElement('userid'))
+               ));
+       } // END - if
+
        // List all entries per user
-       showEntriesByXmlCallback('admin_list_nickname_history');
+       doGenericXmlTemplateCallback('admin_list_nickname_history', array(
+               'userid' => bigintval(getRequestElement('userid'))
+       ));
 } else {
        // Output selection form with all confirmed user accounts listed
        addMemberSelectionBox();