mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-26 14:40:29 +01:00
39 lines
1.0 KiB
Smarty
39 lines
1.0 KiB
Smarty
<?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 */
|
|
public $updateHost = 'removed.upgrade.host';
|
|
|
|
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;
|
|
}
|
|
}
|