* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
- * 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 *
foreach ($LIST as $item) {
// Defaul selection
$selected = '';
- if ($item == $default) $selected = ' selected="selected"';
+ if ($item == $default) {
+ $selected = ' selected="selected"';
+ } // END - if
- // 'ref_clicks' needs to be rewritten to 'referal_clicks'
+ // 'ref_clicks' needs to be rewritten to 'referral_clicks'
if ($item == 'ref_clicks') {
- $item = 'referal_clicks';
+ $item = 'referral_clicks';
} // END - if
// Add option line
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]
?>