Reinhard Scheck
810e86cc15
backport of latest changes to array_to_sql_or
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@5771 860744bd-22fc-0310-8c96-e9fe5004b5ca
2010-04-19 19:47:18 +00:00
Reinhard Scheck
1171bd413c
enhance database logging on save
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@5769 860744bd-22fc-0310-8c96-e9fe5004b5ca
2010-04-19 17:40:24 +00:00
Reinhard Scheck
d07f9c0d42
some more parenthesis required
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@5355 860744bd-22fc-0310-8c96-e9fe5004b5ca
2009-11-03 19:29:32 +00:00
Larry Adams
408230fbe5
QA: Correct my bloody mistake.
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@5342 860744bd-22fc-0310-8c96-e9fe5004b5ca
2009-10-17 18:03:32 +00:00
Larry Adams
3975536fe1
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@5305 860744bd-22fc-0310-8c96-e9fe5004b5ca
2009-09-25 01:11:28 +00:00
Tony Roman
26d1957d62
Update copyright to 2009
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4931 860744bd-22fc-0310-8c96-e9fe5004b5ca
2009-02-11 22:53:50 +00:00
Larry Adams
6bc5250219
-bug: Correct missing db_conn argument passing issue.
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4911 860744bd-22fc-0310-8c96-e9fe5004b5ca
2009-02-08 09:24:03 +00:00
Larry Adams
8e9f63ef38
-feature: Add developer debug level to reduce SQL messages in DEBUG
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4810 860744bd-22fc-0310-8c96-e9fe5004b5ca
2008-11-12 17:45:20 +00:00
Larry Adams
c5a2d1b950
-feature: Exit is either a database or table does not exist
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4808 860744bd-22fc-0310-8c96-e9fe5004b5ca
2008-11-12 12:40:43 +00:00
Larry Adams
8a828d7669
-bug#0001294: Stack overflow if database is not correctly initialized
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4720 860744bd-22fc-0310-8c96-e9fe5004b5ca
2008-09-17 23:27:55 +00:00
Larry Adams
2c31003160
-feature: support using the cacti database api with more than one connection
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4565 860744bd-22fc-0310-8c96-e9fe5004b5ca
2008-04-06 00:20:46 +00:00
Larry Adams
22f9e12ddb
Update Copyright Notice for 2008.
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4434 860744bd-22fc-0310-8c96-e9fe5004b5ca
2008-01-29 00:40:43 +00:00
Larry Adams
9d6a8451e4
-bug#0001118: Graph Generation fails if e.g. ifDescr contains some blanks
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4381 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-12-15 23:43:22 +00:00
Tony Roman
6a2e04bf41
Bug#0000997: Graph template edit problem with Cacti 0.8.7 beta 1
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/main@4148 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-09-11 03:17:50 +00:00
Larry Adams
1a7a839b73
Place escaping in the main Cacti SQLSave function to secure code.
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@4131 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-09-08 20:28:34 +00:00
Larry Adams
6084c0a67c
-feature: some sql errors are not errors at all.
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@4109 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-09-02 23:34:21 +00:00
Larry Adams
299dde0ac5
correct issues related to db disconnects between polls.
...
correct memory consumption issues with ADODB.
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@4067 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-08-12 15:49:35 +00:00
Larry Adams
8397da68ff
Add additional logging to SQL Calls
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@4066 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-08-12 15:15:55 +00:00
Larry Adams
c9a003abe6
QA work relative to UI & Database performance, make the SQL output look nicer in the MySQL Slow Query Log.
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@4001 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-06-29 02:17:52 +00:00
Larry Adams
866c63a488
Add INNODB support.
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3987 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-06-25 16:41:50 +00:00
Jimmy Conner
b5e7d721d3
Switch log_verbosity to use a cached value (cuts our SQL queries in half), and reset the cache every page load so we can do on the fly changes again
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3971 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-06-12 14:00:06 +00:00
Larry Adams
e27c5a75b7
better notification of issues.
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3925 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-05-22 03:21:19 +00:00
Larry Adams
b479215919
make logging of error's optional. There are cases, where you expect something to fail. Aka a row insert failure, for example is a good thing. So, don't log it.
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3906 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-04-05 10:59:14 +00:00
Tony Roman
e625781ec6
Typos suck and I'm glad I have a script to update copyrights
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3898 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-03-04 20:17:57 +00:00
Tony Roman
8ff975973a
Proper date range needed in copyright
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3896 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-03-04 20:11:14 +00:00
Tony Roman
e116f23ff7
Copyright update for php files
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3894 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-03-04 19:30:21 +00:00
Larry Adams
2b66221501
-bug#0000894: poller.php does not give any output with mysql disabled in cli's php.ini
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3863 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-01-15 23:03:31 +00:00
Larry Adams
0684c39f42
-bug#0000814: If Database Permissions Are Not Correct Apache Segfaults
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3738 860744bd-22fc-0310-8c96-e9fe5004b5ca
2006-08-26 21:58:25 +00:00
Ian Berry
587cd4872a
add fix for the auto increment bug that stems from newer versions of adodb (bug#0000729)
...
update fix from r3571 so it matches the official patch on the website
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3603 860744bd-22fc-0310-8c96-e9fe5004b5ca
2006-04-19 04:02:33 +00:00
Larry Adams
db9629a081
#bug-Correct issue with log being flooded with UI DEBUG Database events.
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3572 860744bd-22fc-0310-8c96-e9fe5004b5ca
2006-03-12 20:17:00 +00:00
Larry Adams
2323507260
Do not specify auto-increment if the key_cols is an array.
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3571 860744bd-22fc-0310-8c96-e9fe5004b5ca
2006-03-12 20:09:49 +00:00
Larry Adams
bc9357ec05
correct mysql 5.0 strict issues
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3510 860744bd-22fc-0310-8c96-e9fe5004b5ca
2006-01-07 21:47:25 +00:00
Larry Adams
2c884db975
bug#0000572: Added database_port to config.php
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3311 860744bd-22fc-0310-8c96-e9fe5004b5ca
2005-11-09 03:24:53 +00:00
Larry Adams
3a7cc4db16
bug#0000572: Added database_port to config.php
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3310 860744bd-22fc-0310-8c96-e9fe5004b5ca
2005-11-09 03:10:55 +00:00
Larry Adams
aaed10ea0e
additional formatting changes to keep things together
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3292 860744bd-22fc-0310-8c96-e9fe5004b5ca
2005-11-06 16:58:05 +00:00
Larry Adams
9fb034934f
on crack. comitted the wrong version
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3288 860744bd-22fc-0310-8c96-e9fe5004b5ca
2005-11-06 06:47:23 +00:00
Larry Adams
740baed558
slight format errors
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3287 860744bd-22fc-0310-8c96-e9fe5004b5ca
2005-11-06 06:22:22 +00:00
Larry Adams
8f980b91d9
correct two issues in database.php with primary keys and inappropriately displaying log messages to the user interface.
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3222 860744bd-22fc-0310-8c96-e9fe5004b5ca
2005-10-17 00:07:23 +00:00
Ian Berry
dcaf10186c
add GET variable input validation for unquoted SQL values (IDEF#1001)
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@2833 860744bd-22fc-0310-8c96-e9fe5004b5ca
2005-05-25 02:55:11 +00:00
Tony Roman
27d89615e2
Removed unused code that reference a non-existant function
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@2668 860744bd-22fc-0310-8c96-e9fe5004b5ca
2005-03-25 04:02:21 +00:00
Larry Adams
80a0c920d0
Changes for 0.8.6c
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@2266 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-11-19 03:48:24 +00:00
Ian Berry
565a8ead04
handling quoting issues with get_magic_quotes_gpc() more gracefully
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1867 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-08-01 22:15:26 +00:00
Ian Berry
dee19217e0
move some includes to include/config.php
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1801 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-07-21 05:30:09 +00:00
Ian Berry
9014054837
updated the copyright to 2004
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1469 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-01-19 06:05:14 +00:00
Ian Berry
ab61513b01
allow --unit_exponent=0
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1421 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-12-17 21:07:24 +00:00
Andy Blyler
66b11faee6
added @arg $key_cols to sql_save
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1238 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-09-27 06:16:58 +00:00
Ian Berry
39866609d3
unified all edit form code; updated references to the new 'lib/' directory
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1228 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-09-22 04:31:58 +00:00
Ian Berry
844789d8e9
get rid of '&& (sizeof() > 1)' check in array_to_sql_or()
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1216 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-09-16 03:12:08 +00:00
Ian Berry
f0562cbe36
put the results of array_to_sql_or() in quotes as not to cause problems with strings
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1167 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-08-19 06:46:05 +00:00
Ian Berry
9d1808863a
changes to enable cacti to work under 'open_basedir'
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@914 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-05-13 01:07:01 +00:00