includes/common.php
changeset 719 f82da241eaf8
parent 711 f70d764aab33
child 800 9cdfe82c56cd
equal deleted inserted replaced
718:12485b1d41fd 719:f82da241eaf8
   234       die('Session cookie cleared. <a href="'.htmlspecialchars($_SERVER['PHP_SELF']).'">Continue</a>');
   234       die('Session cookie cleared. <a href="'.htmlspecialchars($_SERVER['PHP_SELF']).'">Continue</a>');
   235       break;
   235       break;
   236   }
   236   }
   237 }
   237 }
   238 
   238 
       
   239 // Build the list of system tables (this is mostly done in constants.php, but that's before table_prefix is known)
       
   240 if ( defined('table_prefix') && !defined('ENANO_TABLELIST_PREFIXED') )
       
   241 {
       
   242   define('ENANO_TABLELIST_PREFIXED', 1);
       
   243   foreach ( $system_table_list as $i => $_ )
       
   244   {
       
   245     $system_table_list[$i] = table_prefix . $system_table_list[$i];
       
   246   }
       
   247 }
       
   248 
   239 // Select and fetch the site configuration
   249 // Select and fetch the site configuration
   240 $e = $db->sql_query('SELECT config_name, config_value FROM '.table_prefix.'config;');
   250 $e = $db->sql_query('SELECT config_name, config_value FROM '.table_prefix.'config;');
   241 if ( !$e )
   251 if ( !$e )
   242 {
   252 {
   243   $db->_die('Some critical configuration information could not be selected.');
   253   $db->_die('Some critical configuration information could not be selected.');