forked from extern/egroupware
Changed the format for the preference table
This commit is contained in:
parent
dcceb352ce
commit
58cf8a21b0
@ -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,
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user