install.php
changeset 345 4ccdfeee9a11
parent 334 c72b545f1304
equal deleted inserted replaced
344:be6c5fdd9203 345:4ccdfeee9a11
   752 
   752 
   753 function stg_init_logs()
   753 function stg_init_logs()
   754 {
   754 {
   755   global $db, $session, $paths, $template, $plugins; // Common objects
   755   global $db, $session, $paths, $template, $plugins; // Common objects
   756   
   756   
   757   $q = $db->sql_query('INSERT INTO ' . table_prefix . 'logs(log_type,action,time_id,date_string,author,page_text,edit_summary) VALUES(\'security\', \'install_enano\', ' . time() . ', \'' . date('d M Y h:i a') . '\', \'' . mysql_real_escape_string($_POST['admin_user']) . '\', \'' . mysql_real_escape_string(ENANO_VERSION) . '\', \'' . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . '\');');
   757   $q = $db->sql_query('INSERT INTO ' . table_prefix . 'logs(log_type,action,time_id,date_string,author,page_text,edit_summary) VALUES(\'security\', \'install_enano\', ' . time() . ', \'' . enano_date('d M Y h:i a') . '\', \'' . mysql_real_escape_string($_POST['admin_user']) . '\', \'' . mysql_real_escape_string(ENANO_VERSION) . '\', \'' . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . '\');');
   758   if ( !$q )
   758   if ( !$q )
   759   {
   759   {
   760     echo '<p><tt>MySQL return: ' . mysql_error() . '</tt></p>';
   760     echo '<p><tt>MySQL return: ' . mysql_error() . '</tt></p>';
   761     return false;
   761     return false;
   762   }
   762   }