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

View File

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