Disabled frames

This commit is contained in:
jengo 2001-01-10 03:08:03 +00:00
parent f20d77f356
commit d3bcb08a08
2 changed files with 16 additions and 14 deletions

View File

@ -39,7 +39,7 @@
</tr>
<?php $selected = array(); ?>
<?php $selected[$current_config["useframes"]] = " selected"; ?>
<?php/* $selected[$current_config["useframes"]] = " selected"; ?>
<tr bgcolor="e6e6e6">
<td>Frame support:</td>
<td>
@ -50,7 +50,7 @@
</select>
</td>
</tr>
<?php $selected = array(); ?>
<?php $selected = array(); */?>
<?php $selected[$current_config["htmlcompliant"]] = " selected"; ?>
<tr bgcolor="e6e6e6">

View File

@ -32,20 +32,22 @@
}
if ($submit) {
@$phpgw_setup->db->query("delete from config");
while ($newsetting = each($newsettings)) {
if ($newsetting[0] == "nntp_server") {
@$phpgw_setup->db->query("delete from config");
// This is only temp.
$phpgw_setup->db->query("insert into config (config_name, config_value) values ('useframes','never')");
while ($newsetting = each($newsettings)) {
if ($newsetting[0] == "nntp_server") {
$phpgw_setup->db->query("select config_value FROM config WHERE config_name='nntp_server'");
if ($phpgw_setup->db->num_rows()) {
$phpgw_setup->db->next_record();
if ($phpgw_setup->db->f("config_value") <> $newsetting[1]) {
$phpgw_setup->db->query("DELETE FROM newsgroups");
if ($phpgw_setup->db->num_rows()) {
$phpgw_setup->db->next_record();
if ($phpgw_setup->db->f("config_value") <> $newsetting[1]) {
$phpgw_setup->db->query("DELETE FROM newsgroups");
// $phpgw_setup->db->query("DELETE FROM users_newsgroups");
}
}
}
$phpgw_setup->db->query("insert into config (config_name, config_value) values ('" . addslashes($newsetting[0])
. "','" . addslashes($newsetting[1]) . "')");
}
}
}
$phpgw_setup->db->query("insert into config (config_name, config_value) values ('" . addslashes($newsetting[0])
. "','" . addslashes($newsetting[1]) . "')");
}
if ($newsettings["auth_type"] == "ldap") {
Header("Location: ldap.php");