Revision 1012
Added by Matthias over 15 years ago
index.php | ||
---|---|---|
106 | 106 |
if(isset($_GET['advanced']) AND $_GET['advanced'] == 'yes') { |
107 | 107 |
$template->set_var('DISPLAY_ADVANCED', ''); |
108 | 108 |
$template->set_var('ADVANCED', 'yes'); |
109 |
$template->set_var('ADVANCED_BUTTON', '<< '.$TEXT['HIDE_ADVANCED']);
|
|
109 |
$template->set_var('ADVANCED_BUTTON', '<< '.$TEXT['HIDE_ADVANCED']);
|
|
110 | 110 |
$template->set_var('ADVANCED_LINK', 'index.php?advanced=no'); |
111 | 111 |
$template->set_var('BASIC_FILE_PERMS_ID', 'hide'); |
112 | 112 |
$template->set_var('ADVANCED_FILE_PERMS_ID', 'file_perms_box'); |
113 | 113 |
} else { |
114 |
$template->set_var('DISPLAY_ADVANCED', 'none');
|
|
114 |
$template->set_var('DISPLAY_ADVANCED', ' style="display: none;"');
|
|
115 | 115 |
$template->set_var('ADVANCED', 'no'); |
116 |
$template->set_var('ADVANCED_BUTTON', $TEXT['SHOW_ADVANCED'].' >>');
|
|
116 |
$template->set_var('ADVANCED_BUTTON', $TEXT['SHOW_ADVANCED'].' >>');
|
|
117 | 117 |
$template->set_var('ADVANCED_LINK', 'index.php?advanced=yes'); |
118 | 118 |
$template->set_var('BASIC_FILE_PERMS_ID', 'file_perms_box'); |
119 | 119 |
$template->set_var('ADVANCED_FILE_PERMS_ID', 'hide'); |
... | ... | |
150 | 150 |
// Insert code and name |
151 | 151 |
$template->set_var(array( |
152 | 152 |
'CODE' => $l_codes[$l_name], |
153 |
'NAME' => $l_name |
|
153 |
'NAME' => $l_name, |
|
154 |
'FLAG' => THEME_URL.'/images/flags/'.strtolower($l_codes[$l_name]), |
|
154 | 155 |
)); |
155 | 156 |
// Check if it is selected |
156 | 157 |
if(DEFAULT_LANGUAGE == $l_codes[$l_name]) { |
157 |
$template->set_var('SELECTED', ' selected'); |
|
158 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
158 | 159 |
} else { |
159 | 160 |
$template->set_var('SELECTED', ''); |
160 | 161 |
} |
... | ... | |
171 | 172 |
$template->set_var('VALUE', $hour_offset); |
172 | 173 |
$template->set_var('NAME', $title); |
173 | 174 |
if(DEFAULT_TIMEZONE == $hour_offset*60*60) { |
174 |
$template->set_var('SELECTED', 'selected');
|
|
175 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
175 | 176 |
} else { |
176 | 177 |
$template->set_var('SELECTED', ''); |
177 | 178 |
} |
... | ... | |
186 | 187 |
$template->set_var('VALUE', $code); |
187 | 188 |
$template->set_var('NAME', $title); |
188 | 189 |
if(DEFAULT_CHARSET == $code) { |
189 |
$template->set_var('SELECTED', 'selected');
|
|
190 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
190 | 191 |
} else { |
191 | 192 |
$template->set_var('SELECTED', ''); |
192 | 193 |
} |
... | ... | |
205 | 206 |
} |
206 | 207 |
$template->set_var('NAME', $title); |
207 | 208 |
if(DEFAULT_DATE_FORMAT == $format) { |
208 |
$template->set_var('SELECTED', 'selected');
|
|
209 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
209 | 210 |
} else { |
210 | 211 |
$template->set_var('SELECTED', ''); |
211 | 212 |
} |
... | ... | |
224 | 225 |
} |
225 | 226 |
$template->set_var('NAME', $title); |
226 | 227 |
if(DEFAULT_TIME_FORMAT == $format) { |
227 |
$template->set_var('SELECTED', 'selected');
|
|
228 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
228 | 229 |
} else { |
229 | 230 |
$template->set_var('SELECTED', ''); |
230 | 231 |
} |
... | ... | |
238 | 239 |
while($addon = $result->fetchRow()) { |
239 | 240 |
$template->set_var('FILE', $addon['directory']); |
240 | 241 |
$template->set_var('NAME', $addon['name']); |
241 |
if(($addon['directory'] == DEFAULT_TEMPLATE) ? $selected = ' selected' : $selected = ''); |
|
242 |
if(($addon['directory'] == DEFAULT_TEMPLATE) ? $selected = ' selected="selected"' : $selected = '');
|
|
242 | 243 |
$template->set_var('SELECTED', $selected); |
243 | 244 |
$template->parse('template_list', 'template_list_block', true); |
244 | 245 |
} |
... | ... | |
251 | 252 |
while($addon = $result->fetchRow()) { |
252 | 253 |
$template->set_var('FILE', $addon['directory']); |
253 | 254 |
$template->set_var('NAME', $addon['name']); |
254 |
if(($addon['directory'] == DEFAULT_THEME) ? $selected = ' selected' : $selected = ''); |
|
255 |
if(($addon['directory'] == DEFAULT_THEME) ? $selected = ' selected="selected"' : $selected = '');
|
|
255 | 256 |
$template->set_var('SELECTED', $selected); |
256 | 257 |
$template->parse('theme_list', 'theme_list_block', true); |
257 | 258 |
} |
... | ... | |
263 | 264 |
$module_name=$TEXT['NONE']; |
264 | 265 |
$template->set_var('FILE', $file); |
265 | 266 |
$template->set_var('NAME', $module_name); |
266 |
if((!defined('WYSIWYG_EDITOR') OR $file == WYSIWYG_EDITOR) ? $selected = ' selected' : $selected = '');
|
|
267 |
$template->set_var('SELECTED', $selected);
|
|
267 |
if((!defined('WYSIWYG_EDITOR') OR $file == WYSIWYG_EDITOR) ? $selected = ' selected="selected"' : $selected = '');
|
|
268 |
$template->set_var('SELECTED', $selected); |
|
268 | 269 |
$template->parse('editor_list', 'editor_list_block', true); |
269 | 270 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'wysiwyg'"); |
270 | 271 |
if($result->numRows() > 0) { |
271 | 272 |
while($addon = $result->fetchRow()) { |
272 | 273 |
$template->set_var('FILE', $addon['directory']); |
273 | 274 |
$template->set_var('NAME', $addon['name']); |
274 |
if((defined('WYSIWYG_EDITOR') AND $addon['directory'] == WYSIWYG_EDITOR) ? $selected = ' selected' : $selected = ''); |
|
275 |
if((defined('WYSIWYG_EDITOR') AND $addon['directory'] == WYSIWYG_EDITOR) ? $selected = ' selected="selected"' : $selected = '');
|
|
275 | 276 |
$template->set_var('SELECTED', $selected); |
276 | 277 |
$template->parse('editor_list', 'editor_list_block', true); |
277 | 278 |
} |
... | ... | |
279 | 280 |
|
280 | 281 |
// Insert templates for search settings |
281 | 282 |
$template->set_block('main_block', 'search_template_list_block', 'search_template_list'); |
282 |
if($search_template == '') { $selected = ' selected'; } else { $selected = ''; } |
|
283 |
if($search_template == '') { $selected = ' selected="selected"'; } else { $selected = ''; }
|
|
283 | 284 |
$template->set_var(array('FILE' => '', 'NAME' => $TEXT['SYSTEM_DEFAULT'], 'SELECTED' => $selected)); |
284 | 285 |
$template->parse('search_template_list', 'search_template_list_block', true); |
285 | 286 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template' order by name"); |
... | ... | |
287 | 288 |
while($addon = $result->fetchRow()) { |
288 | 289 |
$template->set_var('FILE', $addon['directory']); |
289 | 290 |
$template->set_var('NAME', $addon['name']); |
290 |
if($addon['directory'] == $search_template ? $selected = ' selected' : $selected = ''); |
|
291 |
if($addon['directory'] == $search_template ? $selected = ' selected="selected"' : $selected = '');
|
|
291 | 292 |
$template->set_var('SELECTED', $selected); |
292 | 293 |
$template->parse('search_template_list', 'search_template_list_block', true); |
293 | 294 |
} |
... | ... | |
300 | 301 |
$template->set_var('VALUE', $value); |
301 | 302 |
$template->set_var('NAME', $title); |
302 | 303 |
if(ER_LEVEL == $value) { |
303 |
$template->set_var('SELECTED', 'selected');
|
|
304 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
304 | 305 |
} else { |
305 | 306 |
$template->set_var('SELECTED', ''); |
306 | 307 |
} |
... | ... | |
317 | 318 |
for($i = 1; $i <= 10; $i++) { |
318 | 319 |
$template->set_var('NUMBER', $i); |
319 | 320 |
if(PAGE_LEVEL_LIMIT == $i) { |
320 |
$template->set_var('SELECTED', 'selected');
|
|
321 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
321 | 322 |
} else { |
322 | 323 |
$template->set_var('SELECTED', ''); |
323 | 324 |
} |
... | ... | |
326 | 327 |
|
327 | 328 |
// Work-out if multiple menus feature is enabled |
328 | 329 |
if(defined('MULTIPLE_MENUS') AND MULTIPLE_MENUS == true) { |
329 |
$template->set_var('MULTIPLE_MENUS_ENABLED', ' checked'); |
|
330 |
$template->set_var('MULTIPLE_MENUS_ENABLED', ' checked="checked"');
|
|
330 | 331 |
} else { |
331 |
$template->set_var('MULTIPLE_MENUS_DISABLED', ' checked'); |
|
332 |
$template->set_var('MULTIPLE_MENUS_DISABLED', ' checked="checked"');
|
|
332 | 333 |
} |
333 | 334 |
|
334 | 335 |
// Work-out if page languages feature is enabled |
335 | 336 |
if(defined('PAGE_LANGUAGES') AND PAGE_LANGUAGES == true) { |
336 |
$template->set_var('PAGE_LANGUAGES_ENABLED', ' checked'); |
|
337 |
$template->set_var('PAGE_LANGUAGES_ENABLED', ' checked="checked"');
|
|
337 | 338 |
} else { |
338 |
$template->set_var('PAGE_LANGUAGES_DISABLED', ' checked'); |
|
339 |
$template->set_var('PAGE_LANGUAGES_DISABLED', ' checked="checked"');
|
|
339 | 340 |
} |
340 | 341 |
|
341 | 342 |
// Work-out if smart login feature is enabled |
342 | 343 |
if(defined('SMART_LOGIN') AND SMART_LOGIN == true) { |
343 |
$template->set_var('SMART_LOGIN_ENABLED', ' checked'); |
|
344 |
$template->set_var('SMART_LOGIN_ENABLED', ' checked="checked"');
|
|
344 | 345 |
} else { |
345 |
$template->set_var('SMART_LOGIN_DISABLED', ' checked'); |
|
346 |
$template->set_var('SMART_LOGIN_DISABLED', ' checked="checked"');
|
|
346 | 347 |
} |
347 | 348 |
|
348 | 349 |
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */ |
... | ... | |
353 | 354 |
|
354 | 355 |
// Work-out if section blocks feature is enabled |
355 | 356 |
if(defined('SECTION_BLOCKS') AND SECTION_BLOCKS == true) { |
356 |
$template->set_var('SECTION_BLOCKS_ENABLED', ' checked'); |
|
357 |
$template->set_var('SECTION_BLOCKS_ENABLED', ' checked="checked"');
|
|
357 | 358 |
} else { |
358 |
$template->set_var('SECTION_BLOCKS_DISABLED', ' checked'); |
|
359 |
$template->set_var('SECTION_BLOCKS_DISABLED', ' checked="checked"');
|
|
359 | 360 |
} |
360 | 361 |
|
361 | 362 |
// Work-out if homepage redirection feature is enabled |
362 | 363 |
if(defined('HOMEPAGE_REDIRECTION') AND HOMEPAGE_REDIRECTION == true) { |
363 |
$template->set_var('HOMEPAGE_REDIRECTION_ENABLED', ' checked'); |
|
364 |
$template->set_var('HOMEPAGE_REDIRECTION_ENABLED', ' checked="checked"');
|
|
364 | 365 |
} else { |
365 |
$template->set_var('HOMEPAGE_REDIRECTION_DISABLED', ' checked'); |
|
366 |
$template->set_var('HOMEPAGE_REDIRECTION_DISABLED', ' checked="checked"');
|
|
366 | 367 |
} |
367 | 368 |
|
368 | 369 |
// Work-out which server os should be checked |
369 | 370 |
if(OPERATING_SYSTEM == 'linux') { |
370 |
$template->set_var('LINUX_SELECTED', ' checked'); |
|
371 |
$template->set_var('LINUX_SELECTED', ' checked="checked"');
|
|
371 | 372 |
} elseif(OPERATING_SYSTEM == 'windows') { |
372 |
$template->set_var('WINDOWS_SELECTED', ' checked'); |
|
373 |
$template->set_var('WINDOWS_SELECTED', ' checked="checked"');
|
|
373 | 374 |
} |
374 | 375 |
|
375 | 376 |
// Work-out if manage sections feature is enabled |
376 | 377 |
if(MANAGE_SECTIONS) { |
377 |
$template->set_var('MANAGE_SECTIONS_ENABLED', ' checked'); |
|
378 |
$template->set_var('MANAGE_SECTIONS_ENABLED', ' checked="checked"');
|
|
378 | 379 |
} else { |
379 |
$template->set_var('MANAGE_SECTIONS_DISABLED', ' checked'); |
|
380 |
$template->set_var('MANAGE_SECTIONS_DISABLED', ' checked="checked"');
|
|
380 | 381 |
} |
381 | 382 |
|
382 | 383 |
// Work-out which wbmailer routine should be checked |
383 | 384 |
if(WBMAILER_ROUTINE == 'phpmail') { |
384 |
$template->set_var('PHPMAIL_SELECTED', ' checked'); |
|
385 |
$template->set_var('PHPMAIL_SELECTED', ' checked="checked"');
|
|
385 | 386 |
$template->set_var('SMTP_VISIBILITY', 'none'); |
386 | 387 |
$template->set_var('SMTP_VISIBILITY_AUTH', 'none'); |
387 | 388 |
} elseif(WBMAILER_ROUTINE == 'smtp') { |
388 |
$template->set_var('SMTPMAIL_SELECTED', ' checked'); |
|
389 |
$template->set_var('SMTPMAIL_SELECTED', ' checked="checked"');
|
|
389 | 390 |
$template->set_var('SMTP_VISIBILITY', ''); |
390 | 391 |
} |
391 | 392 |
|
392 | 393 |
// Work-out if SMTP authentification should be checked |
393 | 394 |
if(WBMAILER_SMTP_AUTH) { |
394 |
$template->set_var('SMTP_AUTH_SELECTED', ' checked'); |
|
395 |
$template->set_var('SMTP_AUTH_SELECTED', ' checked="checked"');
|
|
395 | 396 |
if(WBMAILER_ROUTINE == 'smtp') { |
396 | 397 |
$template->set_var('SMTP_VISIBILITY_AUTH', ''); |
397 | 398 |
} else { |
... | ... | |
403 | 404 |
|
404 | 405 |
// Work-out if intro feature is enabled |
405 | 406 |
if(INTRO_PAGE) { |
406 |
$template->set_var('INTRO_PAGE_ENABLED', ' checked'); |
|
407 |
$template->set_var('INTRO_PAGE_ENABLED', ' checked="checked"');
|
|
407 | 408 |
} else { |
408 |
$template->set_var('INTRO_PAGE_DISABLED', ' checked'); |
|
409 |
$template->set_var('INTRO_PAGE_DISABLED', ' checked="checked"');
|
|
409 | 410 |
} |
410 | 411 |
|
411 | 412 |
// Work-out if frontend login feature is enabled |
412 | 413 |
if(FRONTEND_LOGIN) { |
413 |
$template->set_var('PRIVATE_ENABLED', ' checked'); |
|
414 |
$template->set_var('PRIVATE_ENABLED', ' checked="checked"');
|
|
414 | 415 |
} else { |
415 |
$template->set_var('PRIVATE_DISABLED', ' checked'); |
|
416 |
$template->set_var('PRIVATE_DISABLED', ' checked="checked"');
|
|
416 | 417 |
} |
417 | 418 |
|
418 | 419 |
// Work-out if page trash feature is disabled, in-line, or separate |
419 | 420 |
if(PAGE_TRASH == 'disabled') { |
420 |
$template->set_var('PAGE_TRASH_DISABLED', ' checked'); |
|
421 |
$template->set_var('PAGE_TRASH_DISABLED', ' checked="checked"');
|
|
421 | 422 |
$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', ' display: none;'); |
422 | 423 |
} elseif(PAGE_TRASH == 'inline') { |
423 |
$template->set_var('PAGE_TRASH_INLINE', ' checked'); |
|
424 |
$template->set_var('PAGE_TRASH_INLINE', ' checked="checked"');
|
|
424 | 425 |
$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', ' display: none;'); |
425 | 426 |
} elseif(PAGE_TRASH == 'separate') { |
426 |
$template->set_var('PAGE_TRASH_SEPARATE', ' checked'); |
|
427 |
$template->set_var('PAGE_TRASH_SEPARATE', ' checked="checked"');
|
|
427 | 428 |
$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', ' display: inline;'); |
428 | 429 |
} |
429 | 430 |
|
430 | 431 |
// Work-out if media home folde feature is enabled |
431 | 432 |
if(HOME_FOLDERS) { |
432 |
$template->set_var('HOME_FOLDERS_ENABLED', ' checked'); |
|
433 |
$template->set_var('HOME_FOLDERS_ENABLED', ' checked="checked"');
|
|
433 | 434 |
} else { |
434 |
$template->set_var('HOME_FOLDERS_DISABLED', ' checked'); |
|
435 |
$template->set_var('HOME_FOLDERS_DISABLED', ' checked="checked"');
|
|
435 | 436 |
} |
436 | 437 |
|
437 | 438 |
// Insert search select |
438 | 439 |
if(SEARCH == 'private') { |
439 |
$template->set_var('PRIVATE_SEARCH', 'selected');
|
|
440 |
$template->set_var('PRIVATE_SEARCH', ' selected="selected"');
|
|
440 | 441 |
} elseif(SEARCH == 'registered') { |
441 |
$template->set_var('REGISTERED_SEARCH', 'selected');
|
|
442 |
$template->set_var('REGISTERED_SEARCH', ' selected="selected"');
|
|
442 | 443 |
} elseif(SEARCH == 'none') { |
443 |
$template->set_var('NONE_SEARCH', 'selected');
|
|
444 |
$template->set_var('NONE_SEARCH', ' selected="selected"');
|
|
444 | 445 |
} |
445 | 446 |
|
446 | 447 |
// Work-out if 777 permissions are set |
447 | 448 |
if(STRING_FILE_MODE == '0777' AND STRING_DIR_MODE == '0777') { |
448 |
$template->set_var('WORLD_WRITEABLE_SELECTED', ' checked'); |
|
449 |
$template->set_var('WORLD_WRITEABLE_SELECTED', ' checked="checked"');
|
|
449 | 450 |
} |
450 | 451 |
|
451 | 452 |
// Work-out which file mode boxes are checked |
452 | 453 |
if(extract_permission(STRING_FILE_MODE, 'u', 'r')) { |
453 |
$template->set_var('FILE_U_R_CHECKED', 'checked');
|
|
454 |
$template->set_var('FILE_U_R_CHECKED', ' checked="checked"');
|
|
454 | 455 |
} |
455 | 456 |
if(extract_permission(STRING_FILE_MODE, 'u', 'w')) { |
456 |
$template->set_var('FILE_U_W_CHECKED', 'checked');
|
|
457 |
$template->set_var('FILE_U_W_CHECKED', ' checked="checked"');
|
|
457 | 458 |
} |
458 | 459 |
if(extract_permission(STRING_FILE_MODE, 'u', 'e')) { |
459 |
$template->set_var('FILE_U_E_CHECKED', 'checked');
|
|
460 |
$template->set_var('FILE_U_E_CHECKED', ' checked="checked"');
|
|
460 | 461 |
} |
461 | 462 |
if(extract_permission(STRING_FILE_MODE, 'g', 'r')) { |
462 |
$template->set_var('FILE_G_R_CHECKED', 'checked');
|
|
463 |
$template->set_var('FILE_G_R_CHECKED', ' checked="checked"');
|
|
463 | 464 |
} |
464 | 465 |
if(extract_permission(STRING_FILE_MODE, 'g', 'w')) { |
465 |
$template->set_var('FILE_G_W_CHECKED', 'checked');
|
|
466 |
$template->set_var('FILE_G_W_CHECKED', ' checked="checked"');
|
|
466 | 467 |
} |
467 | 468 |
if(extract_permission(STRING_FILE_MODE, 'g', 'e')) { |
468 |
$template->set_var('FILE_G_E_CHECKED', 'checked');
|
|
469 |
$template->set_var('FILE_G_E_CHECKED', ' checked="checked"');
|
|
469 | 470 |
} |
470 | 471 |
if(extract_permission(STRING_FILE_MODE, 'o', 'r')) { |
471 |
$template->set_var('FILE_O_R_CHECKED', 'checked');
|
|
472 |
$template->set_var('FILE_O_R_CHECKED', ' checked="checked"');
|
|
472 | 473 |
} |
473 | 474 |
if(extract_permission(STRING_FILE_MODE, 'o', 'w')) { |
474 |
$template->set_var('FILE_O_W_CHECKED', 'checked');
|
|
475 |
$template->set_var('FILE_O_W_CHECKED', ' checked="checked"');
|
|
475 | 476 |
} |
476 | 477 |
if(extract_permission(STRING_FILE_MODE, 'o', 'e')) { |
477 |
$template->set_var('FILE_O_E_CHECKED', 'checked');
|
|
478 |
$template->set_var('FILE_O_E_CHECKED', ' checked="checked"');
|
|
478 | 479 |
} |
479 | 480 |
// Work-out which dir mode boxes are checked |
480 | 481 |
if(extract_permission(STRING_DIR_MODE, 'u', 'r')) { |
481 |
$template->set_var('DIR_U_R_CHECKED', 'checked');
|
|
482 |
$template->set_var('DIR_U_R_CHECKED', ' checked="checked"');
|
|
482 | 483 |
} |
483 | 484 |
if(extract_permission(STRING_DIR_MODE, 'u', 'w')) { |
484 |
$template->set_var('DIR_U_W_CHECKED', 'checked');
|
|
485 |
$template->set_var('DIR_U_W_CHECKED', ' checked="checked"');
|
|
485 | 486 |
} |
486 | 487 |
if(extract_permission(STRING_DIR_MODE, 'u', 'e')) { |
487 |
$template->set_var('DIR_U_E_CHECKED', 'checked');
|
|
488 |
$template->set_var('DIR_U_E_CHECKED', ' checked="checked"');
|
|
488 | 489 |
} |
489 | 490 |
if(extract_permission(STRING_DIR_MODE, 'g', 'r')) { |
490 |
$template->set_var('DIR_G_R_CHECKED', 'checked');
|
|
491 |
$template->set_var('DIR_G_R_CHECKED', ' checked="checked"');
|
|
491 | 492 |
} |
492 | 493 |
if(extract_permission(STRING_DIR_MODE, 'g', 'w')) { |
493 |
$template->set_var('DIR_G_W_CHECKED', 'checked');
|
|
494 |
$template->set_var('DIR_G_W_CHECKED', ' checked="checked"');
|
|
494 | 495 |
} |
495 | 496 |
if(extract_permission(STRING_DIR_MODE, 'g', 'e')) { |
496 |
$template->set_var('DIR_G_E_CHECKED', 'checked');
|
|
497 |
$template->set_var('DIR_G_E_CHECKED', ' checked="checked"');
|
|
497 | 498 |
} |
498 | 499 |
if(extract_permission(STRING_DIR_MODE, 'o', 'r')) { |
499 |
$template->set_var('DIR_O_R_CHECKED', 'checked');
|
|
500 |
$template->set_var('DIR_O_R_CHECKED', ' checked="checked"');
|
|
500 | 501 |
} |
501 | 502 |
if(extract_permission(STRING_DIR_MODE, 'o', 'w')) { |
502 |
$template->set_var('DIR_O_W_CHECKED', 'checked');
|
|
503 |
$template->set_var('DIR_O_W_CHECKED', ' checked="checked"');
|
|
503 | 504 |
} |
504 | 505 |
if(extract_permission(STRING_DIR_MODE, 'o', 'e')) { |
505 |
$template->set_var('DIR_O_E_CHECKED', 'checked');
|
|
506 |
$template->set_var('DIR_O_E_CHECKED', ' checked="checked"');
|
|
506 | 507 |
} |
507 | 508 |
|
508 | 509 |
// Insert Server Email value into template |
... | ... | |
516 | 517 |
$template->set_var('ID', $group['group_id']); |
517 | 518 |
$template->set_var('NAME', $group['name']); |
518 | 519 |
if(FRONTEND_SIGNUP == $group['group_id']) { |
519 |
$template->set_var('SELECTED', 'selected');
|
|
520 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
520 | 521 |
} else { |
521 | 522 |
$template->set_var('SELECTED', ''); |
522 | 523 |
} |
Also available in: Unified diff
Major fixes on backend to get XHTML valid output (Thanks to Luisehahne)