26 Commits
Author SHA1 Message Date
TheWitness c59b6b9b4d Fixing #5475 - Issue with ss_fping.php and PHP8 strict typing (#5477)
* QA: Broken Function

* QA: Two additional QA Items

- Do a check for IP address as dns_get_records() does not have a timeout and I don't use DNS
- Properly display information about MariaDB 11.

* Fixing #5475 - Ping Issues with Advanced Ping an PHP8

PHP 8.x error - Unsupported operand types: float + string

* QA: Fix two typos
2023-09-03 08:04:53 +01:00
Mark Brugnoli-Vinten 211f98c8bf Update copyright year for 2023 2023-01-04 13:06:23 +00:00
TheWitness 033779b878 Fixing Issue #4754
The script ss_fping.php should timeout based upon the actual device if its searchable
2022-11-13 17:45:25 -05:00
Jing ChenandJing Chen 4e59efad1f Set default value to these script files (#4590)
Co-authored-by: Jing Chen <jingchen@cn.ibm.com>
2022-03-01 22:10:52 -05:00
TheWitness b4405c1707 Some PSR for ss_fping and add missing copyrights and mark executable 2022-02-13 09:55:08 -05:00
TheWitness a392ce8e96 Use LSB shebang notation for cli scripts 2020-11-06 07:02:37 -05:00
cigamit 65ed55e383 Resolving Issue #2891
Script server script ss_fping.php generates error when not called by script server
2019-08-12 07:01:44 -05:00
cigamit 6354d64e3f Update include stack in ss_fping.php 2019-02-28 06:44:46 -06:00
cigamit 1d3749cd7a Resolving Issue #2468
ss_fping.php is using a non-standard hashbang
2019-02-28 06:39:20 -06: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 7737c01115 Audit of PHP Collection Scripts
- Double to single quotes
- Prepared Statements
- "\n" to PHP_EOL
2018-04-07 10:41:09 -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
Larry Adams 65d231ff80 -bug#0001107: ss_fping.php 100% "Pkt Loss" work not properly
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4373 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-12-12 02:47:42 +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
Tony Roman feb96856fe BUG#0000732: ss_fping errors when run and graphs not updating - 'Undefined variable: config'
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3600 860744bd-22fc-0310-8c96-e9fe5004b5ca
2006-04-16 02:52:05 +00:00
Larry Adams 244c51dee8 change default behavior to NOT show errors.
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3570 860744bd-22fc-0310-8c96-e9fe5004b5ca
2006-03-12 20:08:51 +00:00
Larry Adams 5fe88c1090 performance improvements for ss_fping.php
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3303 860744bd-22fc-0310-8c96-e9fe5004b5ca
2005-11-09 01:17:16 +00:00
Larry Adams 0017a6adcc performance improvements for ss_fping.php
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3302 860744bd-22fc-0310-8c96-e9fe5004b5ca
2005-11-09 01:14:39 +00:00
Larry Adams 52367015da incorporate a timeout to ss_fping.php
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3235 860744bd-22fc-0310-8c96-e9fe5004b5ca
2005-10-17 01:32:10 +00:00
Larry Adams 4aa37ea46b updates for advanced ping script
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3158 860744bd-22fc-0310-8c96-e9fe5004b5ca
2005-08-28 21:06:19 +00:00