Commit Graph
122 Commits
Author SHA1 Message Date
cigamit dbcccece45 problems saving to other databases 2016-04-03 14:22:20 -05:00
cigamit cecccddc76 properly handle resource and qstr() function call issues 2016-03-29 19:44:48 -05:00
Browniebraun 0c58b9b6b7 revert last commitment 2016-03-29 13:41:03 +02:00
cigamit cdae56d257 fixin db_qstr function 2016-03-28 21:30:27 -05:00
Micke2k d188f1631d Change Copyright year 2015 -> 2016 2016-01-29 21:46:02 +04:00
cigamit 4b11861226 Beef up validation logging
Make html validation logging similar to SQL logging.
2015-08-02 14:02:32 -05:00
cigamit b64c2b6ac5 Rolling back undone changes
Changes were undone in prior commit
2015-08-02 12:28:01 -05:00
cigamit e432dbc0b1 Update db_update_table and db_table_create
Allow columns in and primary/keys to be an array
2015-05-27 01:19:13 -05:00
cigamit 6dc209a842 add a few more db functions
add db_update_table, same syntax as the create function, but will
automatically update the table to match (may rename)
add db_remove_column
add db_column_exists
2015-05-05 00:55:28 -05:00
cigamit 7e5175501e Add db_table_create 2015-05-04 22:18:23 -05:00
cigamit 8b95856d07 Move db_table_exists from installer to lib/database 2015-05-04 21:36:17 -05:00
cigamit d7aef458c0 Fix function db_add_column 2015-05-04 21:28:25 -05:00
cigamit 509abd46db update db connection caching for multiple hosts
allow for multiple hosts (or ports) with the same db name
2015-05-04 21:23:09 -05:00
cigamit abdc1e3d55 Merging 0.8.8d Updates with GitHub
Changes include:
- Convert some <br> to </li>
- Update ChangeLog per 0.8.8d release
- Fix Max Values on UCD/SNMP Memory Template
- Change Cacti Group Format to Modern Theme
- Fix Locking on Graphs
- Force Image format to PNG for Legacy Graph Image
- Correct form Logic on Settings to Fix Reverse Proxy's
- Shorten Uptime Display on Device Edit
- Force a Locale Setting for i18n on Graphs
- Fix Resizable Columns to resize only the current column
- Add DropIcon selectmenu Widget to modern theme
- Fix Issue where delete data source multi leaves orphan records
- Correct performance bug in Boost engine
- Optimize array_to_sql_or performance
- Correct and issue where pushing out data query objects to host cache
could leave orphan elements
- Add OID_REWRITE_PATTERN Feature on input
- Add VALUE/REGEXP Feature on output
- Optimize strip_quotes function to be more intellegent
- Escape shell arguments on Script Data Input types
- Allow Special Characters for LDAP passwords
- Correct LDAP class defect for anonymous binding
- Bypass php-snmp for now
- Correct rrdcleaner bytes units
- Fix loadavg_multi.pl to respect i18n
- Remove legacy row counters from snmpagent pages
2015-03-23 17:02:45 -05:00
Jimmy Conner d8cecab80a Rename db_add_column to db_install_add_column to conform to other install functions
Add db_add_column to database lib
Add status of 'Not Ran' so we can show what SQL Queries did not need to be ran

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7694 860744bd-22fc-0310-8c96-e9fe5004b5ca
2015-01-13 02:12:24 +00:00
Jimmy Conner 8bebc6b527 Move the DB Code back to Silent Mode
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7686 860744bd-22fc-0310-8c96-e9fe5004b5ca
2015-01-12 21:30:43 +00:00
Tony Roman 902ac97c7d Fixed and added:
1) Realtime integration complete
2) Added option to update sys OID's in spine and cmd.php
3) Updated poller as well
4) Made cmd.php argument processing sane
5) Remove one more 'rrdtool_graph' variant (aka Realtime)
6) Moved Realtime settings under Visual
7) Added some core Javascript utility functions
8) Added minimum width to dropdowns to make more appealing
9) Cleanup some redundant syntax in headers
10) Typos in format files


