Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Merge branch 'bareos-15.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed May 6, 2016
2 parents cbffcf7 + c4bab8b commit ed936ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
7 changes: 4 additions & 3 deletions config/autoload/global.php
Expand Up @@ -148,11 +148,12 @@ function read_dir_config($config, $file)
'directors' => read_dir_config($config, $file),
'service_manager' => array(
'factories' => array(
'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
'Zend\Session\Config\ConfigInterface' => 'Zend\Session\Service\SessionConfigFactory',
//'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
),
'abstract_factories' => array(
// to allow other adapters to be called by $sm->get('adaptername')
'Zend\Db\Adapter\AdapterAbstractServiceFactory',
//'Zend\Db\Adapter\AdapterAbstractServiceFactory',
),
),
'session' => array(
Expand All @@ -161,7 +162,7 @@ function read_dir_config($config, $file)
'options' => array(
'name' => 'bareos',
'use_cookies' => true,
'cookie_lifetime' => '3600',
'cookie_lifetime' => '0', // to reset lifetime to maximum at every click
'gc_maxlifetime' => '3600',
'cache_expire' => 3600,
'remember_me_seconds' => 3600,
Expand Down
Expand Up @@ -10,8 +10,7 @@ class SessionTimeoutPlugin extends AbstractPlugin
public function timeout()
{
// preparation for setting timeout via config file:
$config = $this->getController()->getServiceLocator()->get('config');

$this->getController()->getServiceLocator()->get('config');
$timeout = 3600;

if($timeout === 0) {
Expand Down
4 changes: 2 additions & 2 deletions module/Restore/src/Restore/Controller/RestoreController.php
Expand Up @@ -222,7 +222,7 @@ private function buildSubtree()
--$dnum;
$items .= '{';
$items .= '"id":"-' . $dir['pathid'] . '"';
$items .= ',"text":"' . $dir["name"] . '"';
$items .= ',"text":"' . preg_replace('/[\x00-\x1F\x7F]/', '', $dir["name"]) . '"';
$items .= ',"icon":"glyphicon glyphicon-folder-close"';
$items .= ',"state":""';
$items .= ',"data":' . \Zend\Json\Json::encode($dir, \Zend\Json\Json::TYPE_OBJECT);
Expand All @@ -245,7 +245,7 @@ private function buildSubtree()
foreach($files as $file) {
$items .= '{';
$items .= '"id":"' . $file["fileid"] . '"';
$items .= ',"text":"' . $file["name"] . '"';
$items .= ',"text":"' . preg_replace('/[\x00-\x1F\x7F]/', '', $file["name"]) . '"';
$items .= ',"icon":"glyphicon glyphicon-file"';
$items .= ',"state":""';
$items .= ',"data":' . \Zend\Json\Json::encode($file, \Zend\Json\Json::TYPE_OBJECT);
Expand Down

0 comments on commit ed936ea

Please sign in to comment.