Commit Graph
6 Commits
Author SHA1 Message Date
TheWitness 975952ddd7 Relable session handlers to avoide name space conflicts. 2020-03-29 18:35:47 -04: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
Tony Roman 1de0afcc05 Fixed database session handling for PHP 7.1
- Updated function names to avoid potential function naming overlap
 - Added comments
2017-10-11 18:04:03 -05:00
cigamit ed64674126 Remove ending ?> from session file 2016-10-19 22:50:28 -05:00
cigamit 69a598c381 remove some white-space 2015-11-23 10:46:13 -06:00
cigamit e15c05b3ec Allow saving of session to database for load balancing
This makes Cacti easier to scale out.
2015-11-02 19:52:09 -06:00