upgrade.php
changeset 345 4ccdfeee9a11
parent 326 ab66d6d1f1f4
equal deleted inserted replaced
344:be6c5fdd9203 345:4ccdfeee9a11
   797           }
   797           }
   798         }
   798         }
   799       }
   799       }
   800       
   800       
   801       // Log the upgrade
   801       // Log the upgrade
   802       $q = $db->sql_query('INSERT INTO '.table_prefix.'logs(log_type,action,time_id,date_string,author,page_text,edit_summary) VALUES(\'security\', \'upgrade_enano\', ' . time() . ', \'' . date('d M Y h:i a') . '\', \'' . mysql_real_escape_string($session->username) . '\', \'' . mysql_real_escape_string($this_version) . '\', \'' . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . '\');');
   802       $q = $db->sql_query('INSERT INTO '.table_prefix.'logs(log_type,action,time_id,date_string,author,page_text,edit_summary) VALUES(\'security\', \'upgrade_enano\', ' . time() . ', \'' . enano_date('d M Y h:i a') . '\', \'' . mysql_real_escape_string($session->username) . '\', \'' . mysql_real_escape_string($this_version) . '\', \'' . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . '\');');
   803       
   803       
   804       echo 'done!</p>';
   804       echo 'done!</p>';
   805       echo '<p>You will be redirected shortly. If you aren\'t redirected, <a href="index.php">click here</a>.</p>
   805       echo '<p>You will be redirected shortly. If you aren\'t redirected, <a href="index.php">click here</a>.</p>
   806             <script type="text/javascript">setTimeout("window.location=\'index.php\'", 2000)</script>';
   806             <script type="text/javascript">setTimeout("window.location=\'index.php\'", 2000)</script>';
   807     break;
   807     break;