28 Commits
Author SHA1 Message Date
Mark Brugnoli-Vinten 211f98c8bf Update copyright year for 2023 2023-01-04 13:06:23 +00:00
Mark Brugnoli-Vinten 81884b0cac Update more copyrights 2022-12-01 02:27:00 +00:00
cigamit 33d99b73ff Update scripts to be more consistent 2019-02-18 07:57:04 -06:00
netniV 89f0a06216 Resolving issue #2304 and #2311
This commit corrects a previous unseen issue where the PHP environment at command line level is being populated with environment variables normally only seen when called from a web server.

issue#2304: Installation progress stays at 0%
issue#2311: Unable to update PHP location during installation due to incorrect CLI environment

The new check uses the php_sapi_name() function to verify that we are indeed at 'cli' level.  All other values returned by php_sapi_name are considered non-cli including 'cli-server' which is for client/server scenarios.

Most checks have now been replaced by a single defintion ('CACTI_CLI') to define whether in CLI mode.  If a script is only to be called from CLI it must either defined 'CACTI_CLI_ONLY' or include include/cli_check.php instead of include/global.php.
2019-01-15 13:57:50 +00:00
Mark Brugnoli-Vinten 1ca32862a9 Resolving issue #1920 (#1922)
* Resolving issue #1920

* Minor QA issue
2018-09-14 20:59:52 -05:00
cigamit e64f3582a0 Audit of PHP Data Collection Scripts
- Double to Single Quotes
- Prepared Statements
- "\n" to PHP_EOL
2018-04-07 10:42:07 -05:00
Tony Roman 8a179d7d7f Fix up to move if elseif else blocks to PSR 2017-05-07 19:57:36 -04:00
cigamit a352a0e227 clean up scripts
Be consistent on error_reporting() and $no_http_headers.
2015-11-14 11:03:15 -06: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
Reinhard Scheck 9d2a164909 -bug#0001568: Cacti currently gives a lot of warnings of deprecated functions on PHP 5.3
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@6200 860744bd-22fc-0310-8c96-e9fe5004b5ca
2011-01-06 21:03:25 +00:00
Jeff Pasnak 256a0a584f #0001504 - fix no newline errors
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@6102 860744bd-22fc-0310-8c96-e9fe5004b5ca
2010-08-21 15:03:22 +00:00
Reinhard Scheck 969e131295 -bug#0001771: "index count changed" not implemented for query_cpu_partitions.pl
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@5964 860744bd-22fc-0310-8c96-e9fe5004b5ca
2010-05-29 14:35:08 +00:00
Reinhard Scheck 0ced77aa71 0001374: ss_host_disk.php etc. fail on SNMP V3 (index off by 1)
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4894 860744bd-22fc-0310-8c96-e9fe5004b5ca
2009-01-31 15:14:56 +00:00
Reinhard Scheck 5819879dd7 patch #4424 now for 087 as well
Special care will have to be taken on users of "cacti_snmp_walk". This function now has the additional parameter "max_oids".

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4602 860744bd-22fc-0310-8c96-e9fe5004b5ca
2008-06-14 09:46:07 +00:00
Larry Adams d2914a2bb6 Two missed scripts.
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4281 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-10-26 16:14:08 +00:00
Larry Adams 64efe41d43 Add support for snmpV3 context's.
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/main@4152 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-09-16 01:17:39 +00:00
Tony Roman 4fe05b968b Altered config.php, and include/config_* to include/global_*
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@4007 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-07-05 04:45:43 +00:00
Larry Adams b11bf9946e additional exploit targets
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3850 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-01-02 17:00:24 +00:00
Larry Adams 7248cc5fd7 -bug: Add snmp retries to cacti's snmp functions
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3653 860744bd-22fc-0310-8c96-e9fe5004b5ca
2006-07-15 20:05:21 +00:00
Ian Berry 7543684c3f add snmp_version to basic script queries
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1371 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-11-13 04:17:36 +00:00
Ian Berry 4d5fe8f3d7 fixed include path problems with php cli; removed http headers
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1323 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-11-06 01:48:33 +00:00
Ian Berry 72f2cea5b7 add snmp timeout
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1261 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-10-10 03:55:07 +00:00
Ian Berry 0ff3bc7702 replace the management_ip field with hostname
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1252 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-10-09 07:13:53 +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 18bebae114 include proper directory names when making includes
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1223 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-09-16 03:15:00 +00:00
Ian Berry ef3786397f fixed problem monitoring more than one cpu
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1131 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-08-15 01:16:28 +00:00
Ian Berry dcfff0fd75 fix for >1 cpus
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@969 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-05-27 06:17:06 +00:00
Ian Berry 24ba7f0480 two new script queries for win32
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@950 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-05-23 07:13:58 +00:00