Revision 2001
Added by Dietmar about 11 years ago
class.wb.php | ||
---|---|---|
549 | 549 |
public function ShowMaintainScreen($type = 'locked') |
550 | 550 |
{ |
551 | 551 |
global $database, $MESSAGE; |
552 |
$CHECK_BACK = $MESSAGE['GENERIC_PLEASE_CHECK_BACK_SOON']; |
|
553 |
$BE_PATIENT = ''; |
|
554 | 552 |
$LANGUAGE = strtolower((isset($_SESSION['LANGUAGE']) ? $_SESSION['LANGUAGE'] : LANGUAGE )); |
555 |
|
|
553 |
$PAGE_TITLE = $MESSAGE['GENERIC_WEBSITE_UNDER_CONSTRUCTION']; |
|
554 |
$PAGE_ICON = 'negative'; |
|
556 | 555 |
$show_screen = false; |
557 | 556 |
if($type == 'locked') |
558 | 557 |
{ |
... | ... | |
581 | 580 |
// delete the session itself |
582 | 581 |
session_destroy(); |
583 | 582 |
$PAGE_TITLE = $MESSAGE['GENERIC_WEBSITE_LOCKED']; |
584 |
$BE_PATIENT = $MESSAGE['GENERIC_BE_PATIENT']; |
|
585 | 583 |
$PAGE_ICON = 'system'; |
586 | 584 |
$show_screen = true; |
587 | 585 |
} |
588 | 586 |
} else { |
589 | 587 |
header($_SERVER['SERVER_PROTOCOL'].' 503 Service Unavailable'); |
590 |
$PAGE_TITLE = $MESSAGE['GENERIC_WEBSITE_UNDER_CONSTRUCTION']; |
|
591 |
$PAGE_ICON = 'negative'; |
|
592 | 588 |
$show_screen = true; |
593 | 589 |
} |
594 | 590 |
if($show_screen) |
... | ... | |
606 | 602 |
} else { |
607 | 603 |
$charset='utf-8'; |
608 | 604 |
} |
609 |
$tpl->set_var( 'PAGE_TITLE', $MESSAGE['GENERIC_WEBSITE_UNDER_CONSTRUCTION'] );
|
|
605 |
$tpl->set_var( 'PAGE_TITLE', $PAGE_TITLE );
|
|
610 | 606 |
$tpl->set_var( 'CHECK_BACK', $MESSAGE['GENERIC_PLEASE_CHECK_BACK_SOON'] ); |
611 | 607 |
$tpl->set_var( 'CHARSET', $charset ); |
612 | 608 |
$tpl->set_var( 'WB_URL', WB_URL ); |
613 |
$tpl->set_var( 'BE_PATIENT', $BE_PATIENT );
|
|
609 |
$tpl->set_var( 'BE_PATIENT', $MESSAGE['GENERIC_BE_PATIENT'] );
|
|
614 | 610 |
$tpl->set_var( 'THEME_URL', THEME_URL ); |
615 | 611 |
$tpl->set_var( 'PAGE_ICON', $PAGE_ICON); |
616 |
$tpl->set_var( 'LANGUAGE', strtolower(LANGUAGE));
|
|
612 |
$tpl->set_var( 'LANGUAGE', $LANGUAGE);
|
|
617 | 613 |
$tpl->parse( 'main', 'main_block', false ); |
618 | 614 |
$tpl->pparse( 'output', 'page' ); |
619 | 615 |
exit(); |
Also available in: Unified diff
! /framework/class.wb.php::ShowMaintainScreen add locked maintenance message