]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/order_functions.php
Even more rewrites/fixes from EL branch (please report any broken part after you...
[mailer.git] / inc / libs / order_functions.php
index 92e10a574e3cfb7f1629919dbdb1e21fbb9a4a89..d8d48737e327dad1fe0cb8d983edfc3b72abbf34 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 04/05/2005 *
- * ===============                              Last change: 04/05/2005 *
+ * Mailer v0.2.1-FINAL                                Start: 04/05/2005 *
+ * ===================                          Last change: 04/05/2005 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : order_functions.php                               *
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Funktionen fuer den Newsletter an die Gaeste     *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $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                           *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 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 (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
-       require($INC);
-}
+if (!defined('__SECURITY')) {
+       die();
+} // END - if
 
-function ORDER_SELECT_OPTION_LIST($default) {
+// Generates a selection list for mail order
+function addOrderSelectionOptions ($default) {
        // Currenty the list is hardcoded...
-       $LIST = array("userid", "zip", "country", "email", "birth_year", "last_online", "ref_clicks", "total_logins", "mail_orders");
-       $OUT = "";
+       $LIST = array('userid', 'zip', 'country', 'email', 'birth_year', 'last_online', 'ref_clicks', 'total_logins', 'mail_orders');
+       $OUT = '';
        foreach ($LIST as $item) {
-               $selected = "";
-               if ($item == $default) $selected = " selected=\"selected\"";
-               $OUT .= "<OPTION value=\"".$item."\"".$selected.">{--ORDER_SELECT_COLUMN_".strtoupper($item)."--}</OPTION>\n";
-       }
+               $selected = '';
+               if ($item == $default) $selected = ' selected="selected"';
+               $OUT .= '<option value="' . $item . '"' . $selected . '>{--ORDER_SELECT_COLUMN_' . strtoupper($item) . '--}</option>';
+       } // END - foreach
 
        // Return the output
        return $OUT;
 }
 
-//
+// [EOF]
 ?>