includes/common.php
changeset 1312 e6c6b42a5a51
parent 1263 eb717f5c283f
child 1315 d423fc0e9bc9
equal deleted inserted replaced
1311:a228f7e8fb15 1312:e6c6b42a5a51
   287 // If we made it here, DB is up to date.
   287 // If we made it here, DB is up to date.
   288 if ( getConfig('enano_version') !== $version && !preg_match('/^upg-/', getConfig('enano_version')) && !defined('IN_ENANO_UPGRADE') )
   288 if ( getConfig('enano_version') !== $version && !preg_match('/^upg-/', getConfig('enano_version')) && !defined('IN_ENANO_UPGRADE') )
   289 {
   289 {
   290 	setConfig('enano_version', $version);
   290 	setConfig('enano_version', $version);
   291 	setConfig('newly_upgraded', 1);
   291 	setConfig('newly_upgraded', 1);
       
   292 	$q = $db->sql_query('INSERT INTO '.table_prefix.'logs(log_type,action,time_id,date_string,author,author_uid,page_text,edit_summary) VALUES'
       
   293 			. '(\'security\', \'upgrade_enano\', ' . time() . ', \'[DEPRECATED]\', \'\', 0, \'' . $db->escape($version) . '\', \'' . $db->escape($_SERVER['REMOTE_ADDR']) . '\');');
   292 }
   294 }
   293 
   295 
   294 // Set our CDN path
   296 // Set our CDN path
   295 if ( !defined('cdnPath') )
   297 if ( !defined('cdnPath') )
   296 {
   298 {