equal
deleted
inserted
replaced
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; |