Commit Graph
141 Commits
Author SHA1 Message Date
cigamit e9a8a5b555 Fixing database.php db_add_column to handle CURRENT_TIMESTAMP 2016-12-29 14:58:01 -06:00
cigamit 762e1ffd96 Add 'on_update' to rest of DB functions 2016-12-28 23:06:54 -06:00
cigamit 41dda1654c Add new option 'on_update' to db_add_column
This fixes 'duplicate column' errors when upgrading
2016-12-28 22:24:38 -06:00
cigamit 473aa93c5e Correct issues with remote connections.
This is part of remote poller install testing.  Finding a few
regressions.
2016-12-26 22:27:28 -06:00
cigamit 0054f1d7e9 Correct logic when openning connection to 2nd DB
Since we aren't passing a connection id (and its not even saved to the
db session yet), we need to utilize the PDO functions directly instead
of db_execute, otherwise these commands just get ran on the default
connection again, not the new one.
2016-10-26 00:27:13 -05:00
cigamit 2e7d0df40f more logging and remove removed mysql_error() call 2016-09-21 09:44:27 -05:00
cigamit 4a53491b6b taking a more conservative approach until we can do a full check on the code 2016-09-20 19:52:20 -05:00
cigamit 8b770c8337 another change to database.php to account for auto_increment integers 2016-09-20 17:19:04 -05:00
cigamit 6a2d6c7429 more precise handling of integers 2016-09-19 16:37:33 -05:00
cigamit e1b06a5c9a partial resolution of bug#1042
this change will allow logging by file.  it's not quite by device and
plugin, but it is a start.
2016-09-16 22:03:36 -05:00
cigamit 71483fb020 adding one more mode to exception list 2016-09-05 09:10:31 -05:00
cigamit 9561b97528 disable magic_quotes_gpc forced emulation
this is a significant change that may impact plugins.  please report
bugs if you find tham.
2016-08-28 15:28:42 -05:00
cigamit 97880fce15 Installer cleanup
Remove need to specify the Cacti Version on every function call
Add new functions for adding / dropping columns
Add new functions for renaming / dropping tables
Lots of error checking (stops most SQL errors when re-upgrading)
General Cleanup
2016-08-22 16:48:34 -05:00
cigamit ef6c9ec217 additional mysql 5.7 compatibility 2016-07-11 19:23:56 -05:00
cigamit 00f0d0af45 Truncate SQL Error message for "Got a packet bigger than 'max_allowed_packet' bytes"
This is stop the error log from skyrocketing in size because of the
resource cache
2016-06-26 23:22:44 -05:00
cigamit 9cbb202198 mysql 5.7 testing 2016-06-18 09:44:39 -05:00
cigamit b068b29251 additional change for mysql 5.7 2016-05-31 20:29:56 -05:00
cigamit e6337e28f6 allow Cacti to work with MySQL 5.7
this is the first of likely a few patches on this subject.  testing by
debian.org is ongoing.
2016-05-31 19:26:06 -05:00
cigamit a325c33d60 enhance support for uninitialized database or invalid connection 2016-05-29 14:21:33 -05:00
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