TheWitness
1aa72d24c9
QA: Update Copyright to 2024
2024-02-03 14:18:57 -05:00
Mark Brugnoli-Vinten
e4d60297fd
Update copyright year for 2023
2023-01-04 13:36:25 +00:00
Mark Brugnoli-Vinten
8b29d12cc9
Define cacti system paths as constants for better code checking ( #5120 )
...
This also provides a full run of src-fixer against all files to
ensure all code is now in alignment.
Closes #5120
2023-01-01 01:03:15 +00:00
TheWitness
b4405c1707
Some PSR for ss_fping and add missing copyrights and mark executable
2022-02-13 09:55:08 -05: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
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
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
b19a2e17de
ss_sql never tested. Causes the script server to crash!
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@3874 860744bd-22fc-0310-8c96-e9fe5004b5ca
2007-02-19 18:46:59 +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
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
Ian Berry
20a4eee19e
small double include bug
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@2071 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-09-12 18:19:11 +00:00
Larry Adams
5de32d6470
a script server version of the sql.php
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1997 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-08-24 01:49:42 +00:00