mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +01:00
config.php is now working
This commit is contained in:
parent
6f98d63860
commit
fb4324d771
@ -37,14 +37,24 @@
|
||||
$db->User = $phpgw_info["server"]["db_user"];
|
||||
$db->Password = $phpgw_info["server"]["db_pass"];
|
||||
|
||||
echo "<title>phpGroupWare - setup</title>";
|
||||
echo "<center>phpGroupWare version " . $current_version . " setup</center><p>";
|
||||
|
||||
if ($submit) {
|
||||
$db->query("delete from config");
|
||||
while ($newsetting = each($newsettings)) {
|
||||
$db->query("insert into config (config_name, config_value) values ('" . addslashes($newsetting[0])
|
||||
. "','" . addslashes($newsetting[1]) . "')");
|
||||
}
|
||||
echo '<center>Your config has been updated<br><a href="' . $newsettings[webserver_url]
|
||||
. '">Click here to login</a>';
|
||||
}
|
||||
|
||||
$db->query("select * from config");
|
||||
while ($db->next_record()) {
|
||||
$current_config[$db->f("config_name")] = $db->f("config_value");
|
||||
}
|
||||
?>
|
||||
<title>phpGroupWare - setup</title>
|
||||
<center>phpGroupWare version <?php echo $current_version; ?> setup</center><p>
|
||||
|
||||
<form method="POST" action="config.php">
|
||||
<table border="0">
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user