2 /************************************************************************
3 * MXChange v0.2.1 Start: 09/22/2004 *
4 * ================ Last change: 09/22/2004 *
6 * -------------------------------------------------------------------- *
7 * File : what-config_order.php *
8 * -------------------------------------------------------------------- *
9 * Short description : Configuration for order page *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Konfiguration der Mailbuchungsseite *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
17 * Needs to be in all Files and every File needs "svn propset *
18 * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
19 * -------------------------------------------------------------------- *
20 * Copyright (c) 2003 - 2008 by Roland Haeder *
21 * For more information visit: http://www.mxchange.org *
23 * This program is free software; you can redistribute it and/or modify *
24 * it under the terms of the GNU General Public License as published by *
25 * the Free Software Foundation; either version 2 of the License, or *
26 * (at your option) any later version. *
28 * This program is distributed in the hope that it will be useful, *
29 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
31 * GNU General Public License for more details. *
33 * You should have received a copy of the GNU General Public License *
34 * along with this program; if not, write to the Free Software *
35 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
37 ************************************************************************/
39 // Some security stuff...
40 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
41 $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
45 // Add description as navigation point
46 ADD_DESCR('admin', __FILE__);
50 ADMIN_SAVE_SETTINGS_POST();
52 // Prepare constants for the template
53 switch (getConfig('order_max_full')) {
55 define('__ORDER_DEFAULT', ' checked="checked"');
56 define('__MAX_DEFAULT' , '');
60 define('__ORDER_DEFAULT', '');
61 define('__MAX_DEFAULT' , ' checked="checked"');
65 // Minimum mails / order
66 define('__MIN_VALUE', getConfig('order_min'));
68 // Sorting mode (ascending / descending)
69 switch (getConfig('order_mode')) {
71 define('__ASC_DEFAULT' , ' selected="selected"');
72 define('__DESC_DEFAULT', '');
76 define('__ASC_DEFAULT' , '');
77 define('__DESC_DEFAULT', ' selected="selected"');
81 // Transfer other config data into constants for the template
82 define('_CFG_UNCONFIRMED' , getConfig('unconfirmed'));
83 define('_CFG_MAX_TLENGTH' , getConfig('max_tlength'));
85 if (getConfig('test_text') != 'Y') {
86 define('_CFG_TEST_TEXT_N', ' checked="checked"');
87 define('_CFG_TEST_TEXT_Y', '');
89 define('_CFG_TEST_TEXT_N', '');
90 define('_CFG_TEST_TEXT_Y', ' checked="checked"');
93 switch (getConfig('repay_deleted_mails')) {
95 define('_CFG_REPAY_POINTS_REPAY' , ' selected="selected"');
96 define('_CFG_REPAY_POINTS_JACKPOT', '');
97 define('_CFG_REPAY_POINTS_SHRED' , '');
101 define('_CFG_REPAY_POINTS_REPAY' , '');
102 define('_CFG_REPAY_POINTS_JACKPOT', ' selected="selected"');
103 define('_CFG_REPAY_POINTS_SHRED' , '');
107 define('_CFG_REPAY_POINTS_REPAY' , '');
108 define('_CFG_REPAY_POINTS_JACKPOT', '');
109 define('_CFG_REPAY_POINTS_SHRED' , ' selected="selected"');
113 if (getConfig('test_subj') != 'Y') {
114 define('_CFG_TEST_SUBJ_N', ' checked="checked"');
115 define('_CFG_TEST_SUBJ_Y', '');
117 define('_CFG_TEST_SUBJ_N', '');
118 define('_CFG_TEST_SUBJ_Y', ' checked="checked"');
121 if (getConfig('url_blacklist') != 'Y') {
122 define('_CFG_URL_BLIST_N', ' checked="checked"');
123 define('_CFG_URL_BLIST_Y', '');
125 define('_CFG_URL_BLIST_N', '');
126 define('_CFG_URL_BLIST_Y', ' checked="checked"');
130 define('__ORDER_SELECT', ORDER_SELECT_OPTION_LIST(getConfig('order_select')));
133 LOAD_TEMPLATE('admin_config_order');