mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-12 23:01:14 +01:00
Improved compatibility to Xentral 20 database
This commit is contained in:
parent
2bb3130b00
commit
383524f348
@ -654,7 +654,15 @@ class Acl
|
|||||||
if($this->app->DB->error())$usesha512 = false;
|
if($this->app->DB->error())$usesha512 = false;
|
||||||
|
|
||||||
$stechuhrdevicelogin = false;
|
$stechuhrdevicelogin = false;
|
||||||
|
|
||||||
|
// Xentral 20 database compatibility
|
||||||
|
$check = $this->app->DB->Select("SHOW TABLES LIKE 'stechuhrdevice'");
|
||||||
|
|
||||||
|
$devices = null;
|
||||||
|
if (!empty($check)) {
|
||||||
$devices = $this->app->DB->SelectArr("SELECT * from stechuhrdevice where aktiv = 1 and code = '$code' AND code <> ''");
|
$devices = $this->app->DB->SelectArr("SELECT * from stechuhrdevice where aktiv = 1 and code = '$code' AND code <> ''");
|
||||||
|
}
|
||||||
|
|
||||||
if($devices)
|
if($devices)
|
||||||
{
|
{
|
||||||
foreach($devices as $device)
|
foreach($devices as $device)
|
||||||
|
@ -890,6 +890,9 @@ $this->app->Tpl->Add('TODOFORUSER',"<tr><td width=\"90%\">".$tmp[$i]['aufgabe'].
|
|||||||
|
|
||||||
$this->app->erp->RunHook('welcome_start', 1 , $this);
|
$this->app->erp->RunHook('welcome_start', 1 , $this);
|
||||||
|
|
||||||
|
// Xentral 20 database compatibility
|
||||||
|
if ($this->app->DB->Select("SHOW COLUMNS FROM `user` LIKE 'role'")) {
|
||||||
|
|
||||||
if(empty($this->app->User->GetField('role')) || $this->app->acl->IsAdminadmin()) {
|
if(empty($this->app->User->GetField('role')) || $this->app->acl->IsAdminadmin()) {
|
||||||
$this->app->ModuleScriptCache->IncludeWidgetNew('ClickByClickAssistant');
|
$this->app->ModuleScriptCache->IncludeWidgetNew('ClickByClickAssistant');
|
||||||
$this->app->ModuleScriptCache->IncludeJavascriptFiles(
|
$this->app->ModuleScriptCache->IncludeJavascriptFiles(
|
||||||
@ -902,6 +905,8 @@ $this->app->Tpl->Add('TODOFORUSER',"<tr><td width=\"90%\">".$tmp[$i]['aufgabe'].
|
|||||||
);
|
);
|
||||||
$this->app->Tpl->Parse('AUFGABENPOPUP', 'welcome_firststart.tpl');
|
$this->app->Tpl->Parse('AUFGABENPOPUP', 'welcome_firststart.tpl');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if($this->app->User->GetType() === 'admin') {
|
if($this->app->User->GetType() === 'admin') {
|
||||||
$this->app->Tpl->Set('COLROWTASKS', '6');
|
$this->app->Tpl->Set('COLROWTASKS', '6');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user