includes/paths.php
changeset 93 95c4d91bd954
parent 80 cb7dde69c301
child 109 93ef7df77847
equal deleted inserted replaced
92:aa8ffe41d1c4 93:95c4d91bd954
   382   
   382   
   383   function main_page()
   383   function main_page()
   384   {
   384   {
   385     if( is_string(getConfig('main_page')) )
   385     if( is_string(getConfig('main_page')) )
   386     {
   386     {
   387       header('Location: '.makeUrl(getConfig('main_page')));
   387       $main_page = makeUrl(getConfig('main_page'));
   388       die('If you aren\'t redirected, <a href="' . makeUrl(getConfig('main_page')) . '">click here</a>.');
       
   389     }
   388     }
   390     else
   389     else
   391     {
   390     {
   392       header('Location: '.makeUrl($this->pages[0]['urlname']));
   391       $main_page = makeUrl($this->pages[0]['urlname']);
   393       die('If you aren\'t redirected, <a href="' . makeUrl($this->pages[0]['urlname']) . '">click here</a>.');
   392     }
   394     }
   393     redirect($main_page, 'Redirecting...', 'Invalid request, redirecting to main page', 0);
   395     exit;
   394     exit;
   396   }
   395   }
   397   
   396   
   398   function sysmsg($n)
   397   function sysmsg($n)
   399   {
   398   {