includes/common.php
changeset 322 5f1cd51bf1be
parent 320 112debff64bd
child 326 ab66d6d1f1f4
child 440 105457df35e5
--- a/includes/common.php	Sat Dec 15 18:10:14 2007 -0500
+++ b/includes/common.php	Tue Dec 18 23:44:55 2007 -0500
@@ -152,7 +152,7 @@
 // even be installed. If this connection attempt fails and it's because of a missing or corrupt config file, the
 // user will be redirected (intelligently) to install.php.
 
-require(ENANO_ROOT . '/config.php');
+@include(ENANO_ROOT . '/config.php');
 unset($dbuser, $dbpasswd);
 if ( !isset($dbdriver) )
   $dbdriver = 'mysql';
@@ -328,7 +328,7 @@
   // If the site is disabled, bail out, unless we're trying to log in or administer the site
   if(getConfig('site_disabled') == '1' && $session->user_level < USER_LEVEL_ADMIN)
   {
-    if ( $paths->namespace == 'Admin' || ( $paths->namespace == 'Special' && ( $paths->cpage['urlname_nons'] == 'CSS' || $paths->cpage['urlname_nons'] == 'Administration' || $paths->cpage['urlname_nons'] == 'Login' ) ) )
+    if ( $paths->namespace == 'Admin' || ( $paths->namespace == 'Special' && ( $paths->page_id == 'CSS' || $paths->page_id == 'Administration' || $paths->page_id == 'Login' ) ) )
     {
       // do nothing; allow execution to continue
     }