1 |
552
|
thorn
|
<?php
|
2 |
|
|
|
3 |
|
|
// $Id$
|
4 |
|
|
|
5 |
|
|
/*
|
6 |
|
|
|
7 |
|
|
Website Baker Project <http://www.websitebaker.org/>
|
8 |
915
|
Ruebenwurz
|
Copyright (C) 2004-2009, Ryan Djurovich
|
9 |
552
|
thorn
|
|
10 |
|
|
Website Baker is free software; you can redistribute it and/or modify
|
11 |
|
|
it under the terms of the GNU General Public License as published by
|
12 |
|
|
the Free Software Foundation; either version 2 of the License, or
|
13 |
|
|
(at your option) any later version.
|
14 |
|
|
|
15 |
|
|
Website Baker is distributed in the hope that it will be useful,
|
16 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18 |
|
|
GNU General Public License for more details.
|
19 |
|
|
|
20 |
|
|
You should have received a copy of the GNU General Public License
|
21 |
|
|
along with Website Baker; if not, write to the Free Software
|
22 |
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
23 |
|
|
|
24 |
|
|
*/
|
25 |
|
|
|
26 |
|
|
require('../../config.php');
|
27 |
|
|
require_once(WB_PATH.'/framework/class.admin.php');
|
28 |
|
|
if(isset($_GET['advanced']) AND $_GET['advanced'] == 'yes') {
|
29 |
|
|
$admin = new admin('Settings', 'settings_advanced');
|
30 |
|
|
} else {
|
31 |
|
|
$admin = new admin('Settings', 'settings_basic');
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
// Include the WB functions file
|
35 |
|
|
require_once(WB_PATH.'/framework/functions.php');
|
36 |
718
|
thorn
|
require_once(WB_PATH.'/framework/functions-utf8.php');
|
37 |
552
|
thorn
|
|
38 |
|
|
// Create new template object
|
39 |
944
|
Ruebenwurz
|
$template = new Template(THEME_PATH.'/templates');
|
40 |
|
|
$template->set_file('page', 'settings.htt');
|
41 |
552
|
thorn
|
$template->set_block('page', 'main_block', 'main');
|
42 |
|
|
|
43 |
|
|
// Query current settings in the db, then loop through them and print them
|
44 |
|
|
$query = "SELECT * FROM ".TABLE_PREFIX."settings";
|
45 |
|
|
$results = $database->query($query);
|
46 |
|
|
while($setting = $results->fetchRow()) {
|
47 |
|
|
$setting_name = $setting['name'];
|
48 |
|
|
$setting_value = htmlspecialchars($setting['value']);
|
49 |
|
|
$template->set_var(strtoupper($setting_name),$setting_value);
|
50 |
|
|
}
|
51 |
|
|
|
52 |
|
|
// Query current settings in the db, then loop through them and print them
|
53 |
|
|
$query = "SELECT * FROM ".TABLE_PREFIX."search WHERE extra = ''";
|
54 |
|
|
$results = $database->query($query);
|
55 |
|
|
while($setting = $results->fetchRow()) {
|
56 |
|
|
$setting_name = $setting['name'];
|
57 |
|
|
$setting_value = htmlspecialchars(($setting['value']));
|
58 |
|
|
switch($setting_name) {
|
59 |
|
|
// Search header
|
60 |
|
|
case 'header':
|
61 |
|
|
$template->set_var('SEARCH_HEADER', $setting_value);
|
62 |
|
|
break;
|
63 |
|
|
// Search results header
|
64 |
|
|
case 'results_header':
|
65 |
|
|
$template->set_var('SEARCH_RESULTS_HEADER', $setting_value);
|
66 |
|
|
break;
|
67 |
|
|
// Search results loop
|
68 |
|
|
case 'results_loop':
|
69 |
|
|
$template->set_var('SEARCH_RESULTS_LOOP', $setting_value);
|
70 |
|
|
break;
|
71 |
|
|
// Search results footer
|
72 |
|
|
case 'results_footer':
|
73 |
|
|
$template->set_var('SEARCH_RESULTS_FOOTER', $setting_value);
|
74 |
|
|
break;
|
75 |
|
|
// Search no results
|
76 |
|
|
case 'no_results':
|
77 |
|
|
$template->set_var('SEARCH_NO_RESULTS', $setting_value);
|
78 |
|
|
break;
|
79 |
|
|
// Search footer
|
80 |
|
|
case 'footer':
|
81 |
|
|
$template->set_var('SEARCH_FOOTER', $setting_value);
|
82 |
|
|
break;
|
83 |
|
|
// Search module-order
|
84 |
|
|
case 'module_order':
|
85 |
|
|
$template->set_var('SEARCH_MODULE_ORDER', $setting_value);
|
86 |
|
|
break;
|
87 |
|
|
// Search max lines of excerpt
|
88 |
|
|
case 'max_excerpt':
|
89 |
|
|
$template->set_var('SEARCH_MAX_EXCERPT', $setting_value);
|
90 |
|
|
break;
|
91 |
769
|
thorn
|
// time-limit
|
92 |
|
|
case 'time_limit':
|
93 |
|
|
$template->set_var('SEARCH_TIME_LIMIT', $setting_value);
|
94 |
|
|
break;
|
95 |
552
|
thorn
|
// Search template
|
96 |
|
|
case 'template':
|
97 |
|
|
$search_template = $setting_value;
|
98 |
|
|
break;
|
99 |
|
|
}
|
100 |
|
|
}
|
101 |
|
|
|
102 |
|
|
// Do the same for settings stored in config file as with ones in db
|
103 |
|
|
$database_type = '';
|
104 |
|
|
|
105 |
|
|
// Tell the browser whether or not to show advanced options
|
106 |
|
|
if(isset($_GET['advanced']) AND $_GET['advanced'] == 'yes') {
|
107 |
|
|
$template->set_var('DISPLAY_ADVANCED', '');
|
108 |
|
|
$template->set_var('ADVANCED', 'yes');
|
109 |
1012
|
Ruebenwurz
|
$template->set_var('ADVANCED_BUTTON', '<< '.$TEXT['HIDE_ADVANCED']);
|
110 |
552
|
thorn
|
$template->set_var('ADVANCED_LINK', 'index.php?advanced=no');
|
111 |
|
|
$template->set_var('BASIC_FILE_PERMS_ID', 'hide');
|
112 |
|
|
$template->set_var('ADVANCED_FILE_PERMS_ID', 'file_perms_box');
|
113 |
|
|
} else {
|
114 |
1012
|
Ruebenwurz
|
$template->set_var('DISPLAY_ADVANCED', ' style="display: none;"');
|
115 |
552
|
thorn
|
$template->set_var('ADVANCED', 'no');
|
116 |
1012
|
Ruebenwurz
|
$template->set_var('ADVANCED_BUTTON', $TEXT['SHOW_ADVANCED'].' >>');
|
117 |
552
|
thorn
|
$template->set_var('ADVANCED_LINK', 'index.php?advanced=yes');
|
118 |
|
|
$template->set_var('BASIC_FILE_PERMS_ID', 'file_perms_box');
|
119 |
|
|
$template->set_var('ADVANCED_FILE_PERMS_ID', 'hide');
|
120 |
|
|
}
|
121 |
|
|
|
122 |
|
|
$template->set_var(array(
|
123 |
|
|
'PAGES_DIRECTORY' => PAGES_DIRECTORY,
|
124 |
|
|
'MEDIA_DIRECTORY' => MEDIA_DIRECTORY,
|
125 |
|
|
'PAGE_EXTENSION' => PAGE_EXTENSION,
|
126 |
|
|
'PAGE_SPACER' => PAGE_SPACER,
|
127 |
|
|
'WB_PATH' => WB_PATH,
|
128 |
|
|
'WB_URL' => WB_URL,
|
129 |
944
|
Ruebenwurz
|
'THEME_URL' => THEME_URL,
|
130 |
552
|
thorn
|
'ADMIN_PATH' => ADMIN_PATH,
|
131 |
|
|
'ADMIN_URL' => ADMIN_URL,
|
132 |
|
|
'DATABASE_TYPE' => DB_TYPE,
|
133 |
|
|
'DATABASE_HOST' => DB_HOST,
|
134 |
|
|
'DATABASE_USERNAME' => DB_USERNAME,
|
135 |
|
|
'DATABASE_NAME' => DB_NAME,
|
136 |
|
|
'TABLE_PREFIX' => TABLE_PREFIX
|
137 |
|
|
)
|
138 |
|
|
);
|
139 |
|
|
|
140 |
|
|
// Insert language values
|
141 |
|
|
$template->set_block('main_block', 'language_list_block', 'language_list');
|
142 |
712
|
Ruebenwurz
|
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'language' order by name");
|
143 |
552
|
thorn
|
if($result->numRows() > 0) {
|
144 |
718
|
thorn
|
while($addon = $result->fetchRow()) {
|
145 |
|
|
$l_codes[$addon['name']] = $addon['directory'];
|
146 |
|
|
$l_names[$addon['name']] = entities_to_7bit($addon['name']); // sorting-problem workaround
|
147 |
|
|
}
|
148 |
|
|
asort($l_names);
|
149 |
|
|
foreach($l_names as $l_name=>$v) {
|
150 |
552
|
thorn
|
// Insert code and name
|
151 |
|
|
$template->set_var(array(
|
152 |
718
|
thorn
|
'CODE' => $l_codes[$l_name],
|
153 |
1012
|
Ruebenwurz
|
'NAME' => $l_name,
|
154 |
|
|
'FLAG' => THEME_URL.'/images/flags/'.strtolower($l_codes[$l_name]),
|
155 |
552
|
thorn
|
));
|
156 |
|
|
// Check if it is selected
|
157 |
718
|
thorn
|
if(DEFAULT_LANGUAGE == $l_codes[$l_name]) {
|
158 |
1012
|
Ruebenwurz
|
$template->set_var('SELECTED', ' selected="selected"');
|
159 |
552
|
thorn
|
} else {
|
160 |
|
|
$template->set_var('SELECTED', '');
|
161 |
|
|
}
|
162 |
|
|
$template->parse('language_list', 'language_list_block', true);
|
163 |
|
|
}
|
164 |
|
|
}
|
165 |
|
|
|
166 |
|
|
// Insert default timezone values
|
167 |
|
|
require(ADMIN_PATH.'/interface/timezones.php');
|
168 |
|
|
$template->set_block('main_block', 'timezone_list_block', 'timezone_list');
|
169 |
|
|
foreach($TIMEZONES AS $hour_offset => $title) {
|
170 |
|
|
// Make sure we dont list "System Default" as we are setting this value!
|
171 |
|
|
if($hour_offset != '-20') {
|
172 |
|
|
$template->set_var('VALUE', $hour_offset);
|
173 |
|
|
$template->set_var('NAME', $title);
|
174 |
|
|
if(DEFAULT_TIMEZONE == $hour_offset*60*60) {
|
175 |
1012
|
Ruebenwurz
|
$template->set_var('SELECTED', ' selected="selected"');
|
176 |
552
|
thorn
|
} else {
|
177 |
|
|
$template->set_var('SELECTED', '');
|
178 |
|
|
}
|
179 |
|
|
$template->parse('timezone_list', 'timezone_list_block', true);
|
180 |
|
|
}
|
181 |
|
|
}
|
182 |
|
|
|
183 |
|
|
// Insert default charset values
|
184 |
|
|
require(ADMIN_PATH.'/interface/charsets.php');
|
185 |
|
|
$template->set_block('main_block', 'charset_list_block', 'charset_list');
|
186 |
|
|
foreach($CHARSETS AS $code => $title) {
|
187 |
|
|
$template->set_var('VALUE', $code);
|
188 |
|
|
$template->set_var('NAME', $title);
|
189 |
|
|
if(DEFAULT_CHARSET == $code) {
|
190 |
1012
|
Ruebenwurz
|
$template->set_var('SELECTED', ' selected="selected"');
|
191 |
552
|
thorn
|
} else {
|
192 |
|
|
$template->set_var('SELECTED', '');
|
193 |
|
|
}
|
194 |
|
|
$template->parse('charset_list', 'charset_list_block', true);
|
195 |
|
|
}
|
196 |
|
|
|
197 |
|
|
// Insert date format list
|
198 |
|
|
require(ADMIN_PATH.'/interface/date_formats.php');
|
199 |
|
|
$template->set_block('main_block', 'date_format_list_block', 'date_format_list');
|
200 |
|
|
foreach($DATE_FORMATS AS $format => $title) {
|
201 |
|
|
$format = str_replace('|', ' ', $format); // Add's white-spaces (not able to be stored in array key)
|
202 |
|
|
if($format != 'system_default') {
|
203 |
|
|
$template->set_var('VALUE', $format);
|
204 |
|
|
} else {
|
205 |
|
|
$template->set_var('VALUE', '');
|
206 |
|
|
}
|
207 |
|
|
$template->set_var('NAME', $title);
|
208 |
|
|
if(DEFAULT_DATE_FORMAT == $format) {
|
209 |
1012
|
Ruebenwurz
|
$template->set_var('SELECTED', ' selected="selected"');
|
210 |
552
|
thorn
|
} else {
|
211 |
|
|
$template->set_var('SELECTED', '');
|
212 |
|
|
}
|
213 |
|
|
$template->parse('date_format_list', 'date_format_list_block', true);
|
214 |
|
|
}
|
215 |
|
|
|
216 |
|
|
// Insert time format list
|
217 |
|
|
require(ADMIN_PATH.'/interface/time_formats.php');
|
218 |
|
|
$template->set_block('main_block', 'time_format_list_block', 'time_format_list');
|
219 |
|
|
foreach($TIME_FORMATS AS $format => $title) {
|
220 |
|
|
$format = str_replace('|', ' ', $format); // Add's white-spaces (not able to be stored in array key)
|
221 |
|
|
if($format != 'system_default') {
|
222 |
|
|
$template->set_var('VALUE', $format);
|
223 |
|
|
} else {
|
224 |
|
|
$template->set_var('VALUE', '');
|
225 |
|
|
}
|
226 |
|
|
$template->set_var('NAME', $title);
|
227 |
|
|
if(DEFAULT_TIME_FORMAT == $format) {
|
228 |
1012
|
Ruebenwurz
|
$template->set_var('SELECTED', ' selected="selected"');
|
229 |
552
|
thorn
|
} else {
|
230 |
|
|
$template->set_var('SELECTED', '');
|
231 |
|
|
}
|
232 |
|
|
$template->parse('time_format_list', 'time_format_list_block', true);
|
233 |
|
|
}
|
234 |
|
|
|
235 |
|
|
// Insert templates
|
236 |
|
|
$template->set_block('main_block', 'template_list_block', 'template_list');
|
237 |
944
|
Ruebenwurz
|
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function != 'theme' order by name");
|
238 |
552
|
thorn
|
if($result->numRows() > 0) {
|
239 |
|
|
while($addon = $result->fetchRow()) {
|
240 |
|
|
$template->set_var('FILE', $addon['directory']);
|
241 |
|
|
$template->set_var('NAME', $addon['name']);
|
242 |
1012
|
Ruebenwurz
|
if(($addon['directory'] == DEFAULT_TEMPLATE) ? $selected = ' selected="selected"' : $selected = '');
|
243 |
552
|
thorn
|
$template->set_var('SELECTED', $selected);
|
244 |
|
|
$template->parse('template_list', 'template_list_block', true);
|
245 |
|
|
}
|
246 |
|
|
}
|
247 |
|
|
|
248 |
944
|
Ruebenwurz
|
// Insert backend theme
|
249 |
|
|
$template->set_block('main_block', 'theme_list_block', 'theme_list');
|
250 |
|
|
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' AND function = 'theme' order by name");
|
251 |
|
|
if($result->numRows() > 0) {
|
252 |
|
|
while($addon = $result->fetchRow()) {
|
253 |
|
|
$template->set_var('FILE', $addon['directory']);
|
254 |
|
|
$template->set_var('NAME', $addon['name']);
|
255 |
1012
|
Ruebenwurz
|
if(($addon['directory'] == DEFAULT_THEME) ? $selected = ' selected="selected"' : $selected = '');
|
256 |
944
|
Ruebenwurz
|
$template->set_var('SELECTED', $selected);
|
257 |
|
|
$template->parse('theme_list', 'theme_list_block', true);
|
258 |
|
|
}
|
259 |
|
|
}
|
260 |
|
|
|
261 |
552
|
thorn
|
// Insert WYSIWYG modules
|
262 |
|
|
$template->set_block('main_block', 'editor_list_block', 'editor_list');
|
263 |
|
|
$file='none';
|
264 |
|
|
$module_name=$TEXT['NONE'];
|
265 |
|
|
$template->set_var('FILE', $file);
|
266 |
|
|
$template->set_var('NAME', $module_name);
|
267 |
1012
|
Ruebenwurz
|
if((!defined('WYSIWYG_EDITOR') OR $file == WYSIWYG_EDITOR) ? $selected = ' selected="selected"' : $selected = '');
|
268 |
|
|
$template->set_var('SELECTED', $selected);
|
269 |
552
|
thorn
|
$template->parse('editor_list', 'editor_list_block', true);
|
270 |
|
|
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'wysiwyg'");
|
271 |
|
|
if($result->numRows() > 0) {
|
272 |
|
|
while($addon = $result->fetchRow()) {
|
273 |
|
|
$template->set_var('FILE', $addon['directory']);
|
274 |
|
|
$template->set_var('NAME', $addon['name']);
|
275 |
1012
|
Ruebenwurz
|
if((defined('WYSIWYG_EDITOR') AND $addon['directory'] == WYSIWYG_EDITOR) ? $selected = ' selected="selected"' : $selected = '');
|
276 |
552
|
thorn
|
$template->set_var('SELECTED', $selected);
|
277 |
|
|
$template->parse('editor_list', 'editor_list_block', true);
|
278 |
|
|
}
|
279 |
|
|
}
|
280 |
|
|
|
281 |
|
|
// Insert templates for search settings
|
282 |
|
|
$template->set_block('main_block', 'search_template_list_block', 'search_template_list');
|
283 |
1012
|
Ruebenwurz
|
if($search_template == '') { $selected = ' selected="selected"'; } else { $selected = ''; }
|
284 |
552
|
thorn
|
$template->set_var(array('FILE' => '', 'NAME' => $TEXT['SYSTEM_DEFAULT'], 'SELECTED' => $selected));
|
285 |
|
|
$template->parse('search_template_list', 'search_template_list_block', true);
|
286 |
|
|
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' order by name");
|
287 |
|
|
if($result->numRows() > 0) {
|
288 |
|
|
while($addon = $result->fetchRow()) {
|
289 |
|
|
$template->set_var('FILE', $addon['directory']);
|
290 |
|
|
$template->set_var('NAME', $addon['name']);
|
291 |
1012
|
Ruebenwurz
|
if($addon['directory'] == $search_template ? $selected = ' selected="selected"' : $selected = '');
|
292 |
552
|
thorn
|
$template->set_var('SELECTED', $selected);
|
293 |
|
|
$template->parse('search_template_list', 'search_template_list_block', true);
|
294 |
|
|
}
|
295 |
|
|
}
|
296 |
|
|
|
297 |
|
|
// Insert default error reporting values
|
298 |
|
|
require(ADMIN_PATH.'/interface/er_levels.php');
|
299 |
|
|
$template->set_block('main_block', 'error_reporting_list_block', 'error_reporting_list');
|
300 |
|
|
foreach($ER_LEVELS AS $value => $title) {
|
301 |
|
|
$template->set_var('VALUE', $value);
|
302 |
|
|
$template->set_var('NAME', $title);
|
303 |
|
|
if(ER_LEVEL == $value) {
|
304 |
1012
|
Ruebenwurz
|
$template->set_var('SELECTED', ' selected="selected"');
|
305 |
552
|
thorn
|
} else {
|
306 |
|
|
$template->set_var('SELECTED', '');
|
307 |
|
|
}
|
308 |
|
|
$template->parse('error_reporting_list', 'error_reporting_list_block', true);
|
309 |
|
|
}
|
310 |
|
|
|
311 |
|
|
// Insert permissions values
|
312 |
|
|
if($admin->get_permission('settings_advanced') != true) {
|
313 |
|
|
$template->set_var('DISPLAY_ADVANCED_BUTTON', 'hide');
|
314 |
|
|
}
|
315 |
|
|
|
316 |
|
|
// Insert page level limits
|
317 |
|
|
$template->set_block('main_block', 'page_level_limit_list_block', 'page_level_limit_list');
|
318 |
|
|
for($i = 1; $i <= 10; $i++) {
|
319 |
|
|
$template->set_var('NUMBER', $i);
|
320 |
|
|
if(PAGE_LEVEL_LIMIT == $i) {
|
321 |
1012
|
Ruebenwurz
|
$template->set_var('SELECTED', ' selected="selected"');
|
322 |
552
|
thorn
|
} else {
|
323 |
|
|
$template->set_var('SELECTED', '');
|
324 |
|
|
}
|
325 |
|
|
$template->parse('page_level_limit_list', 'page_level_limit_list_block', true);
|
326 |
|
|
}
|
327 |
|
|
|
328 |
|
|
// Work-out if multiple menus feature is enabled
|
329 |
|
|
if(defined('MULTIPLE_MENUS') AND MULTIPLE_MENUS == true) {
|
330 |
1012
|
Ruebenwurz
|
$template->set_var('MULTIPLE_MENUS_ENABLED', ' checked="checked"');
|
331 |
552
|
thorn
|
} else {
|
332 |
1012
|
Ruebenwurz
|
$template->set_var('MULTIPLE_MENUS_DISABLED', ' checked="checked"');
|
333 |
552
|
thorn
|
}
|
334 |
|
|
|
335 |
|
|
// Work-out if page languages feature is enabled
|
336 |
|
|
if(defined('PAGE_LANGUAGES') AND PAGE_LANGUAGES == true) {
|
337 |
1012
|
Ruebenwurz
|
$template->set_var('PAGE_LANGUAGES_ENABLED', ' checked="checked"');
|
338 |
552
|
thorn
|
} else {
|
339 |
1012
|
Ruebenwurz
|
$template->set_var('PAGE_LANGUAGES_DISABLED', ' checked="checked"');
|
340 |
552
|
thorn
|
}
|
341 |
|
|
|
342 |
|
|
// Work-out if smart login feature is enabled
|
343 |
|
|
if(defined('SMART_LOGIN') AND SMART_LOGIN == true) {
|
344 |
1012
|
Ruebenwurz
|
$template->set_var('SMART_LOGIN_ENABLED', ' checked="checked"');
|
345 |
552
|
thorn
|
} else {
|
346 |
1012
|
Ruebenwurz
|
$template->set_var('SMART_LOGIN_DISABLED', ' checked="checked"');
|
347 |
552
|
thorn
|
}
|
348 |
|
|
|
349 |
|
|
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */
|
350 |
|
|
$template->set_var('GD_EXTENSION_ENABLED', '');
|
351 |
|
|
} else {
|
352 |
|
|
$template->set_var('GD_EXTENSION_ENABLED', 'none');
|
353 |
|
|
}
|
354 |
|
|
|
355 |
|
|
// Work-out if section blocks feature is enabled
|
356 |
|
|
if(defined('SECTION_BLOCKS') AND SECTION_BLOCKS == true) {
|
357 |
1012
|
Ruebenwurz
|
$template->set_var('SECTION_BLOCKS_ENABLED', ' checked="checked"');
|
358 |
552
|
thorn
|
} else {
|
359 |
1012
|
Ruebenwurz
|
$template->set_var('SECTION_BLOCKS_DISABLED', ' checked="checked"');
|
360 |
552
|
thorn
|
}
|
361 |
|
|
|
362 |
|
|
// Work-out if homepage redirection feature is enabled
|
363 |
|
|
if(defined('HOMEPAGE_REDIRECTION') AND HOMEPAGE_REDIRECTION == true) {
|
364 |
1012
|
Ruebenwurz
|
$template->set_var('HOMEPAGE_REDIRECTION_ENABLED', ' checked="checked"');
|
365 |
552
|
thorn
|
} else {
|
366 |
1012
|
Ruebenwurz
|
$template->set_var('HOMEPAGE_REDIRECTION_DISABLED', ' checked="checked"');
|
367 |
552
|
thorn
|
}
|
368 |
|
|
|
369 |
|
|
// Work-out which server os should be checked
|
370 |
|
|
if(OPERATING_SYSTEM == 'linux') {
|
371 |
1012
|
Ruebenwurz
|
$template->set_var('LINUX_SELECTED', ' checked="checked"');
|
372 |
552
|
thorn
|
} elseif(OPERATING_SYSTEM == 'windows') {
|
373 |
1012
|
Ruebenwurz
|
$template->set_var('WINDOWS_SELECTED', ' checked="checked"');
|
374 |
552
|
thorn
|
}
|
375 |
|
|
|
376 |
|
|
// Work-out if manage sections feature is enabled
|
377 |
|
|
if(MANAGE_SECTIONS) {
|
378 |
1012
|
Ruebenwurz
|
$template->set_var('MANAGE_SECTIONS_ENABLED', ' checked="checked"');
|
379 |
552
|
thorn
|
} else {
|
380 |
1012
|
Ruebenwurz
|
$template->set_var('MANAGE_SECTIONS_DISABLED', ' checked="checked"');
|
381 |
552
|
thorn
|
}
|
382 |
|
|
|
383 |
|
|
// Work-out which wbmailer routine should be checked
|
384 |
|
|
if(WBMAILER_ROUTINE == 'phpmail') {
|
385 |
1012
|
Ruebenwurz
|
$template->set_var('PHPMAIL_SELECTED', ' checked="checked"');
|
386 |
568
|
doc
|
$template->set_var('SMTP_VISIBILITY', 'none');
|
387 |
|
|
$template->set_var('SMTP_VISIBILITY_AUTH', 'none');
|
388 |
552
|
thorn
|
} elseif(WBMAILER_ROUTINE == 'smtp') {
|
389 |
1012
|
Ruebenwurz
|
$template->set_var('SMTPMAIL_SELECTED', ' checked="checked"');
|
390 |
568
|
doc
|
$template->set_var('SMTP_VISIBILITY', '');
|
391 |
552
|
thorn
|
}
|
392 |
|
|
|
393 |
|
|
// Work-out if SMTP authentification should be checked
|
394 |
|
|
if(WBMAILER_SMTP_AUTH) {
|
395 |
1012
|
Ruebenwurz
|
$template->set_var('SMTP_AUTH_SELECTED', ' checked="checked"');
|
396 |
552
|
thorn
|
if(WBMAILER_ROUTINE == 'smtp') {
|
397 |
568
|
doc
|
$template->set_var('SMTP_VISIBILITY_AUTH', '');
|
398 |
552
|
thorn
|
} else {
|
399 |
568
|
doc
|
$template->set_var('SMTP_VISIBILITY_AUTH', 'none');
|
400 |
552
|
thorn
|
}
|
401 |
|
|
} else {
|
402 |
568
|
doc
|
$template->set_var('SMTP_VISIBILITY_AUTH', 'none');
|
403 |
552
|
thorn
|
}
|
404 |
|
|
|
405 |
|
|
// Work-out if intro feature is enabled
|
406 |
|
|
if(INTRO_PAGE) {
|
407 |
1012
|
Ruebenwurz
|
$template->set_var('INTRO_PAGE_ENABLED', ' checked="checked"');
|
408 |
552
|
thorn
|
} else {
|
409 |
1012
|
Ruebenwurz
|
$template->set_var('INTRO_PAGE_DISABLED', ' checked="checked"');
|
410 |
552
|
thorn
|
}
|
411 |
|
|
|
412 |
|
|
// Work-out if frontend login feature is enabled
|
413 |
|
|
if(FRONTEND_LOGIN) {
|
414 |
1012
|
Ruebenwurz
|
$template->set_var('PRIVATE_ENABLED', ' checked="checked"');
|
415 |
552
|
thorn
|
} else {
|
416 |
1012
|
Ruebenwurz
|
$template->set_var('PRIVATE_DISABLED', ' checked="checked"');
|
417 |
552
|
thorn
|
}
|
418 |
|
|
|
419 |
|
|
// Work-out if page trash feature is disabled, in-line, or separate
|
420 |
|
|
if(PAGE_TRASH == 'disabled') {
|
421 |
1012
|
Ruebenwurz
|
$template->set_var('PAGE_TRASH_DISABLED', ' checked="checked"');
|
422 |
552
|
thorn
|
$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', ' display: none;');
|
423 |
|
|
} elseif(PAGE_TRASH == 'inline') {
|
424 |
1012
|
Ruebenwurz
|
$template->set_var('PAGE_TRASH_INLINE', ' checked="checked"');
|
425 |
552
|
thorn
|
$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', ' display: none;');
|
426 |
|
|
} elseif(PAGE_TRASH == 'separate') {
|
427 |
1012
|
Ruebenwurz
|
$template->set_var('PAGE_TRASH_SEPARATE', ' checked="checked"');
|
428 |
552
|
thorn
|
$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', ' display: inline;');
|
429 |
|
|
}
|
430 |
|
|
|
431 |
|
|
// Work-out if media home folde feature is enabled
|
432 |
|
|
if(HOME_FOLDERS) {
|
433 |
1012
|
Ruebenwurz
|
$template->set_var('HOME_FOLDERS_ENABLED', ' checked="checked"');
|
434 |
552
|
thorn
|
} else {
|
435 |
1012
|
Ruebenwurz
|
$template->set_var('HOME_FOLDERS_DISABLED', ' checked="checked"');
|
436 |
552
|
thorn
|
}
|
437 |
|
|
|
438 |
|
|
// Insert search select
|
439 |
|
|
if(SEARCH == 'private') {
|
440 |
1012
|
Ruebenwurz
|
$template->set_var('PRIVATE_SEARCH', ' selected="selected"');
|
441 |
552
|
thorn
|
} elseif(SEARCH == 'registered') {
|
442 |
1012
|
Ruebenwurz
|
$template->set_var('REGISTERED_SEARCH', ' selected="selected"');
|
443 |
552
|
thorn
|
} elseif(SEARCH == 'none') {
|
444 |
1012
|
Ruebenwurz
|
$template->set_var('NONE_SEARCH', ' selected="selected"');
|
445 |
552
|
thorn
|
}
|
446 |
|
|
|
447 |
|
|
// Work-out if 777 permissions are set
|
448 |
|
|
if(STRING_FILE_MODE == '0777' AND STRING_DIR_MODE == '0777') {
|
449 |
1012
|
Ruebenwurz
|
$template->set_var('WORLD_WRITEABLE_SELECTED', ' checked="checked"');
|
450 |
552
|
thorn
|
}
|
451 |
|
|
|
452 |
|
|
// Work-out which file mode boxes are checked
|
453 |
|
|
if(extract_permission(STRING_FILE_MODE, 'u', 'r')) {
|
454 |
1012
|
Ruebenwurz
|
$template->set_var('FILE_U_R_CHECKED', ' checked="checked"');
|
455 |
552
|
thorn
|
}
|
456 |
|
|
if(extract_permission(STRING_FILE_MODE, 'u', 'w')) {
|
457 |
1012
|
Ruebenwurz
|
$template->set_var('FILE_U_W_CHECKED', ' checked="checked"');
|
458 |
552
|
thorn
|
}
|
459 |
|
|
if(extract_permission(STRING_FILE_MODE, 'u', 'e')) {
|
460 |
1012
|
Ruebenwurz
|
$template->set_var('FILE_U_E_CHECKED', ' checked="checked"');
|
461 |
552
|
thorn
|
}
|
462 |
|
|
if(extract_permission(STRING_FILE_MODE, 'g', 'r')) {
|
463 |
1012
|
Ruebenwurz
|
$template->set_var('FILE_G_R_CHECKED', ' checked="checked"');
|
464 |
552
|
thorn
|
}
|
465 |
|
|
if(extract_permission(STRING_FILE_MODE, 'g', 'w')) {
|
466 |
1012
|
Ruebenwurz
|
$template->set_var('FILE_G_W_CHECKED', ' checked="checked"');
|
467 |
552
|
thorn
|
}
|
468 |
|
|
if(extract_permission(STRING_FILE_MODE, 'g', 'e')) {
|
469 |
1012
|
Ruebenwurz
|
$template->set_var('FILE_G_E_CHECKED', ' checked="checked"');
|
470 |
552
|
thorn
|
}
|
471 |
|
|
if(extract_permission(STRING_FILE_MODE, 'o', 'r')) {
|
472 |
1012
|
Ruebenwurz
|
$template->set_var('FILE_O_R_CHECKED', ' checked="checked"');
|
473 |
552
|
thorn
|
}
|
474 |
|
|
if(extract_permission(STRING_FILE_MODE, 'o', 'w')) {
|
475 |
1012
|
Ruebenwurz
|
$template->set_var('FILE_O_W_CHECKED', ' checked="checked"');
|
476 |
552
|
thorn
|
}
|
477 |
|
|
if(extract_permission(STRING_FILE_MODE, 'o', 'e')) {
|
478 |
1012
|
Ruebenwurz
|
$template->set_var('FILE_O_E_CHECKED', ' checked="checked"');
|
479 |
552
|
thorn
|
}
|
480 |
|
|
// Work-out which dir mode boxes are checked
|
481 |
|
|
if(extract_permission(STRING_DIR_MODE, 'u', 'r')) {
|
482 |
1012
|
Ruebenwurz
|
$template->set_var('DIR_U_R_CHECKED', ' checked="checked"');
|
483 |
552
|
thorn
|
}
|
484 |
|
|
if(extract_permission(STRING_DIR_MODE, 'u', 'w')) {
|
485 |
1012
|
Ruebenwurz
|
$template->set_var('DIR_U_W_CHECKED', ' checked="checked"');
|
486 |
552
|
thorn
|
}
|
487 |
|
|
if(extract_permission(STRING_DIR_MODE, 'u', 'e')) {
|
488 |
1012
|
Ruebenwurz
|
$template->set_var('DIR_U_E_CHECKED', ' checked="checked"');
|
489 |
552
|
thorn
|
}
|
490 |
|
|
if(extract_permission(STRING_DIR_MODE, 'g', 'r')) {
|
491 |
1012
|
Ruebenwurz
|
$template->set_var('DIR_G_R_CHECKED', ' checked="checked"');
|
492 |
552
|
thorn
|
}
|
493 |
|
|
if(extract_permission(STRING_DIR_MODE, 'g', 'w')) {
|
494 |
1012
|
Ruebenwurz
|
$template->set_var('DIR_G_W_CHECKED', ' checked="checked"');
|
495 |
552
|
thorn
|
}
|
496 |
|
|
if(extract_permission(STRING_DIR_MODE, 'g', 'e')) {
|
497 |
1012
|
Ruebenwurz
|
$template->set_var('DIR_G_E_CHECKED', ' checked="checked"');
|
498 |
552
|
thorn
|
}
|
499 |
|
|
if(extract_permission(STRING_DIR_MODE, 'o', 'r')) {
|
500 |
1012
|
Ruebenwurz
|
$template->set_var('DIR_O_R_CHECKED', ' checked="checked"');
|
501 |
552
|
thorn
|
}
|
502 |
|
|
if(extract_permission(STRING_DIR_MODE, 'o', 'w')) {
|
503 |
1012
|
Ruebenwurz
|
$template->set_var('DIR_O_W_CHECKED', ' checked="checked"');
|
504 |
552
|
thorn
|
}
|
505 |
|
|
if(extract_permission(STRING_DIR_MODE, 'o', 'e')) {
|
506 |
1012
|
Ruebenwurz
|
$template->set_var('DIR_O_E_CHECKED', ' checked="checked"');
|
507 |
552
|
thorn
|
}
|
508 |
|
|
|
509 |
|
|
// Insert Server Email value into template
|
510 |
|
|
$template->set_var('SERVER_EMAIL', SERVER_EMAIL);
|
511 |
|
|
|
512 |
|
|
// Insert groups into signup list
|
513 |
|
|
$template->set_block('main_block', 'group_list_block', 'group_list');
|
514 |
|
|
$results = $database->query("SELECT group_id, name FROM ".TABLE_PREFIX."groups WHERE group_id != '1'");
|
515 |
|
|
if($results->numRows() > 0) {
|
516 |
|
|
while($group = $results->fetchRow()) {
|
517 |
|
|
$template->set_var('ID', $group['group_id']);
|
518 |
|
|
$template->set_var('NAME', $group['name']);
|
519 |
|
|
if(FRONTEND_SIGNUP == $group['group_id']) {
|
520 |
1012
|
Ruebenwurz
|
$template->set_var('SELECTED', ' selected="selected"');
|
521 |
552
|
thorn
|
} else {
|
522 |
|
|
$template->set_var('SELECTED', '');
|
523 |
|
|
}
|
524 |
|
|
$template->parse('group_list', 'group_list_block', true);
|
525 |
|
|
}
|
526 |
|
|
} else {
|
527 |
|
|
$template->set_var('ID', 'disabled');
|
528 |
|
|
$template->set_var('NAME', $MESSAGE['GROUPS']['NO_GROUPS_FOUND']);
|
529 |
|
|
$template->parse('group_list', 'group_list_block', true);
|
530 |
|
|
}
|
531 |
|
|
|
532 |
|
|
// Insert language headings
|
533 |
|
|
$template->set_var(array(
|
534 |
|
|
'HEADING_GENERAL_SETTINGS' => $HEADING['GENERAL_SETTINGS'],
|
535 |
|
|
'HEADING_DEFAULT_SETTINGS' => $HEADING['DEFAULT_SETTINGS'],
|
536 |
|
|
'HEADING_SEARCH_SETTINGS' => $HEADING['SEARCH_SETTINGS'],
|
537 |
|
|
'HEADING_SERVER_SETTINGS' => $HEADING['SERVER_SETTINGS'],
|
538 |
|
|
'HEADING_WBMAILER_SETTINGS' => $HEADING['WBMAILER_SETTINGS'],
|
539 |
|
|
'HEADING_ADMINISTRATION_TOOLS' => $HEADING['ADMINISTRATION_TOOLS']
|
540 |
|
|
)
|
541 |
|
|
);
|
542 |
|
|
// Insert language text and messages
|
543 |
|
|
$template->set_var(array(
|
544 |
|
|
'TEXT_WEBSITE_TITLE' => $TEXT['WEBSITE_TITLE'],
|
545 |
|
|
'TEXT_WEBSITE_DESCRIPTION' => $TEXT['WEBSITE_DESCRIPTION'],
|
546 |
|
|
'TEXT_WEBSITE_KEYWORDS' => $TEXT['WEBSITE_KEYWORDS'],
|
547 |
|
|
'TEXT_WEBSITE_HEADER' => $TEXT['WEBSITE_HEADER'],
|
548 |
|
|
'TEXT_WEBSITE_FOOTER' => $TEXT['WEBSITE_FOOTER'],
|
549 |
|
|
'TEXT_HEADER' => $TEXT['HEADER'],
|
550 |
|
|
'TEXT_FOOTER' => $TEXT['FOOTER'],
|
551 |
|
|
'TEXT_VISIBILITY' => $TEXT['VISIBILITY'],
|
552 |
|
|
'TEXT_RESULTS_HEADER' => $TEXT['RESULTS_HEADER'],
|
553 |
|
|
'TEXT_RESULTS_LOOP' => $TEXT['RESULTS_LOOP'],
|
554 |
|
|
'TEXT_RESULTS_FOOTER' => $TEXT['RESULTS_FOOTER'],
|
555 |
|
|
'TEXT_NO_RESULTS' => $TEXT['NO_RESULTS'],
|
556 |
|
|
'TEXT_TEXT' => $TEXT['TEXT'],
|
557 |
|
|
'TEXT_DEFAULT' => $TEXT['DEFAULT'],
|
558 |
|
|
'TEXT_LANGUAGE' => $TEXT['LANGUAGE'],
|
559 |
|
|
'TEXT_TIMEZONE' => $TEXT['TIMEZONE'],
|
560 |
|
|
'TEXT_CHARSET' => $TEXT['CHARSET'],
|
561 |
|
|
'TEXT_DATE_FORMAT' => $TEXT['DATE_FORMAT'],
|
562 |
|
|
'TEXT_TIME_FORMAT' => $TEXT['TIME_FORMAT'],
|
563 |
|
|
'TEXT_TEMPLATE' => $TEXT['TEMPLATE'],
|
564 |
944
|
Ruebenwurz
|
'TEXT_THEME' => $TEXT['THEME'],
|
565 |
552
|
thorn
|
'TEXT_WYSIWYG_EDITOR' => $TEXT['WYSIWYG_EDITOR'],
|
566 |
|
|
'TEXT_PAGE_LEVEL_LIMIT' => $TEXT['PAGE_LEVEL_LIMIT'],
|
567 |
|
|
'TEXT_INTRO_PAGE' => $TEXT['INTRO_PAGE'],
|
568 |
|
|
'TEXT_FRONTEND' => $TEXT['FRONTEND'],
|
569 |
|
|
'TEXT_LOGIN' => $TEXT['LOGIN'],
|
570 |
929
|
doc
|
'TEXT_REDIRECT_AFTER' => $TEXT['REDIRECT_AFTER'],
|
571 |
552
|
thorn
|
'TEXT_SIGNUP' => $TEXT['SIGNUP'],
|
572 |
|
|
'TEXT_PHP_ERROR_LEVEL' => $TEXT['PHP_ERROR_LEVEL'],
|
573 |
|
|
'TEXT_PAGES_DIRECTORY' => $TEXT['PAGES_DIRECTORY'],
|
574 |
|
|
'TEXT_MEDIA_DIRECTORY' => $TEXT['MEDIA_DIRECTORY'],
|
575 |
|
|
'TEXT_PAGE_EXTENSION' => $TEXT['PAGE_EXTENSION'],
|
576 |
|
|
'TEXT_PAGE_SPACER' => $TEXT['PAGE_SPACER'],
|
577 |
|
|
'TEXT_RENAME_FILES_ON_UPLOAD' => $TEXT['RENAME_FILES_ON_UPLOAD'],
|
578 |
|
|
'TEXT_APP_NAME' => $TEXT['APP_NAME'],
|
579 |
|
|
'TEXT_SESSION_IDENTIFIER' => $TEXT['SESSION_IDENTIFIER'],
|
580 |
871
|
thorn
|
'TEXT_SEC_ANCHOR' => $TEXT['SEC_ANCHOR'],
|
581 |
552
|
thorn
|
'TEXT_SERVER_OPERATING_SYSTEM' => $TEXT['SERVER_OPERATING_SYSTEM'],
|
582 |
|
|
'TEXT_LINUX_UNIX_BASED' => $TEXT['LINUX_UNIX_BASED'],
|
583 |
|
|
'TEXT_WINDOWS' => $TEXT['WINDOWS'],
|
584 |
|
|
'TEXT_ADMIN' => $TEXT['ADMIN'],
|
585 |
|
|
'TEXT_TYPE' => $TEXT['TYPE'],
|
586 |
|
|
'TEXT_DATABASE' => $TEXT['DATABASE'],
|
587 |
|
|
'TEXT_HOST' => $TEXT['HOST'],
|
588 |
|
|
'TEXT_USERNAME' => $TEXT['USERNAME'],
|
589 |
|
|
'TEXT_PASSWORD' => $TEXT['PASSWORD'],
|
590 |
|
|
'TEXT_NAME' => $TEXT['NAME'],
|
591 |
|
|
'TEXT_TABLE_PREFIX' => $TEXT['TABLE_PREFIX'],
|
592 |
|
|
'TEXT_SAVE' => $TEXT['SAVE'],
|
593 |
|
|
'TEXT_RESET' => $TEXT['RESET'],
|
594 |
|
|
'TEXT_CHANGES' => $TEXT['CHANGES'],
|
595 |
|
|
'TEXT_ENABLED' => $TEXT['ENABLED'],
|
596 |
|
|
'TEXT_DISABLED' => $TEXT['DISABLED'],
|
597 |
|
|
'TEXT_MANAGE_SECTIONS' => $HEADING['MANAGE_SECTIONS'],
|
598 |
|
|
'TEXT_MANAGE' => $TEXT['MANAGE'],
|
599 |
|
|
'TEXT_SEARCH' => $TEXT['SEARCH'],
|
600 |
|
|
'TEXT_PUBLIC' => $TEXT['PUBLIC'],
|
601 |
|
|
'TEXT_PRIVATE' => $TEXT['PRIVATE'],
|
602 |
|
|
'TEXT_REGISTERED' => $TEXT['REGISTERED'],
|
603 |
|
|
'TEXT_NONE' => $TEXT['NONE'],
|
604 |
|
|
'TEXT_FILES' => strtoupper(substr($TEXT['FILES'], 0, 1)).substr($TEXT['FILES'], 1),
|
605 |
|
|
'TEXT_DIRECTORIES' => $TEXT['DIRECTORIES'],
|
606 |
|
|
'TEXT_FILESYSTEM_PERMISSIONS' => $TEXT['FILESYSTEM_PERMISSIONS'],
|
607 |
|
|
'TEXT_USER' => $TEXT['USER'],
|
608 |
|
|
'TEXT_GROUP' => $TEXT['GROUP'],
|
609 |
|
|
'TEXT_OTHERS' => $TEXT['OTHERS'],
|
610 |
|
|
'TEXT_READ' => $TEXT['READ'],
|
611 |
|
|
'TEXT_WRITE' => $TEXT['WRITE'],
|
612 |
|
|
'TEXT_EXECUTE' => $TEXT['EXECUTE'],
|
613 |
|
|
'TEXT_SMART_LOGIN' => $TEXT['SMART_LOGIN'],
|
614 |
|
|
'TEXT_MULTIPLE_MENUS' => $TEXT['MULTIPLE_MENUS'],
|
615 |
|
|
'TEXT_HOMEPAGE_REDIRECTION' => $TEXT['HOMEPAGE_REDIRECTION'],
|
616 |
|
|
'TEXT_SECTION_BLOCKS' => $TEXT['SECTION_BLOCKS'],
|
617 |
|
|
'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'],
|
618 |
|
|
'TEXT_PAGE_TRASH' => $TEXT['PAGE_TRASH'],
|
619 |
|
|
'TEXT_PAGE_LANGUAGES' => $TEXT['PAGE_LANGUAGES'],
|
620 |
|
|
'TEXT_INLINE' => $TEXT['INLINE'],
|
621 |
|
|
'TEXT_SEPARATE' => $TEXT['SEPARATE'],
|
622 |
|
|
'TEXT_HOME_FOLDERS' => $TEXT['HOME_FOLDERS'],
|
623 |
|
|
'TEXT_WYSIWYG_STYLE' => $TEXT['WYSIWYG_STYLE'],
|
624 |
|
|
'TEXT_WORLD_WRITEABLE_FILE_PERMISSIONS' => $TEXT['WORLD_WRITEABLE_FILE_PERMISSIONS'],
|
625 |
568
|
doc
|
'TEXT_WBMAILER_DEFAULT_SETTINGS_NOTICE' => $TEXT['WBMAILER_DEFAULT_SETTINGS_NOTICE'],
|
626 |
|
|
'TEXT_WBMAILER_DEFAULT_SENDER_MAIL' => $TEXT['WBMAILER_DEFAULT_SENDER_MAIL'],
|
627 |
|
|
'TEXT_WBMAILER_DEFAULT_SENDER_NAME' => $TEXT['WBMAILER_DEFAULT_SENDER_NAME'],
|
628 |
552
|
thorn
|
'TEXT_WBMAILER_NOTICE' => $TEXT['WBMAILER_NOTICE'],
|
629 |
|
|
'TEXT_WBMAILER_FUNCTION' => $TEXT['WBMAILER_FUNCTION'],
|
630 |
|
|
'TEXT_WBMAILER_SMTP_HOST' => $TEXT['WBMAILER_SMTP_HOST'],
|
631 |
|
|
'TEXT_WBMAILER_PHP' => $TEXT['WBMAILER_PHP'],
|
632 |
|
|
'TEXT_WBMAILER_SMTP' => $TEXT['WBMAILER_SMTP'],
|
633 |
|
|
'TEXT_WBMAILER_SMTP_AUTH' => $TEXT['WBMAILER_SMTP_AUTH'],
|
634 |
|
|
'TEXT_WBMAILER_SMTP_AUTH_NOTICE' => $TEXT['WBMAILER_SMTP_AUTH_NOTICE'],
|
635 |
|
|
'TEXT_WBMAILER_SMTP_USERNAME' => $TEXT['WBMAILER_SMTP_USERNAME'],
|
636 |
|
|
'TEXT_WBMAILER_SMTP_PASSWORD' => $TEXT['WBMAILER_SMTP_PASSWORD'],
|
637 |
|
|
'MODE_SWITCH_WARNING' => $MESSAGE['SETTINGS']['MODE_SWITCH_WARNING'],
|
638 |
|
|
'WORLD_WRITEABLE_WARNING' => $MESSAGE['SETTINGS']['WORLD_WRITEABLE_WARNING'],
|
639 |
|
|
'TEXT_MODULE_ORDER' => $TEXT['MODULE_ORDER'],
|
640 |
769
|
thorn
|
'TEXT_MAX_EXCERPT' => $TEXT['MAX_EXCERPT'],
|
641 |
|
|
'TEXT_TIME_LIMIT' => $TEXT['TIME_LIMIT']
|
642 |
552
|
thorn
|
)
|
643 |
|
|
);
|
644 |
|
|
|
645 |
|
|
// Parse template objects output
|
646 |
|
|
$template->parse('main', 'main_block', false);
|
647 |
|
|
$template->pparse('output', 'page');
|
648 |
|
|
|
649 |
|
|
$admin->print_footer();
|
650 |
|
|
|
651 |
|
|
?>
|