Replace Redis password option with Redis startup options to make it more dynamic

This commit is contained in:
cytopia
2018-08-11 13:50:21 +02:00
parent d4deff1340
commit 32592b03dc
4 changed files with 38 additions and 13 deletions

View File

@ -44,7 +44,7 @@ class Redis extends BaseClass implements BaseInterface
$this->setConnectErrno(1);
//loadClass('Logger')->error($this->_connect_error);
} else {
if(array_key_exists('pass', $data)){
if (array_key_exists('pass', $data)) {
$redis->auth($data['pass']);
}
$redis->set('devilbox-version', $GLOBALS['DEVILBOX_VERSION'].' ('.$GLOBALS['DEVILBOX_DATE'].')');