mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
move poller.php (inc os/system) to db* (and others, but poller is biggest change)
git-svn-id: http://www.observium.org/svn/observer/trunk@2298 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -22,8 +22,9 @@ Usage
|
||||
* Used by the other _query functions.
|
||||
* */
|
||||
function dbQuery($sql, $parameters = array()) {
|
||||
global $fullSql;
|
||||
global $fullSql, $debug;
|
||||
$fullSql = dbMakeQuery($sql, $parameters);
|
||||
if($debug) { echo(" SQL[".$fullSql."] "); }
|
||||
/*
|
||||
if($this->logFile)
|
||||
$time_start = microtime(true);
|
||||
@@ -111,6 +112,7 @@ function dbUpdate($data, $table, $where = null, $parameters = array()) {
|
||||
if(dbQuery($sql, $data)) {
|
||||
return mysql_affected_rows();
|
||||
} else {
|
||||
#echo("$fullSql");
|
||||
trigger_error('QDB - Update failed.', E_WARNING);
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user