]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/order_functions.php
Refback and referal points hopefully fixed:
[mailer.git] / inc / libs / order_functions.php
index ef7549cf848bb52a34fe0232f7fa8d59ee9580a7..ea1ddaef25325dce1cb13df5dc77674349c61ea6 100644 (file)
@@ -48,7 +48,9 @@ function addOrderSelectionOptions ($default) {
        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'
                if ($item == 'ref_clicks') {
@@ -63,5 +65,33 @@ function addOrderSelectionOptions ($default) {
        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]
 ?>