mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-26 15:11:45 +01:00
trying to solve auth problems from non-sql
This commit is contained in:
parent
66ecfc35b5
commit
3df6699a06
@ -169,20 +169,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load selected authentication class */
|
|
||||||
if (empty($phpgw_info["server"]["auth_type"])){$phpgw_info["server"]["auth_type"] = "sql";}
|
|
||||||
include($phpgw_info["server"]["api_inc"] . "/phpgw_auth_".$phpgw_info["server"]["auth_type"].".inc.php");
|
|
||||||
|
|
||||||
/* Load selected accounts class */
|
|
||||||
if (empty($phpgw_info["server"]["account_repository"])){$phpgw_info["server"]["account_repository"] = $phpgw_info["server"]["auth_type"];}
|
|
||||||
include($phpgw_info["server"]["api_inc"] . "/phpgw_accounts_".$phpgw_info["server"]["account_repository"].".inc.php");
|
|
||||||
include($phpgw_info["server"]["api_inc"] . "/phpgw_accounts_shared.inc.php");
|
|
||||||
|
|
||||||
/**************************************************************************\
|
/**************************************************************************\
|
||||||
* Continue adding the classes *
|
* Continue adding the classes *
|
||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
$this->auth = new auth;
|
if ($phpgw_info["flags"]["currentapp"] != "login" && $phpgw_info["flags"]["currentapp"] != "logout") {
|
||||||
$this->session = new sessions;
|
$this->session = new sessions;
|
||||||
|
if (! $this->session->verify()) {
|
||||||
|
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/login.php", "cd=10"));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
$this->auth = new auth;
|
||||||
|
}else{
|
||||||
|
$this->auth = new auth;
|
||||||
|
$this->session = new sessions;
|
||||||
|
}
|
||||||
$this->translation = new translation;
|
$this->translation = new translation;
|
||||||
$this->common = new common;
|
$this->common = new common;
|
||||||
$this->accounts = new accounts;
|
$this->accounts = new accounts;
|
||||||
@ -190,18 +190,21 @@
|
|||||||
$this->acl = new acl;
|
$this->acl = new acl;
|
||||||
$this->hooks = new hooks;
|
$this->hooks = new hooks;
|
||||||
|
|
||||||
|
/* Load selected authentication class */
|
||||||
|
if (empty($phpgw_info["server"]["auth_type"])){$phpgw_info["server"]["auth_type"] = "sql";}
|
||||||
|
include($phpgw_info["server"]["api_inc"] . "/phpgw_auth_".$phpgw_info["server"]["auth_type"].".inc.php");
|
||||||
|
|
||||||
|
/* Load selected accounts class */
|
||||||
|
if (empty($phpgw_info["server"]["account_repository"])){$phpgw_info["server"]["account_repository"] = $phpgw_info["server"]["auth_type"];}
|
||||||
|
include($phpgw_info["server"]["api_inc"] . "/phpgw_accounts_".$phpgw_info["server"]["account_repository"].".inc.php");
|
||||||
|
include($phpgw_info["server"]["api_inc"] . "/phpgw_accounts_shared.inc.php");
|
||||||
|
|
||||||
$sep = filesystem_separator();
|
$sep = filesystem_separator();
|
||||||
$template_root = $this->common->get_tpl_dir();
|
$template_root = $this->common->get_tpl_dir();
|
||||||
|
|
||||||
if (is_dir($template_root)) {
|
if (is_dir($template_root)) {
|
||||||
$this->template = new Template($template_root);
|
$this->template = new Template($template_root);
|
||||||
}
|
}
|
||||||
if ($phpgw_info["flags"]["currentapp"] != "login" && $phpgw_info["flags"]["currentapp"] != "logout") {
|
|
||||||
if (! $this->session->verify()) {
|
|
||||||
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/login.php", "cd=10"));
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/**************************************************************************\
|
/**************************************************************************\
|
||||||
* Core functions *
|
* Core functions *
|
||||||
|
Loading…
Reference in New Issue
Block a user