inc/libs/mailid_functions.php svneol=native#text/plain
inc/libs/maintenance_functions.php svneol=native#text/plain
inc/libs/mediadata_functions.php svneol=native#text/plain
+inc/libs/menu_functions.php svneol=native#text/plain
inc/libs/network_functions.php svneol=native#text/plain
inc/libs/newsletter_functions.php svneol=native#text/plain
inc/libs/nickname_functions.php svneol=native#text/plain
return $GLOBALS[__FUNCTION__];
}
+// "Getter" for doubler_max_sent
+function getDoublerMaxSent () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('doubler_max_sent');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// [EOF]
?>
--- /dev/null
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL Start: 11/27/2012 *
+ * =================== Last change: 11/27/2012 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : menu_functions.php *
+ * -------------------------------------------------------------------- *
+ * Short description : Functions for ext-menu *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Funktionen fuer ext-menu *
+ * -------------------------------------------------------------------- *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009 - 2012 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 *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
+ * MA 02110-1301 USA *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+ die();
+} // END - if
+
+// ----------------------------------------------------------------------------
+// Wrapper functions for configuration entries
+// ----------------------------------------------------------------------------
+
+// Getter for guest_menu_advert_enabled
+function getGuestMenuAdvertEnabled () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('guest_menu_advert_enabled');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for member_menu_advert_enabled
+function getMemberMenuAdvertEnabled () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('member_menu_advert_enabled');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// [EOF]
+?>
return $GLOBALS[__FUNCTION__];
}
+// Getter for 'order_mode' config entry
+function getOrderMode () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('order_mode');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'order_select' config entry
+function getOrderSelect () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('order_select');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// [EOF]
?>
return $status;
}
+// ----------------------------------------------------------------------------
+// Wrapper functions for configuration entries
+// ----------------------------------------------------------------------------
+
+// Getter for refback_enabled
+function getRefbackEnabled () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('refback_enabled');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// Checks whether refback is enabled
function isRefbackEnabled () {
// Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
- $GLOBALS[__FUNCTION__] = (getConfig('refback_enabled') == 'Y');
+ $GLOBALS[__FUNCTION__] = (getRefbackEnabled() == 'Y');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for refback_max_perc
+function getRefbackMaxPerc () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('refback_max_perc');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for refback_min_perc
+function getRefbackMinPerc () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('refback_min_perc');
} // END - if
// Return cache
// Set output mode here
setConfigEntry('OUTPUT_MODE', 'render');
+} else {
+ // This should not happen
+ reportBug(__FILE__, __LINE__, 'Was not able to load/detect configuration file and/or installation phase!');
}
// Check if the user setups his database login stuff...
$content[$entry . '_' . strtolower(getConfig($entry))] = ' selected="selected"';
} // END - foreach
- // Selection list
- $content['order_selection'] = addOrderSelectionOptions(getConfig('order_select'));
-
// Load template
loadTemplate('admin_config_order', FALSE, $content);
}
adminSaveSettingsFromPostData();
} else {
// Prepare gender selection box
- $content['tester_user_gender_selection'] = generateGenderSelectionBox(getConfig('tester_user_gender'), 'tester_user_gender');
+ $content['tester_user_gender_selection'] = generateGenderSelectionBox(getTesterUserGender(), 'tester_user_gender');
// Load form template
loadTemplate('admin_config_user', FALSE, $content);
<label class="admin_label" for="order_select">{--ADMIN_CONFIG_ORDER_SELECTION_COLUMN--}</label>
<div align="center">
<select name="order_select" class="form_select" size="1">
- $content[order_selection]
+ {%config,addOrderSelectionOptions=order_select%}
</select>
</div>
</div>
-<meta name="robots" content="noindex, nofollow, noarchive, nosnippet" />
\ No newline at end of file
+<meta name="robots" content="noindex, nofollow, noarchive, nosnippet" />