summaryrefslogtreecommitdiffstats
path: root/code/message.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'code/message.inc.php')
-rw-r--r--code/message.inc.php40
1 files changed, 18 insertions, 22 deletions
diff --git a/code/message.inc.php b/code/message.inc.php
index c351e70..8ac8a0e 100644
--- a/code/message.inc.php
+++ b/code/message.inc.php
@@ -1,25 +1,21 @@
<?PHP
- if(!defined('MESSAGE_INC')) {
- define('MESSAGE_INC', 1);
-
- 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>';
- }
+ 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>';
}
?>