Changed the format for the preference table

This commit is contained in:
jengo 2000-09-25 22:56:21 +00:00
parent dcceb352ce
commit 58cf8a21b0
2 changed files with 12 additions and 13 deletions

View File

@ -52,19 +52,19 @@ create table groups (
insert into groups (group_name) values ('Default'); insert into groups (group_name) values ('Default');
CREATE TABLE preferences ( CREATE TABLE preferences (
owner varchar(20), preference_owner varchar(20),
name varchar(50), preference_name varchar(50),
value varchar(50) preference_value varchar(50),
preference_appname varchar(50)
); );
insert into preferences values ('demo','maxmatchs','10'); insert into preferences values ('demo','maxmatchs','10','');
insert into preferences values ('demo','mainscreen_showbirthdays','True'); insert into preferences values ('demo','mainscreen_showbirthdays','True','');
insert into preferences values ('demo','mainscreen_showevents','True'); insert into preferences values ('demo','mainscreen_showevents','True','');
insert into preferences values ('demo','timeformat','12'); insert into preferences values ('demo','timeformat','12','');
insert into preferences values ('demo','dateformat','m/d/Y'); insert into preferences values ('demo','dateformat','m/d/Y','');
insert into preferences values ('demo','theme','default'); insert into preferences values ('demo','theme','default','');
insert into preferences values ('demo','tz_offset','0'); insert into preferences values ('demo','tz_offset','0','');
CREATE TABLE sessions ( CREATE TABLE sessions (
sessionid varchar(255) NOT NULL, sessionid varchar(255) NOT NULL,

View File

@ -254,8 +254,7 @@
<?php <?php
} else { } else {
$phpgw->db->query("delete from preferences where owner='" . $phpgw_info["user"]["userid"] $phpgw->common->preferences_delete("notheme",$phpgw_info["user"]["userid"]);
. "' AND name != 'theme'");
// If they don't have permissions to the headlines, // If they don't have permissions to the headlines,
// we don't need to lock the table. // we don't need to lock the table.