mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-07 06:29:49 +01:00
Fix auth check - oops this was open, and update to use PHPGW_INCLUDE_ROOT
This commit is contained in:
parent
fcd9d43bba
commit
89eb9b157f
@ -12,15 +12,17 @@
|
|||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True,
|
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True,
|
||||||
"currentapp" => "home", "noapi" => True);
|
"currentapp" => "home", "noapi" => True);
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
include("./inc/functions.inc.php");
|
include("./inc/functions.inc.php");
|
||||||
|
|
||||||
// Authorize the user to use setup app and load the database
|
// Authorize the user to use setup app and load the database
|
||||||
include("./inc/setup_auth.inc.php");
|
if (!$phpgw_setup->auth("Config")){
|
||||||
|
Header("Location: index.php");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
// Does not return unless user is authorized
|
// Does not return unless user is authorized
|
||||||
// $phpgw_info["server"]["api_inc"] = $phpgw_info["server"]["include_root"]."/phpgwapi";
|
include( PHPGW_INCLUDE_ROOT . "/phpgwapi/inc/class.common.inc.php");
|
||||||
include($phpgw_info["server"]["include_root"] . "/phpgwapi/inc/class.common.inc.php");
|
|
||||||
|
|
||||||
$common = new common;
|
$common = new common;
|
||||||
$phpgw_setup->loaddb();
|
$phpgw_setup->loaddb();
|
||||||
|
Loading…
Reference in New Issue
Block a user