git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7678 860744bd-22fc-0310-8c96-e9fe5004b5ca
2015-01-12 18:04:03 +00:00
Jimmy Conner 5bde3da972 1) Update Copyright Years Correct a few minor CY Issues
2) Allow Locking/UnLocking of Graphs
3) ToolTips
4) Correct Minor Issues with Login/Out/Permission associated with Theme JS
5) Upgrade jQuery which has Fixes for Major issue in Safari 7/8.1

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7662 860744bd-22fc-0310-8c96-e9fe5004b5ca
2015-01-04 01:52:50 +00:00
Andreas Braun 43e43ca069 fix db_fetch_cell_prepared again.
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7659 860744bd-22fc-0310-8c96-e9fe5004b5ca
2015-01-03 08:26:19 +00:00
Jimmy Conner aead1c8f3f 1) CLog again
2) Correct some plugin issues related to snmpagent
3) Update modern jQueryUI CSS and images (again)
4) Add autocomplete for device in a few areas add new form object for generic callback
5) Give filter and form objects the jQueryUI styling in modern
6) Convert the Tree edit code to an API
7) Minor CSS changes

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7651 860744bd-22fc-0310-8c96-e9fe5004b5ca
2015-01-03 04:20:32 +00:00
Andreas Braun c2471d17f4 indexing issue in db_fetch_cell_prepared()
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7649 860744bd-22fc-0310-8c96-e9fe5004b5ca
2015-01-02 16:20:32 +00:00
Jimmy Conner 9e6d9d93b8 Remove duplicate code in database.php by forcing normal calls to use through the prepared functions. By default prepares are emulated, so there is no performance loss, there might even be a performance gain because of the prepared plan caching by PDO.
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7630 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-30 02:52:24 +00:00
Jimmy Conner efb572d79f Patch for SSL/TLS in PHPMailer
also fix the bullet_arrow images

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7616 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-27 05:25:44 +00:00
Jimmy Conner 313a24f568 Remove MYSQL_ATTR_FOUND_ROWS
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7610 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-25 18:23:34 +00:00
Jimmy Conner bf1046a437 Add back in line accidentally removed earlier
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7595 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-24 02:05:57 +00:00
Jimmy Conner 0358e37ce9 More Q/A and cleanup of the database functions
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7591 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-23 18:22:30 +00:00
Jimmy Conner 15bc773c89 Add authentication cookies
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7589 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-23 04:49:29 +00:00
Jimmy Conner 10348ee7b4 Quick fix for db_execute on invalid queries
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7588 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-23 04:39:35 +00:00
Jimmy Conner f99e1d33e8 Better fix for affected rows (PDO really needs a better method)
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7587 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-22 06:06:13 +00:00
Jimmy Conner dbce81125c Need to return the connection for plugins that use a separate DB. I would rather they were passing the db name instead, but it would break too many things at this point.
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7586 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-22 05:04:29 +00:00
Jimmy Conner e038586bbb Create quick functions for prepared statements.
I had originally added in caching of the prepared resource, and reusing it instead calling prepare again, but from what I have found, MySQL is caching the result anyways, so there is no real difference.

I would like to find a way to combine these with the original functions without causing backward compatibility problems.  I will see what I can come up with.

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7581 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-19 08:34:36 +00:00
Jimmy Conner 6d51ed791d Change database.php to utilize PDO functions
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7580 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-19 06:32:59 +00:00
Jimmy Conner 04340b729b 1) Correct issue in _db_replace not handling primary keys correctly
2) Fix undefined variable in lib/tree.php
3) Properly copy and add users and their permissions
4) Move about/login/logout/permission images into CSS for themes
5) Remember my last settings tabs between refreshes
6) Only show Boost specifics when checked
7) Remove DOS eol's in database.php

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7574 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-18 05:33:42 +00:00
Jimmy Conner 47de436a96 Backport database.php from Main as a starting point.
We will then begin to move to utilizing the PDO library (unless we vote otherwise).
ADODB is being left included for now until I can rewrite the Syslog plugin.


git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7573 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-17 06:31:32 +00:00
Jimmy Conner ac6d6929cc Remove some unnecessary ending PHP closing tags
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7571 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-17 03:02:03 +00:00
Jimmy Conner af5d8d40df Add the complete backtrace, makes it super simple to track down where issues are originating from
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7562 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-12 05:32:49 +00:00
Jimmy Conner b159662d45 When logging DB Errors, display which function was last called to help track it down.
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7561 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-12-12 04:51:24 +00:00
Tony Roman 65be30ffe0 Update copyright to 2014
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7437 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-03-30 19:54:50 +00:00
Tony Roman ce40281901 Update copyright to 2013 for 0.8.8
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.8@7386 860744bd-22fc-0310-8c96-e9fe5004b5ca
2013-07-21 23:00:42 +00:00
Tony Roman a257958a0b Update copyright to 2012
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@7016 860744bd-22fc-0310-8c96-e9fe5004b5ca
2012-02-27 07:04:37 +00:00
Reinhard Scheck 14a04ccd12 fix description, no code change!
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@6908 860744bd-22fc-0310-8c96-e9fe5004b5ca
2011-11-13 11:01:26 +00:00
Larry Adams 986a673266 0002086: incorrect usage of mysql custom tcp port in 0.8.7h
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@6907 860744bd-22fc-0310-8c96-e9fe5004b5ca
2011-11-12 18:00:09 +00:00
Larry Adams 03ea0b6488 -bug#0002080: Database password containing "@" does not connect
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@6870 860744bd-22fc-0310-8c96-e9fe5004b5ca
2011-10-21 11:45:53 +00:00
Larry Adams 13ab8d58dd -bug#0001646: [patch] MySQL SSL connection support
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@6321 860744bd-22fc-0310-8c96-e9fe5004b5ca
2011-02-21 02:04:10 +00:00
Tony Roman 9acba795fe Update copyright to 2011
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@6233 860744bd-22fc-0310-8c96-e9fe5004b5ca
2011-01-27 03:44:05 +00:00
Larry Adams d069f29d8d QA: Replace result is more relative here.
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@6095 860744bd-22fc-0310-8c96-e9fe5004b5ca
2010-08-12 00:04:09 +00:00
Larry Adams a092beea04 -bug#0001781: MySQL error messages after upgrade to 0.8.7g-beta1
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@6094 860744bd-22fc-0310-8c96-e9fe5004b5ca
2010-08-11 12:49:13 +00:00
Larry Adams 75da7d124d -bug#0001776: Cacti Support for Multiple Simultaneous Databases Broken
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@5978 860744bd-22fc-0310-8c96-e9fe5004b5ca
2010-06-05 20:40:46 +00:00
Reinhard Scheck 40545c1cad honour DEVEL debug mode
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@5958 860744bd-22fc-0310-8c96-e9fe5004b5ca
2010-05-29 10:32:49 +00:00
Larry Adams c5403f3844 QA: Update copyrights
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@5806 860744bd-22fc-0310-8c96-e9fe5004b5ca
2010-04-28 03:48:09 +00:00