]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_doubler.php
Even more rewritten
[mailer.git] / inc / modules / admin / what-list_doubler.php
index 2ad42035d9d96e45cbb06d1b9c77f5addad1092d..02f3fa76c2af8643f6e360b56e34cf86e0eaa449 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Verdoppler-Eintraege auflisten                   *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision::                                                        $ *
+ * $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 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
 
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
 
-if (empty($_GET['mode'])) {
+if (!REQUEST_ISSET_GET(('mode'))) {
        // Chosse the overview page as default
-       $_GET['mode'] = "overview";
+       REQUEST_GET('mode', "overview");
 } else {
        // Set table title automatically
-       if (empty($_GET['select'])) $_GET['select'] = "all";
-       $eval = "define('__ADMIN_DOUBLER_LIST_".strtoupper($_GET['mode'])."', getMessage('ADMIN_DOUBLER_LIST_".strtoupper($_GET['mode'])."_".strtoupper($_GET['select'])."'));";
+       if (!REQUEST_ISSET_GET(('select'))) REQUEST_GET('select', "all");
+       $eval = "define('__ADMIN_DOUBLER_LIST_".strtoupper(REQUEST_GET('mode'))."', getMessage('ADMIN_DOUBLER_LIST_".strtoupper(REQUEST_GET('mode'))."_".strtoupper(REQUEST_GET('select'))."'));";
        eval($eval);
 }
 
 // Load data for the template
-switch ($_GET['mode'])
+switch (REQUEST_GET('mode'))
 {
 case "already":  // Already payed out points
        break;
@@ -129,7 +134,7 @@ case "overview": // General overview page
 }
 
 // Load mode template
-LOAD_TEMPLATE("admin_list_doubler_".$_GET['mode']);
+LOAD_TEMPLATE("admin_list_doubler_".REQUEST_GET('mode'));
 
 //
 ?>