12 Commits
Author SHA1 Message Date
Mark Brugnoli-Vinten d2a94dc3b3 Update copyright year for 2023 2023-01-03 22:46:09 +00:00
TheWitness 82b229db9e Updating Copyright to 2022. 2022-02-06 17:16:20 -05:00
TheWitness 7038545f65 CLI scripts should not have a max allowed runtime related to issue #4215 2021-04-10 09:47:32 -04:00
TheWitness df54a4a3f3 Updating copright years 2021-01-01 20:28:58 -05:00
TheWitness b03cb7e30b Fixing Issue #3631
Cacti cli scripts are not allowed to have unlimited runtime
2020-06-20 19:12:43 -04:00
TheWitness 84049163d6 Fixing Issue #3462
Incorrect default cli php memory_limit
2020-04-16 19:28:54 -04:00
TheWitness 5ff39d9f40 Fixing Issue #3296
Upgrade from 1.2.5 to 1.2.9 not completing / memory exhaustion
2020-03-14 10:47:59 -04:00
netniV 4fa9a68fb3 Update copyright to 2020 2020-01-12 12:19:49 +00:00
netniV 308292e2d7 Update copyright notices for 2019 2019-01-25 08:05:00 +00: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 55271a34b8 issue: Legacy Cacti CLI check function proving unreliable on modern php 2019-01-14 18:40:00 -06:00
cigamit a956da1301 Add missing include/cli_check.php script and additional fixups
- Remove the script data_template_associate_rra.php as it is not
compatible with Cacti 1.x
- Change all initial include() and include_once() to require
- Make sure --version returns correct version
- Pass 1 of ensuring bad parameters exit(1) more to come
2018-08-11 11:41:34 -05:00