blob: f64905f5e0a2cfb5fd9630383caae3ec687bd6fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?PHP
require_once('config/config.inc.php');
require_once('code/util.inc.php');
$message['Error'] = 'Error';
$message['PageNotFound'] = 'The page \'$page\' does not exist.';
$message['Forbidden'] = 'The page \'$page\' is protected.';
$message['InternalError'] = 'An internal error has occourred.';
$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>';
}
?>
|