includes/dbal.php
changeset 619 80fa6fa6bf3a
parent 616 e311f5e6f904
child 628 ab6f55abb17e
equal deleted inserted replaced
618:587b393f1e5e 619:80fa6fa6bf3a
   269         $this->report_query($q);
   269         $this->report_query($q);
   270         grinding_halt('SQL Injection attempt', '<p>Enano has caught and prevented an SQL injection attempt. Your IP address has been recorded and the administrator has been notified.</p><p>Query was:</p><pre>'.htmlspecialchars($q).'</pre>');
   270         grinding_halt('SQL Injection attempt', '<p>Enano has caught and prevented an SQL injection attempt. Your IP address has been recorded and the administrator has been notified.</p><p>Query was:</p><pre>'.htmlspecialchars($q).'</pre>');
   271       }
   271       }
   272     }
   272     }
   273     
   273     
   274     $r = pg_query($q, $this->_conn);
   274     $r = mysql_query($q, $this->_conn);
   275     
   275     
   276     if ( $log_query )
   276     if ( $log_query )
   277       $this->query_times[$q] = microtime_float() - $time_start;
   277       $this->query_times[$q] = microtime_float() - $time_start;
   278     
   278     
   279     $this->latest_result = $r;
   279     $this->latest_result = $r;