Browse Source

Disabled logging of SQL statements

pull/316/head
Michael Vogel 10 years ago
parent
commit
8202355df9
  1. 8
      include/dba.php

8
include/dba.php

@ -77,16 +77,16 @@ class dba {
$this->error = '';
if (get_config("system", "db_log") != "")
@file_put_contents(get_config("system", "db_log"), datetime_convert().':'.session_id(). ' Start '.$sql."\n", FILE_APPEND);
//if (get_config("system", "db_log") != "")
// @file_put_contents(get_config("system", "db_log"), datetime_convert().':'.session_id(). ' Start '.$sql."\n", FILE_APPEND);
if($this->mysqli)
$result = @$this->db->query($sql);
else
$result = @mysql_query($sql,$this->db);
if (get_config("system", "db_log") != "")
@file_put_contents(get_config("system", "db_log"), datetime_convert().':'.session_id(). ' Stop '."\n", FILE_APPEND);
//if (get_config("system", "db_log") != "")
// @file_put_contents(get_config("system", "db_log"), datetime_convert().':'.session_id(). ' Stop '."\n", FILE_APPEND);
if($this->mysqli) {
if($this->db->errno)

Loading…
Cancel
Save