summaryrefslogtreecommitdiffstats
path: root/code/message.inc.php
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-01-06 14:10:03 +0100
committerneoraider <devnull@localhost>2006-01-06 14:10:03 +0100
commita89ac4fda6c7cab6cace4078491c29f215213ab2 (patch)
tree9f53ea434c2ffe1cb625aec798ff13f873731e7d /code/message.inc.php
downloadneon-a89ac4fda6c7cab6cace4078491c29f215213ab2.tar
neon-a89ac4fda6c7cab6cace4078491c29f215213ab2.zip
Diffstat (limited to 'code/message.inc.php')
-rw-r--r--code/message.inc.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/code/message.inc.php b/code/message.inc.php
new file mode 100644
index 0000000..013c697
--- /dev/null
+++ b/code/message.inc.php
@@ -0,0 +1,19 @@
+<?PHP
+ if(!defined('MESSAGE_INC')) {
+ define('MESSAGE_INC', 1);
+
+ include('config/config.inc.php');
+
+ include('code/subst.inc.php');
+
+ $message['PageNotFound'] = 'The page $page does not exist.';
+ $message['Forbidden'] = 'The page $page is protected.';
+ $message['InternalError'] = 'An internal error has occourred.';
+
+ if($config['language'] != 'en') @include('lang/' . $config['language'] . '.inc.php');
+
+ function Message($type, $subst = array()) {
+ return Subst($GLOBALS['message'][$type], $subst);
+ }
+ }
+?>