X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Forder_functions.php;h=f6da85ea7949b5bf28be1dc881b452216ca71d88;hb=f4345352184f30d2d5086437cf9c437c036a2fb4;hp=a9e806a72bd2bfb3392c1c85249f0db80aefb9ef;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;p=mailer.git
diff --git a/inc/libs/order_functions.php b/inc/libs/order_functions.php
index a9e806a72b..f6da85ea79 100644
--- a/inc/libs/order_functions.php
+++ b/inc/libs/order_functions.php
@@ -14,11 +14,10 @@
* $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 *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2011 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 *
@@ -47,14 +46,52 @@ function addOrderSelectionOptions ($default) {
$LIST = array('userid', 'zip', 'country', 'email', 'birth_year', 'last_online', 'ref_clicks', 'total_logins', 'mail_orders');
$OUT = '';
foreach ($LIST as $item) {
+ // Defaul selection
$selected = '';
- if ($item == $default) $selected = ' selected="selected"';
- $OUT .= '';
+ if ($item == $default) {
+ $selected = ' selected="selected"';
+ } // END - if
+
+ // 'ref_clicks' needs to be rewritten to 'referral_clicks'
+ if ($item == 'ref_clicks') {
+ $item = 'referral_clicks';
+ } // END - if
+
+ // Add option line
+ $OUT .= '';
} // END - foreach
// Return the output
return $OUT;
}
+//-----------------------------------------------------------------------------
+// Wrapper functions for configuration entries
+//-----------------------------------------------------------------------------
+
+// Getter for 'order_multi_page' config entry
+function getOrderMultiPage () {
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('order_multi_page');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Determines wether 'order_multi_page' is set to 'Y'
+function isOrderMultiPageEnabled () {
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = (getOrderMultiPage() == 'Y');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// [EOF]
?>