diff options
author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-30 15:12:44 +0000 |
---|---|---|
committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-30 15:12:44 +0000 |
commit | e8ec57fd3361aae7229964e6b3ae96009346d3f1 (patch) | |
tree | 1ed425275d992898156cc7efc5c4290680cea8df /frontends/php/include/db.inc.php | |
parent | b1128efe5e257876eb45d89e395b356033cab911 (diff) | |
download | zabbix-e8ec57fd3361aae7229964e6b3ae96009346d3f1.tar.gz zabbix-e8ec57fd3361aae7229964e6b3ae96009346d3f1.tar.xz zabbix-e8ec57fd3361aae7229964e6b3ae96009346d3f1.zip |
Misc changes.
git-svn-id: svn://svn.zabbix.com/trunk@3413 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/db.inc.php')
-rw-r--r-- | frontends/php/include/db.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php index 15b5e27e..18097f31 100644 --- a/frontends/php/include/db.inc.php +++ b/frontends/php/include/db.inc.php @@ -26,7 +26,7 @@ // $DB_TYPE ="POSTGRESQL"; $DB_TYPE ="MYSQL"; $DB_SERVER ="localhost"; - $DB_DATABASE ="osmiy1"; + $DB_DATABASE ="zabbix"; $DB_USER ="root"; $DB_PASSWORD =""; // END OF DATABASE CONFIGURATION @@ -296,7 +296,7 @@ if($DB_TYPE == "ORACLE") { function id2nodeid($id_var) { - return (int)($id_var / 100000000000000); + return (int)bcdiv("$id_var","100000000000000"); } function get_dbid($table,$field) @@ -307,11 +307,11 @@ if($DB_TYPE == "ORACLE") { $row=DBfetch($result); if($row && !is_null($row["id"])) { - return ++$row["id"]; + return bcadd($row["id"],1); } else { - return $ZBX_CURNODEID*100000000000000+1; + return bcadd(bcmul($ZBX_CURNODEID,"100000000000000"),1); } } ?> |