OpenXE/conf/main.conf.php.tpl

39 lines
1.0 KiB
Smarty
Raw Permalink Normal View History

2021-05-21 08:49:41 +02:00
<?php
/**
* @property string WFdbhost
* @property int WFdbport
* @property string WFdbname
* @property string WFdbuser
* @property string WFdbpass
* @property string WFuserdata Absolute path to userdata directory
* @property array WFconf
*/
class Config
{
/** @var string */
2022-07-13 10:45:03 +02:00
public $updateHost = 'removed.upgrade.host';
2021-05-21 08:49:41 +02:00
public function __construct()
{
include("user.inc.php");
if (!isset($this->WFdbport) || empty($this->WFdbport)) {
$this->WFdbport = 3306;
}
// define defaults
$this->WFconf['defaultpage'] = 'adresse';
$this->WFconf['defaultpageaction'] = 'list';
$this->WFconf['defaulttheme'] = 'new';
//$this->WFconf['defaulttheme'] = 'default_redesign';
$this->WFconf['defaultgroup'] = 'web';
// allow that cols where dynamically added so structure
$this->WFconf['autoDBupgrade'] = true;
// time how long a user can be connected in seconds genau 8 stunden
$this->WFconf['logintimeout'] = 3600 * 4;
}
}