blob: fb9e8fa44c1adf24df4627ae748498eeeb294680 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?PHP
Uses('util');
$GLOBALS['message']['Error'] = 'Error';
$GLOBALS['message']['PageNotFound'] = 'The page \'$page\' does not exist.';
$GLOBALS['message']['Forbidden'] = 'The page \'$page\' is protected.';
$GLOBALS['message']['InternalError'] = 'An internal error has occourred.';
$GLOBALS['message']['LoginError'] = 'Login failed. Username or password is wrong.';
if($config['language'] != 'en') @include('lang/' . $config['language'] . '.inc.php');
function Message($type, $data = array()) {
return Subst($GLOBALS['message'][$type], $data);
}
function ErrorMessage($type, $data = array()) {
return '<span class="error">' . Subst($GLOBALS['message'][$type], $data) . '</span>';
}
?>
|