mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Fixed parse error
This commit is contained in:
parent
bbecb483c0
commit
eb2a476f87
@ -20,8 +20,6 @@
|
|||||||
// Authorize the user to use setup app
|
// Authorize the user to use setup app
|
||||||
include("./inc/setup_auth.inc.php");
|
include("./inc/setup_auth.inc.php");
|
||||||
// Does not return unless user is authorized
|
// Does not return unless user is authorized
|
||||||
echo "<html><head><title>phpGroupWare Setup</title></head>\n";
|
|
||||||
echo "<body bgcolor='#ffffff'>\n";
|
|
||||||
|
|
||||||
/* Database setup */
|
/* Database setup */
|
||||||
include($phpgw_info["server"]["api_dir"] . "/phpgw_db_".$phpgw_info["server"]["db_type"].".inc.php");
|
include($phpgw_info["server"]["api_dir"] . "/phpgw_db_".$phpgw_info["server"]["db_type"].".inc.php");
|
||||||
@ -33,9 +31,11 @@
|
|||||||
$db->User = $phpgw_info["server"]["db_user"];
|
$db->User = $phpgw_info["server"]["db_user"];
|
||||||
$db->Password = $phpgw_info["server"]["db_pass"];
|
$db->Password = $phpgw_info["server"]["db_pass"];
|
||||||
|
|
||||||
|
if ($newsettings["auth_type"] != "ldap") {
|
||||||
echo "<title>phpGroupWare - setup</title>";
|
echo "<title>phpGroupWare - setup</title>";
|
||||||
echo '<body bgcolor="FFFFFF">';
|
echo '<body bgcolor="FFFFFF">';
|
||||||
echo "<center>phpGroupWare version " . $phpgw_info["server"]["version"] . " setup</center><p>";
|
echo "<center>phpGroupWare version " . $phpgw_info["server"]["version"] . " setup</center><p>";
|
||||||
|
}
|
||||||
|
|
||||||
if ($submit) {
|
if ($submit) {
|
||||||
@$db->query("delete from config");
|
@$db->query("delete from config");
|
||||||
@ -53,7 +53,7 @@
|
|||||||
$db->query("insert into config (config_name, config_value) values ('" . addslashes($newsetting[0])
|
$db->query("insert into config (config_name, config_value) values ('" . addslashes($newsetting[0])
|
||||||
. "','" . addslashes($newsetting[1]) . "')");
|
. "','" . addslashes($newsetting[1]) . "')");
|
||||||
}
|
}
|
||||||
if ($newsettings["authtype"] == "ldap") {
|
if ($newsettings["auth_type"] == "ldap") {
|
||||||
Header("Location: ldap.php");
|
Header("Location: ldap.php");
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user