summaryrefslogtreecommitdiffstats
path: root/code/message.inc.php
blob: 013c6975ee32533dec16f92798f32a05d5c5e71f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
    }
  }
?>