Project

General

Profile

« Previous | Next » 

Revision 1260

Added by Dietmar almost 15 years ago

fix more small css-errors in WB Backend (thanks to Ruebenwurzel)

View differences:

index.php
288 288

  
289 289
// Insert WYSIWYG modules
290 290
$template->set_block('main_block', 'editor_list_block', 'editor_list');
291
$file='none';  
291
$file='none';
292 292
$module_name=$TEXT['NONE'];  
293 293
$template->set_var('FILE', $file);  
294 294
$template->set_var('NAME', $module_name);  
......
340 340
// Insert default error reporting values
341 341
require(ADMIN_PATH.'/interface/er_levels.php');
342 342
$template->set_block('main_block', 'error_reporting_list_block', 'error_reporting_list');
343
foreach($ER_LEVELS AS $value => $title) {
343
foreach($ER_LEVELS AS $value => $title)
344
{
344 345
	$template->set_var('VALUE', $value);
345 346
	$template->set_var('NAME', $title);
346 347
    $selected = (ER_LEVEL == $value) ? ' selected="selected"' : '';
......
350 351
}
351 352

  
352 353
// Insert permissions values
353
if($admin->get_permission('settings_advanced') != true) {
354
if($admin->get_permission('settings_advanced') != true)
355
{
354 356
	$template->set_var('DISPLAY_ADVANCED_BUTTON', 'hide');
355 357
}
356 358

  
......
369 371
}
370 372

  
371 373
// Work-out if multiple menus feature is enabled
372
if(defined('MULTIPLE_MENUS') AND MULTIPLE_MENUS == true) {
374
if(defined('MULTIPLE_MENUS') AND MULTIPLE_MENUS == true)
375
{
373 376
	$template->set_var('MULTIPLE_MENUS_ENABLED', ' checked="checked"');
374 377
} else {
375 378
	$template->set_var('MULTIPLE_MENUS_DISABLED', ' checked="checked"');
376 379
}
377 380

  
378 381
// Work-out if page languages feature is enabled
379
if(defined('PAGE_LANGUAGES') AND PAGE_LANGUAGES == true) {
382
if(defined('PAGE_LANGUAGES') AND PAGE_LANGUAGES == true)
383
{
380 384
        $template->set_var('PAGE_LANGUAGES_ENABLED', ' checked="checked"');
381 385
} else {
382 386
        $template->set_var('PAGE_LANGUAGES_DISABLED', ' checked="checked"');
383 387
}
384 388

  
385 389
// Work-out if smart login feature is enabled
386
if(defined('SMART_LOGIN') AND SMART_LOGIN == true) {
390
if(defined('SMART_LOGIN') AND SMART_LOGIN == true)
391
{
387 392
	$template->set_var('SMART_LOGIN_ENABLED', ' checked="checked"');
388 393
} else {
389 394
	$template->set_var('SMART_LOGIN_DISABLED', ' checked="checked"');
390 395
}
391 396

  
392
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */
397
/* Make's sure GD library is installed */
398
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg'))
399
{
393 400
	$template->set_var('GD_EXTENSION_ENABLED', '');
394 401
} else {
395
	$template->set_var('GD_EXTENSION_ENABLED', 'none');
402
	$template->set_var('GD_EXTENSION_ENABLED', ' style="display: none;"');
396 403
}
397 404

  
398 405
// Work-out if section blocks feature is enabled
399
if(defined('SECTION_BLOCKS') AND SECTION_BLOCKS == true) {
406
if(defined('SECTION_BLOCKS') AND SECTION_BLOCKS == true)
407
{
400 408
	$template->set_var('SECTION_BLOCKS_ENABLED', ' checked="checked"');
401 409
} else {
402 410
	$template->set_var('SECTION_BLOCKS_DISABLED', ' checked="checked"');
403 411
}
404 412

  
405 413
// Work-out if homepage redirection feature is enabled
406
if(defined('HOMEPAGE_REDIRECTION') AND HOMEPAGE_REDIRECTION == true) {
414
if(defined('HOMEPAGE_REDIRECTION') AND HOMEPAGE_REDIRECTION == true)
415
{
407 416
	$template->set_var('HOMEPAGE_REDIRECTION_ENABLED', ' checked="checked"');
408 417
} else {
409 418
	$template->set_var('HOMEPAGE_REDIRECTION_DISABLED', ' checked="checked"');
410 419
}
411 420

  
412 421
// Work-out which server os should be checked
413
if(OPERATING_SYSTEM == 'linux') {
422
if(OPERATING_SYSTEM == 'linux')
423
{
414 424
	$template->set_var('LINUX_SELECTED', ' checked="checked"');
415 425
} elseif(OPERATING_SYSTEM == 'windows') {
416 426
	$template->set_var('WINDOWS_SELECTED', ' checked="checked"');
417 427
}
418 428

  
419 429
// Work-out if manage sections feature is enabled
420
if(MANAGE_SECTIONS) {
430
if(MANAGE_SECTIONS)
431
{
421 432
	$template->set_var('MANAGE_SECTIONS_ENABLED', ' checked="checked"');
422 433
} else {
423 434
	$template->set_var('MANAGE_SECTIONS_DISABLED', ' checked="checked"');
424 435
}
425 436

  
426 437
// Work-out which wbmailer routine should be checked
427
if(WBMAILER_ROUTINE == 'phpmail') {
438
if(WBMAILER_ROUTINE == 'phpmail')
439
{
428 440
	$template->set_var('PHPMAIL_SELECTED', ' checked="checked"');
429
	$template->set_var('SMTP_VISIBILITY', 'none');
430
	$template->set_var('SMTP_VISIBILITY_AUTH', 'none');
431
} elseif(WBMAILER_ROUTINE == 'smtp') {
441
	$template->set_var('SMTP_VISIBILITY', ' style="display: none;"');
442
	$template->set_var('SMTP_VISIBILITY_AUTH', ' style="display: none;"');
443
} elseif(WBMAILER_ROUTINE == 'smtp')
444
{
432 445
	$template->set_var('SMTPMAIL_SELECTED', ' checked="checked"');
433 446
	$template->set_var('SMTP_VISIBILITY', '');
434 447
}
435 448

  
436 449
// Work-out if SMTP authentification should be checked
437
if(WBMAILER_SMTP_AUTH) {
450
if(WBMAILER_SMTP_AUTH)
451
{
438 452
	$template->set_var('SMTP_AUTH_SELECTED', ' checked="checked"');
439
	if(WBMAILER_ROUTINE == 'smtp') {
453
	if(WBMAILER_ROUTINE == 'smtp')
454
    {
440 455
		$template->set_var('SMTP_VISIBILITY_AUTH', '');
441 456
	} else {
442
		$template->set_var('SMTP_VISIBILITY_AUTH', 'none');
457
		$template->set_var('SMTP_VISIBILITY_AUTH', ' style="display: none;"');
443 458
	}
444 459
} else {
445
	$template->set_var('SMTP_VISIBILITY_AUTH', 'none');
460
	$template->set_var('SMTP_VISIBILITY_AUTH', ' style="display: none;"');
446 461
}
447 462

  
448 463
// Work-out if intro feature is enabled
449
if(INTRO_PAGE) {
464
if(INTRO_PAGE)
465
{
450 466
	$template->set_var('INTRO_PAGE_ENABLED', ' checked="checked"');
451 467
} else {
452 468
	$template->set_var('INTRO_PAGE_DISABLED', ' checked="checked"');
453 469
}
454 470

  
455 471
// Work-out if frontend login feature is enabled
456
if(FRONTEND_LOGIN) {
472
if(FRONTEND_LOGIN)
473
{
457 474
	$template->set_var('PRIVATE_ENABLED', ' checked="checked"');
458 475
} else {
459 476
	$template->set_var('PRIVATE_DISABLED', ' checked="checked"');
460 477
}
461 478

  
462 479
// Work-out if page trash feature is disabled, in-line, or separate
463
if(PAGE_TRASH == 'disabled') {
480
if(PAGE_TRASH == 'disabled')
481
{
464 482
	$template->set_var('PAGE_TRASH_DISABLED', ' checked="checked"');
465
	$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', ' display: none;');
466
} elseif(PAGE_TRASH == 'inline') {
483
	$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', 'display: none;');
484
} elseif(PAGE_TRASH == 'inline')
485
{
467 486
	$template->set_var('PAGE_TRASH_INLINE', ' checked="checked"');
468
	$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', ' display: none;');
469
} elseif(PAGE_TRASH == 'separate') {
487
	$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', 'display: none;');
488
} elseif(PAGE_TRASH == 'separate')
489
{
470 490
	$template->set_var('PAGE_TRASH_SEPARATE', ' checked="checked"');
471
	$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', ' display: inline;');
491
	$template->set_var('DISPLAY_PAGE_TRASH_SEPARATE', 'display: inline;');
472 492
}
473 493

  
474 494
// Work-out if media home folde feature is enabled
475
if(HOME_FOLDERS) {
495
if(HOME_FOLDERS)
496
{
476 497
	$template->set_var('HOME_FOLDERS_ENABLED', ' checked="checked"');
477 498
} else {
478 499
	$template->set_var('HOME_FOLDERS_DISABLED', ' checked="checked"');
479 500
}
480 501

  
481 502
// Insert search select
482
if(SEARCH == 'private') {
503
if(SEARCH == 'private')
504
{
483 505
	$template->set_var('PRIVATE_SEARCH', ' selected="selected"');
484 506
} elseif(SEARCH == 'registered') {
485 507
	$template->set_var('REGISTERED_SEARCH', ' selected="selected"');
......
488 510
}
489 511

  
490 512
// Work-out if 777 permissions are set
491
if(STRING_FILE_MODE == '0777' AND STRING_DIR_MODE == '0777') {
513
if(STRING_FILE_MODE == '0777' AND STRING_DIR_MODE == '0777')
514
{
492 515
	$template->set_var('WORLD_WRITEABLE_SELECTED', ' checked="checked"');
493 516
}
494 517

  
495 518
// Work-out which file mode boxes are checked
496
if(extract_permission(STRING_FILE_MODE, 'u', 'r')) {
519
if(extract_permission(STRING_FILE_MODE, 'u', 'r'))
520
{
497 521
	$template->set_var('FILE_U_R_CHECKED', ' checked="checked"');
498 522
}
499
if(extract_permission(STRING_FILE_MODE, 'u', 'w')) {
523
if(extract_permission(STRING_FILE_MODE, 'u', 'w'))
524
{
500 525
	$template->set_var('FILE_U_W_CHECKED', ' checked="checked"');
501 526
}
502
if(extract_permission(STRING_FILE_MODE, 'u', 'e')) {
527
if(extract_permission(STRING_FILE_MODE, 'u', 'e'))
528
{
503 529
	$template->set_var('FILE_U_E_CHECKED', ' checked="checked"');
504 530
}
505
if(extract_permission(STRING_FILE_MODE, 'g', 'r')) {
531
if(extract_permission(STRING_FILE_MODE, 'g', 'r'))
532
{
506 533
	$template->set_var('FILE_G_R_CHECKED', ' checked="checked"');
507 534
}
508
if(extract_permission(STRING_FILE_MODE, 'g', 'w')) {
535
if(extract_permission(STRING_FILE_MODE, 'g', 'w'))
536
{
509 537
	$template->set_var('FILE_G_W_CHECKED', ' checked="checked"');
510 538
}
511
if(extract_permission(STRING_FILE_MODE, 'g', 'e')) {
539
if(extract_permission(STRING_FILE_MODE, 'g', 'e'))
540
{
512 541
	$template->set_var('FILE_G_E_CHECKED', ' checked="checked"');
513 542
}
514
if(extract_permission(STRING_FILE_MODE, 'o', 'r')) {
543
if(extract_permission(STRING_FILE_MODE, 'o', 'r'))
544
{
515 545
	$template->set_var('FILE_O_R_CHECKED', ' checked="checked"');
516 546
}
517
if(extract_permission(STRING_FILE_MODE, 'o', 'w')) {
547
if(extract_permission(STRING_FILE_MODE, 'o', 'w'))
548
{
518 549
	$template->set_var('FILE_O_W_CHECKED', ' checked="checked"');
519 550
}
520
if(extract_permission(STRING_FILE_MODE, 'o', 'e')) {
551
if(extract_permission(STRING_FILE_MODE, 'o', 'e'))
552
{
521 553
	$template->set_var('FILE_O_E_CHECKED', ' checked="checked"');
522 554
}
523 555
// Work-out which dir mode boxes are checked
524
if(extract_permission(STRING_DIR_MODE, 'u', 'r')) {
556
if(extract_permission(STRING_DIR_MODE, 'u', 'r'))
557
{
525 558
	$template->set_var('DIR_U_R_CHECKED', ' checked="checked"');
526 559
}
527
if(extract_permission(STRING_DIR_MODE, 'u', 'w')) {
560
if(extract_permission(STRING_DIR_MODE, 'u', 'w'))
561
{
528 562
	$template->set_var('DIR_U_W_CHECKED', ' checked="checked"');
529 563
}
530
if(extract_permission(STRING_DIR_MODE, 'u', 'e')) {
564
if(extract_permission(STRING_DIR_MODE, 'u', 'e'))
565
{
531 566
	$template->set_var('DIR_U_E_CHECKED', ' checked="checked"');
532 567
}
533
if(extract_permission(STRING_DIR_MODE, 'g', 'r')) {
568
if(extract_permission(STRING_DIR_MODE, 'g', 'r'))
569
{
534 570
	$template->set_var('DIR_G_R_CHECKED', ' checked="checked"');
535 571
}
536
if(extract_permission(STRING_DIR_MODE, 'g', 'w')) {
572
if(extract_permission(STRING_DIR_MODE, 'g', 'w'))
573
{
537 574
	$template->set_var('DIR_G_W_CHECKED', ' checked="checked"');
538 575
}
539
if(extract_permission(STRING_DIR_MODE, 'g', 'e')) {
576
if(extract_permission(STRING_DIR_MODE, 'g', 'e'))
577
{
540 578
	$template->set_var('DIR_G_E_CHECKED', ' checked="checked"');
541 579
}
542
if(extract_permission(STRING_DIR_MODE, 'o', 'r')) {
580
if(extract_permission(STRING_DIR_MODE, 'o', 'r'))
581
{
543 582
	$template->set_var('DIR_O_R_CHECKED', ' checked="checked"');
544 583
}
545
if(extract_permission(STRING_DIR_MODE, 'o', 'w')) {
584
if(extract_permission(STRING_DIR_MODE, 'o', 'w'))
585
{
546 586
	$template->set_var('DIR_O_W_CHECKED', ' checked="checked"');
547 587
}
548
if(extract_permission(STRING_DIR_MODE, 'o', 'e')) {
588
if(extract_permission(STRING_DIR_MODE, 'o', 'e'))
589
{
549 590
	$template->set_var('DIR_O_E_CHECKED', ' checked="checked"');
550 591
}
551 592

  
......
555 596
// Insert groups into signup list
556 597
$template->set_block('main_block', 'group_list_block', 'group_list');
557 598
$results = $database->query("SELECT group_id, name FROM ".TABLE_PREFIX."groups WHERE group_id != '1'");
558
if($results->numRows() > 0) {
559
	while($group = $results->fetchRow()) {
599
if($results->numRows() > 0)
600
{
601
	while($group = $results->fetchRow())
602
    {
560 603
		$template->set_var('ID', $group['group_id']);
561 604
		$template->set_var('NAME', $group['name']);
562
		if(FRONTEND_SIGNUP == $group['group_id']) {
605
		if(FRONTEND_SIGNUP == $group['group_id'])
606
        {
563 607
			$template->set_var('SELECTED', ' selected="selected"');
564 608
		} else {
565 609
			$template->set_var('SELECTED', '');
......
691 735

  
692 736
$admin->print_footer();
693 737

  
694
?>

738
?>

Also available in: Unified diff