added a new var to phpgw_info, and am using it

This commit is contained in:
seek3r 2000-08-31 07:41:23 +00:00
parent 21d8208fc9
commit ff7717cf38
2 changed files with 105 additions and 270 deletions

View File

@ -8,20 +8,13 @@ CREATE TABLE applications (
);
insert into applications (app_name, app_title, app_enabled) values ('admin', 'Administration', 1);
insert into applications (app_name, app_title, app_enabled) values ('tts', 'Trouble Ticket System', 1);
insert into applications (app_name, app_title, app_enabled) values ('inv', 'Inventory', 1);
insert into applications (app_name, app_title, app_enabled) values ('chat', 'Chat', 1);
insert into applications (app_name, app_title, app_enabled) values ('headlines', 'Headlines', 1);
insert into applications (app_name, app_title, app_enabled) values ('filemanager', 'File manager', 1);
insert into applications (app_name, app_title, app_enabled) values ('ftp', 'FTP', 1);
insert into applications (app_name, app_title, app_enabled) values ('addressbook', 'Address Book', 1);
insert into applications (app_name, app_title, app_enabled) values ('todo', 'ToDo List', 1);
insert into applications (app_name, app_title, app_enabled) values ('calendar', 'Calendar', 1);
insert into applications (app_name, app_title, app_enabled) values ('email', 'Email', 1);
insert into applications (app_name, app_title, app_enabled) values ('nntp', 'NNTP', 1);
insert into applications (app_name, app_title, app_enabled) values ('bookmarks', 'Bookmarks', 0);
insert into applications (app_name, app_title, app_enabled) values ('cron_apps', 'cron_apps', 0);
insert into applications (app_name, app_title, app_enabled) values ('napster', 'Napster', 0);
CREATE TABLE accounts (
con int(11) DEFAULT '0' NOT NULL auto_increment,
@ -39,29 +32,9 @@ CREATE TABLE accounts (
UNIQUE loginid (loginid)
);
create table bookmarks (
con int(11) DEFAULT '0' NOT NULL auto_increment,
owner varchar(255),
category int NOT NULL,
url varchar(255),
title varchar(255),
des text,
access char(7),
lastupdate int(11),
lastview int(11),
totalviews int(11),
PRIMARY KEY (con)
);
create table bookmarks_cats (
con int(11) DEFAULT '0' NOT NULL auto_increment,
owner varchar(255),
parent int(11),
parent_name varchar(255),
type char(4),
name varchar(255),
PRIMARY KEY (con)
);
insert into accounts (loginid,passwd,firstname,lastname,permissions,groups,
status) values ('demo','81dc9bdb52d04dc20036dbd8313ed055','Demo','Account',
':admin:email:todo:addressbook:calendar:hr:',',1,','A');
create table groups (
group_id int NOT NULL auto_increment,
@ -72,10 +45,56 @@ create table groups (
insert into groups (group_name) values ('Default');
insert into accounts (loginid,passwd,firstname,lastname,permissions,groups,
status) values ('demo','81dc9bdb52d04dc20036dbd8313ed055','Demo','Account',
':admin:email:todo:addressbook:calendar:hr:',',1,','A');
CREATE TABLE preferences (
owner varchar(20),
name varchar(50),
value varchar(50)
);
insert into preferences values ('demo','maxmatchs','10');
insert into preferences values ('demo','mainscreen_showbirthdays','True');
insert into preferences values ('demo','mainscreen_showevents','True');
insert into preferences values ('demo','timeformat','12');
insert into preferences values ('demo','dateformat','m/d/Y');
insert into preferences values ('demo','theme','default');
insert into preferences values ('demo','tz_offset','0');
CREATE TABLE sessions (
sessionid varchar(255) NOT NULL,
loginid varchar(20),
passwd varchar(255),
ip varchar(255),
logintime int(11),
dla int(11),
UNIQUE sessionid (sessionid)
);
CREATE TABLE app_sessions (
sessionid varchar(255) NOT NULL,
loginid varchar(20),
app varchar(20),
content text
);
create table access_log (
sessionid varchar(30),
loginid varchar(30),
ip varchar(30),
li int,
lo int
);
CREATE TABLE profiles (
con int(11) DEFAULT '0' NOT NULL auto_increment,
owner varchar(20),
title varchar(255),
phone_number varchar(255),
comments text,
picture_format varchar(255),
picture blob,
PRIMARY KEY (con)
);
CREATE TABLE addressbook (
con int(11) DEFAULT '0' NOT NULL auto_increment,
@ -100,30 +119,6 @@ CREATE TABLE addressbook (
PRIMARY KEY (con)
);
CREATE TABLE preferences (
owner varchar(20),
name varchar(50),
value varchar(50)
);
CREATE TABLE sessions (
sessionid varchar(255) NOT NULL,
loginid varchar(20),
passwd varchar(255),
ip varchar(255),
logintime int(11),
dla int(11),
UNIQUE sessionid (sessionid)
);
CREATE TABLE app_sessions (
sessionid varchar(255) NOT NULL,
loginid varchar(20),
app varchar(20),
content text
);
CREATE TABLE todo (
con int(11) DEFAULT '0' NOT NULL auto_increment,
owner varchar(25),
@ -173,83 +168,3 @@ create table webcal_entry_groups (
groups varchar(255)
);
create table access_log (
sessionid varchar(30),
loginid varchar(30),
ip varchar(30),
li int,
lo int
);
create table ticket (
t_id int unsigned not null auto_increment,
t_category varchar(40) not null,
t_subject varchar(80),
t_detail text,
t_priority smallint,
t_user varchar(10) not null,
t_assignedto varchar(10) not null,
t_timestamp_opened int,
t_timestamp_closed int,
t_department varchar(25),
primary key (t_id)
);
create table category (
c_id int unsigned not null auto_increment,
c_department varchar(25) not null,
c_name varchar(40) not null,
primary key (c_id)
);
insert into preferences values ('demo','maxmatchs','10');
insert into preferences values ('demo','mainscreen_showbirthdays','True');
insert into preferences values ('demo','mainscreen_showevents','True');
insert into preferences values ('demo','timeformat','12');
insert into preferences values ('demo','dateformat','m/d/Y');
insert into preferences values ('demo','theme','default');
insert into preferences values ('demo','tz_offset','0');
CREATE TABLE news_site (
con int(11) DEFAULT '0' NOT NULL auto_increment,
display varchar(255),
base_url varchar(255),
newsfile varchar(255),
lastread int unsigned,
newstype varchar(15),
cachetime int unsigned,
listings int unsigned,
PRIMARY KEY (con)
);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Slashdot','http://slashdot.org','/slashdot.rdf',0,'rdf',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Freshmeat','http://freshmeat.net','/backend/fm.rdf',0,'fm',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Linux Today','http://linuxtoday.com','/backend/linuxtoday.xml',0,'lt',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Linux Game Tome','http://happypenguin.org','/html/news.rdf',0,'rdf',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Segfault','http://segfault.org','/stories.xml',0,'sf',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('KDE News','http://www.kde.org','/news/kdenews.rdf',0,'rdf',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Gnome News','http://news.gnome.org','/gnome-news/rdf',0,'rdf',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Gimp News','http://www.xach.com','/gimp/news/channel.rdf',0,'rdf-chan',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Mozilla','http://www.mozilla.org','/news.rdf',0,'rdf-chan',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('MozillaZine','http://www.mozillazine.org','/contents.rdf',0,'rdf',60,20);
CREATE TABLE news_headlines (
site int(11) NOT NULL,
title varchar(255),
link varchar(255)
);
CREATE TABLE users_headlines (
owner varchar(25) NOT NULL,
site int(11) NOT NULL
);
CREATE TABLE profiles (
con int(11) DEFAULT '0' NOT NULL auto_increment,
owner varchar(20),
title varchar(255),
phone_number varchar(255),
comments text,
picture_format varchar(255),
picture blob,
PRIMARY KEY (con)
);

View File

@ -8,20 +8,13 @@ create table applications (
);
insert into applications (app_name, app_title, app_enabled) values ('admin', 'Administration', 1);
insert into applications (app_name, app_title, app_enabled) values ('tts', 'Trouble Ticket System', 1);
insert into applications (app_name, app_title, app_enabled) values ('inv', 'Inventory', 1);
insert into applications (app_name, app_title, app_enabled) values ('chat', 'Chat', 1);
insert into applications (app_name, app_title, app_enabled) values ('headlines', 'Headlines', 1);
insert into applications (app_name, app_title, app_enabled) values ('filemanager', 'File manager', 1);
insert into applications (app_name, app_title, app_enabled) values ('ftp', 'FTP', 1);
insert into applications (app_name, app_title, app_enabled) values ('addressbook', 'Address Book', 1);
insert into applications (app_name, app_title, app_enabled) values ('todo', 'ToDo List', 1);
insert into applications (app_name, app_title, app_enabled) values ('calendar', 'Calendar', 1);
insert into applications (app_name, app_title, app_enabled) values ('email', 'Email', 1);
insert into applications (app_name, app_title, app_enabled) values ('nntp', 'NNTP', 1);
insert into applications (app_name, app_title, app_enabled) values ('bookmarks', 'Bookmarks', 0);
insert into applications (app_name, app_title, app_enabled) values ('cron_apps', 'cron_apps', 0);
insert into applications (app_name, app_title, app_enabled) values ('napster', 'Napster', 0);
create table accounts (
con serial,
@ -38,6 +31,10 @@ create table accounts (
unique(loginid)
);
insert into accounts (loginid,passwd,firstname,lastname,permissions,groups,
status) values ('demo','81dc9bdb52d04dc20036dbd8313ed055','Demo','Account',
':admin:email:todo:addressbook:calendar:hr:',',1,','A');
create table groups (
group_id serial,
group_name varchar(50),
@ -46,9 +43,55 @@ create table groups (
insert into groups (group_name) values ('Default');
insert into accounts (loginid,passwd,firstname,lastname,permissions,groups,
status) values ('demo','81dc9bdb52d04dc20036dbd8313ed055','Demo','Account',
':admin:email:todo:addressbook:calendar:hr:',',1,','A');
create table sessions (
sessionid varchar(255),
loginid varchar(20),
passwd varchar(255),
ip varchar(255),
logintime int,
dla int,
unique(sessionid)
);
CREATE TABLE app_sessions (
sessionid varchar(255) NOT NULL,
loginid varchar(20),
app varchar(20),
content text
);
create table preferences (
owner varchar(20),
name varchar(50),
value varchar(50)
);
insert into preferences values ('demo','maxmatchs','10');
insert into preferences values ('demo','email_sig','');
insert into preferences values ('demo','mainscreen_showbirthdays','True');
insert into preferences values ('demo','mainscreen_showevents','True');
insert into preferences values ('demo','timeformat','12');
insert into preferences values ('demo','dateformat','m/d/Y');
insert into preferences values ('demo','theme','default');
insert into preferences values ('demo','tz_offset','0');
create table access_log (
sessionid varchar(30),
loginid varchar(30),
ip varchar(30),
li int,
lo int
);
CREATE TABLE profiles (
con serial,
owner varchar(20),
title varchar(255),
phone_number varchar(255),
comments text,
picture_format varchar(255),
picture text
);
create table addressbook (
con serial,
@ -72,45 +115,6 @@ create table addressbook (
company varchar(255)
);
create table bookmarks (
con serial,
owner varchar(255),
category int NOT NULL,
url varchar(255),
title varchar(255),
des text,
access char(7),
lastupdate int,
lastview int,
totalviews int
);
create table bookmarks_cats (
con serial,
owner varchar(255),
parent int,
parent_name varchar(255),
type char(4),
name varchar(255)
);
create table sessions (
sessionid varchar(255),
loginid varchar(20),
passwd varchar(255),
ip varchar(255),
logintime int,
dla int,
unique(sessionid)
);
CREATE TABLE app_sessions (
sessionid varchar(255) NOT NULL,
loginid varchar(20),
app varchar(20),
content text
);
create table todo (
con serial,
owner varchar(25),
@ -157,88 +161,4 @@ create table webcal_entry_groups (
groups varchar(255)
);
create table preferences (
owner varchar(20),
name varchar(50),
value varchar(50)
);
create table access_log (
sessionid varchar(30),
loginid varchar(30),
ip varchar(30),
li int,
lo int
);
create table ticket (
t_id serial,
t_category varchar(40) not null,
t_subject varchar(80),
t_detail text,
t_priority smallint,
t_user varchar(10) not null,
t_assignedto varchar(10) not null,
t_timestamp_opened int,
t_timestamp_closed int,
t_department varchar(25)
);
create table category (
c_id serial,
c_department varchar(25) not null,
c_name varchar(40) not null
);
insert into preferences values ('demo','maxmatchs','10');
insert into preferences values ('demo','email_sig','');
insert into preferences values ('demo','mainscreen_showbirthdays','True');
insert into preferences values ('demo','mainscreen_showevents','True');
insert into preferences values ('demo','timeformat','12');
insert into preferences values ('demo','dateformat','m/d/Y');
insert into preferences values ('demo','theme','default');
insert into preferences values ('demo','tz_offset','0');
CREATE TABLE news_site (
con serial,
display varchar(255),
base_url varchar(255),
newsfile varchar(255),
lastread int,
newstype varchar(15),
cachetime int,
listings int
);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Slashdot','http://slashdot.org','/slashdot.rdf',0,'rdf',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Freshmeat','http://freshmeat.net','/backend/fm.rdf',0,'fm',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Linux Today','http://linuxtoday.com','/backend/linuxtoday.xml',0,'lt',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Linux Game Tome','http://happypenguin.org','/html/news.rdf',0,'rdf',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Segfault','http://segfault.org','/stories.xml',0,'sf',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('KDE News','http://www.kde.org','/news/kdenews.rdf',0,'rdf',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Gnome News','http://news.gnome.org','/gnome-news/rdf',0,'rdf',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Gimp News','http://www.xach.com','/gimp/news/channel.rdf',0,'rdf-chan',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('Mozilla','http://www.mozilla.org','/news.rdf',0,'rdf-chan',60,20);
insert into news_site (display,base_url,newsfile,lastread,newstype,cachetime,listings) values ('MozillaZine','http://www.mozillazine.org','/contents.rdf',0,'rdf',60,20);
CREATE TABLE news_headlines (
site int,
title varchar(255),
link varchar(255)
);
CREATE TABLE users_headlines (
owner varchar(25) not null,
site int
);
CREATE TABLE profiles (
con serial,
owner varchar(20),
title varchar(255),
phone_number varchar(255),
comments text,
picture_format varchar(255),
picture text
);
COMMIT;