diff --git a/setup/lang.php b/setup/lang.php index 84afbdfdb2..b4a120fb02 100644 --- a/setup/lang.php +++ b/setup/lang.php @@ -13,12 +13,16 @@ if (! $included) { - $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "home", "noapi" => True); - include("../header.inc.php"); - - // Authorize the user to use setup app and load the database - include("./inc/setup_auth.inc.php"); - //Does not return unless user is authorized + $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "home", "noapi" => True); + include("./inc/functions.inc.php"); + include("../header.inc.php"); + // Authorize the user to use setup app and load the database + // Does not return unless user is authorized + if (!auth()){ + Header("Location: index.php"); + exit; + } + loaddb(); echo "