|
Revision 1327, 1.9 kB
(checked in by rats, 4 months ago)
|
* Fixed: --scan-knownbad-files and --check-deleted are no longer supported by rkhunter
* Fixed #1471: chkrootkit should be in lenny / hardy
* Updated Chinese (simplified)
* Updated German
* Fixed #1475: typo on installation (ispcp-setup)
* Fixed: default user for rkhunter.log
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
function system_message($msg, $backButtonDestination = "") { |
|---|
| 22 |
if (isset($_SESSION['user_theme'])) { |
|---|
| 23 |
$theme_color = $_SESSION['user_theme']; |
|---|
| 24 |
} else { |
|---|
| 25 |
$theme_color = Config::get('USER_INITIAL_THEME'); |
|---|
| 26 |
} |
|---|
| 27 |
|
|---|
| 28 |
if (empty($backButtonDestination)) { |
|---|
| 29 |
$backButtonDestination = "javascript:history.go(-1)"; |
|---|
| 30 |
} |
|---|
| 31 |
|
|---|
| 32 |
$tpl = new pTemplate(); |
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
$template = Config::get('LOGIN_TEMPLATE_PATH') . '/system-message.tpl'; |
|---|
| 36 |
|
|---|
| 37 |
if (!is_file($template)) { |
|---|
| 38 |
|
|---|
| 39 |
$template = '../' . Config::get('LOGIN_TEMPLATE_PATH') . '/system-message.tpl'; |
|---|
| 40 |
} |
|---|
| 41 |
|
|---|
| 42 |
if (!is_file($template)) { |
|---|
| 43 |
|
|---|
| 44 |
die($msg); |
|---|
| 45 |
} |
|---|
| 46 |
|
|---|
| 47 |
$tpl->define('page', $template); |
|---|
| 48 |
$tpl->assign(array( |
|---|
| 49 |
'TR_SYSTEM_MESSAGE_PAGE_TITLE' => tr('ispCP Error'), |
|---|
| 50 |
'THEME_COLOR_PATH' => "/themes/$theme_color", |
|---|
| 51 |
'THEME_CHARSET' => tr('encoding'), |
|---|
| 52 |
'TR_BACK' => tr('Back'), |
|---|
| 53 |
'TR_ERROR_MESSAGE' => tr('Error Message'), |
|---|
| 54 |
'MESSAGE' => $msg, |
|---|
| 55 |
'BACKBUTTONDESTINATION' => $backButtonDestination |
|---|
| 56 |
)); |
|---|
| 57 |
|
|---|
| 58 |
$tpl->parse('PAGE', 'page'); |
|---|
| 59 |
$tpl->prnt(); |
|---|
| 60 |
|
|---|
| 61 |
die(); |
|---|
| 62 |
} |
|---|
| 63 |
?> |
|---|