turn off sql logging

git-svn-id: file:///home/shish/svn/shimmie2/trunk@214 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-07-04 01:21:32 +00:00
parent 14a8c16d04
commit fe5264c3b1

View File

@ -205,9 +205,9 @@ function get_thumbnail_size($orig_width, $orig_height) {
# $db is the connection object # $db is the connection object
function CountExecs($db, $sql, $inputarray) { function CountExecs($db, $sql, $inputarray) {
global $_execs; global $_execs;
$fp = fopen("sql.log", "a"); # $fp = fopen("sql.log", "a");
fwrite($fp, preg_replace('/\s+/msi', ' ', $sql)."\n"); # fwrite($fp, preg_replace('/\s+/msi', ' ', $sql)."\n");
fclose($fp); # fclose($fp);
if (!is_array($inputarray)) $_execs++; if (!is_array($inputarray)) $_execs++;
# handle 2-dimensional input arrays # handle 2-dimensional input arrays
else if (is_array(reset($inputarray))) $_execs += sizeof($inputarray); else if (is_array(reset($inputarray))) $_execs += sizeof($inputarray);