X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Forder_functions.php;h=2ae8f367d39990882b4aee11ed5254a384078879;hb=26ea563a90454a2cde58f8cd134542a0d8f14780;hp=c9068036760038c8450c4ecd43b8ebd7e99ceb58;hpb=414570c5081d337bb6c28dcf521bd8bca02f69e7;p=mailer.git
diff --git a/inc/libs/order_functions.php b/inc/libs/order_functions.php
index c906803676..2ae8f367d3 100644
--- a/inc/libs/order_functions.php
+++ b/inc/libs/order_functions.php
@@ -10,14 +10,14 @@
* -------------------------------------------------------------------- *
* Kurzbeschreibung : Funktionen fuer den Newsletter an die Gaeste *
* -------------------------------------------------------------------- *
- * $Revision:: 856 $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ *
+ * $Revision:: $ *
+ * $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
- * $Author:: stelzi $ *
+ * $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 *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -38,23 +38,23 @@
// Some security stuff...
if (!defined('__SECURITY')) {
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
- require($INC);
-}
+ 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 .= "\n";
- }
+ $selected = '';
+ if ($item == $default) $selected = ' selected="selected"';
+ $OUT .= '';
+ } // END - foreach
// Return the output
return $OUT;
}
-//
+// [EOF]
?>