re-organized setup program

This commit is contained in:
seek3r 2000-11-02 08:03:05 +00:00
parent 08e7f711c3
commit 01ae77b48f
11 changed files with 2 additions and 1775 deletions

View File

@ -18,7 +18,7 @@
$phpgw_info["server"]["api_dir"] = $phpgw_info["server"]["include_root"]."/phpgwapi";
// Authorize the user to use setup app
include("setup_auth.inc.php");
include("inc/setup_auth.inc.php");
// Does not return unless user is authorized
echo "<html><head><title>phpGroupWare Setup</title></head>\n";
echo "<body bgcolor='#ffffff'>\n";

View File

@ -1,239 +0,0 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
// NOTE: Please use spaces to seperate the field names. It makes copy and pasting easier.
$sql = "CREATE TABLE config (
config_name varchar(255) NOT NULL,
config_value varchar(100),
UNIQUE config_name (config_name)
)";
$db->query($sql);
$sql = "CREATE TABLE applications (
app_name varchar(25) NOT NULL,
app_title varchar(50),
app_enabled int,
app_order int,
app_tables varchar(255),
app_version varchar(20) NOT NULL default '0.0',
UNIQUE app_name (app_name)
)";
$db->query($sql);
$sql = "CREATE TABLE accounts (
account_id int(11) DEFAULT '0' NOT NULL auto_increment,
account_lid varchar(25) NOT NULL,
account_pwd varchar(32) NOT NULL,
account_firstname varchar(50),
account_lastname varchar(50),
account_permissions text,
account_groups varchar(30),
account_lastlogin int(11),
account_lastloginfrom varchar(255),
account_lastpwd_change int(11),
account_status enum('A','L') DEFAULT 'A' NOT NULL,
PRIMARY KEY (account_id),
UNIQUE account_lid (account_lid)
)";
$db->query($sql);
$sql = "create table groups (
group_id int NOT NULL auto_increment,
group_name varchar(255),
group_apps varchar(255),
primary key(group_id)
)";
$db->query($sql);
$sql = "CREATE TABLE preferences (
preference_owner varchar(20),
preference_name varchar(50),
preference_value varchar(50),
preference_appname varchar(50)
)";
$db->query($sql);
$sql = "CREATE TABLE sessions (
session_id varchar(255) NOT NULL,
session_lid varchar(20),
session_pwd varchar(255),
session_ip varchar(255),
session_logintime int(11),
session_dla int(11),
UNIQUE sessionid (session_id)
)";
$db->query($sql);
$sql = "CREATE TABLE app_sessions (
sessionid varchar(255) NOT NULL,
loginid varchar(20),
app varchar(20),
content text
)";
$db->query($sql);
$sql = "create table access_log (
sessionid varchar(255),
loginid varchar(30),
ip varchar(30),
li int,
lo varchar(255)
)";
$db->query($sql);
$sql = "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)
)";
$db->query($sql);
$sql = "CREATE TABLE addressbook (
ab_id int(11) NOT NULL auto_increment,
ab_owner varchar(25),
ab_access varchar(10),
ab_firstname varchar(255),
ab_lastname varchar(255),
ab_email varchar(255),
ab_hphone varchar(255),
ab_wphone varchar(255),
ab_fax varchar(255),
ab_pager varchar(255),
ab_mphone varchar(255),
ab_ophone varchar(255),
ab_street varchar(255),
ab_city varchar(255),
ab_state varchar(255),
ab_zip varchar(255),
ab_bday varchar(255),
ab_notes text,
ab_company varchar(255),
ab_company_id int(10) unsigned,
ab_title varchar(60),
ab_address2 varchar(60),
ab_url varchar(255),
PRIMARY KEY (ab_id)
)";
$db->query($sql);
$sql = "CREATE TABLE customers (
company_id int(10) unsigned NOT NULL auto_increment,
company_name varchar(255),
website varchar(80),
ftpsite varchar(80),
industry_type varchar(50),
status varchar(30),
software varchar(40),
lastjobnum int(10) unsigned,
lastjobfinished date,
busrelationship varchar(30),
notes text,
PRIMARY KEY (company_id)
);";
$db->query($sql);
$sql = "CREATE TABLE todo (
todo_id int(11) DEFAULT '0' NOT NULL auto_increment,
todo_id_parent int(11) DEFAULT '0' NOT NULL,
todo_owner varchar(25),
todo_access varchar(10),
todo_des text,
todo_pri int(11),
todo_status int(11),
todo_datecreated int(11),
todo_datedue int(11),
PRIMARY KEY (todo_id)
)";
$db->query($sql);
$sql = "CREATE TABLE webcal_entry (
cal_id int(11) DEFAULT '0' NOT NULL auto_increment,
cal_group_id int(11),
cal_create_by varchar(25) NOT NULL,
cal_date int(11) DEFAULT '0' NOT NULL,
cal_time int(11),
cal_mod_date int(11),
cal_mod_time int(11),
cal_duration int(11) DEFAULT '0' NOT NULL,
cal_priority int(11) DEFAULT '2',
cal_type varchar(10),
cal_access char(10),
cal_name varchar(80) NOT NULL,
cal_description text,
PRIMARY KEY (cal_id)
)";
$db->query($sql);
$sql = "CREATE TABLE webcal_entry_repeats (
cal_id int(11) DEFAULT '0' NOT NULL,
cal_type enum('daily','weekly','monthlyByDay','monthlyByDate','yearly') DEFAULT 'daily' NOT NULL,
cal_end int(11),
cal_frequency int(11) DEFAULT '1',
cal_days char(7)
)";
$db->query($sql);
$sql = "CREATE TABLE webcal_entry_user (
cal_id int(11) DEFAULT '0' NOT NULL,
cal_login varchar(25) NOT NULL,
cal_status char(1) DEFAULT 'A',
PRIMARY KEY (cal_id, cal_login)
)";
$db->query($sql);
$sql = "create table webcal_entry_groups (
cal_id int,
groups varchar(255)
)";
$db->query($sql);
$sql = "CREATE TABLE newsgroups (
con int(11) NOT NULL auto_increment,
name varchar(255) NOT NULL,
messagecount int(11) NOT NULL,
lastmessage int(11) NOT NULL,
active char DEFAULT 'N' NOT NULL,
lastread int(11),
PRIMARY KEY (con),
UNIQUE name (name)
)";
$db->query($sql);
$sql = "CREATE TABLE lang (
message_id varchar(150) DEFAULT '' NOT NULL,
app_name varchar(100) DEFAULT 'common' NOT NULL,
lang varchar(5) DEFAULT '' NOT NULL,
content text NOT NULL,
PRIMARY KEY (message_id,app_name,lang)
)";
$db->query($sql);
// I decied too hold off on this table until 0.9.4pre1 (jengo)
/* $sql = "create table domains (
domain_id int NOT NULL auto_increment,
domain_name varchar(255),
domain_database varchar(255),
domain_status enum('Active,Disabled'),
primary key(domain_id)
)";
$db->query($sql);
*/
?>

View File

@ -1,211 +0,0 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
// NOTE: Please use spaces to seperate the field names. It makes copy and pasting easier.
$sql = "CREATE TABLE config (
config_name varchar(255) NOT NULL UNIQUE,
config_value varchar(100) NOT NULL
)";
$db->query($sql);
$sql = "create table applications (
app_name varchar(25) NOT NULL,
app_title varchar(50),
app_enabled int,
app_order int,
app_tables varchar(255),
app_version varchar(20) NOT NULL default '0.0',
unique(app_name)
)";
$db->query($sql);
$sql = "create table accounts (
account_id serial,
account_lid varchar(25) NOT NULL,
account_pwd char(32) NOT NULL,
account_firstname varchar(50),
account_lastname varchar(50),
account_permissions text,
account_groups varchar(30),
account_lastlogin int,
account_lastloginfrom varchar(255),
account_lastpwd_change int,
account_status char(1),
unique(account_lid)
)";
$db->query($sql);
$sql = "create table groups (
group_id serial,
group_name varchar(50),
group_apps varchar(255)
)";
$db->query($sql);
$sql = "create table sessions (
session_id varchar(255),
session_lid varchar(20),
session_pwd varchar(255),
session_ip varchar(255),
session_logintime int,
session_dla int,
unique(session_id)
)";
$db->query($sql);
$sql = "CREATE TABLE app_sessions (
sessionid varchar(255) NOT NULL,
loginid varchar(20),
app varchar(20),
content text
)";
$db->query($sql);
$sql = "create table preferences (
preference_owner varchar(20),
preference_name varchar(50),
preference_value varchar(50),
preference_appname varchar(50)
)";
$db->query($sql);
$sql = "create table access_log (
sessionid varchar(255),
loginid varchar(30),
ip varchar(30),
li int,
lo varchar(255)
)";
$db->query($sql);
$sql = "CREATE TABLE profiles (
con serial,
owner varchar(20),
title varchar(255),
phone_number varchar(255),
comments text,
picture_format varchar(255),
picture text
)";
$db->query($sql);
$sql = "create table addressbook (
ab_id serial,
ab_owner varchar(25),
ab_access varchar(10),
ab_firstname varchar(255),
ab_lastname varchar(255),
ab_email varchar(255),
ab_hphone varchar(255),
ab_wphone varchar(255),
ab_fax varchar(255),
ab_pager varchar(255),
ab_mphone varchar(255),
ab_ophone varchar(255),
ab_street varchar(255),
ab_city varchar(255),
ab_state varchar(255),
ab_zip varchar(255),
ab_bday varchar(255),
ab_notes varchar(255),
ab_company varchar(255),
ab_company_id int,
ab_title varchar(60),
ab_address2 varchar(60)
ab_url varchar(255),
)";
$db->query($sql);
$sql = "create table todo (
todo_id serial,
todo_id_parent int,
todo_owner varchar(25),
todo_access varchar(10),
todo_des text,
todo_pri int,
todo_status int,
todo_datecreated int,
todo_datedue int
)";
$db->query($sql);
$sql = "CREATE TABLE webcal_entry (
cal_id serial,
cal_group_id int NULL,
cal_create_by varchar(25) NOT NULL,
cal_date int NOT NULL,
cal_time int NULL,
cal_mod_date int,
cal_mod_time int,
cal_duration int NOT NULL,
cal_priority int DEFAULT 2,
cal_type varchar(10),
cal_access varchar(10),
cal_name varchar(80) NOT NULL,
cal_description varchar(255)
)";
$db->query($sql);
$sql = "CREATE TABLE webcal_entry_user (
cal_id int,
cal_login varchar(25) NOT NULL,
cal_status char(1) DEFAULT 'A'
)";
$db->query($sql);
$sql = "create table webcal_entry_repeats (
cal_id int,
cal_type varchar(20),
cal_end int,
cal_frequency int default 1,
cal_days char(7)
)";
$db->query($sql);
$sql = "create table webcal_entry_groups (
cal_id int,
groups varchar(255)
)";
$db->query($sql);
$sql = "CREATE TABLE newsgroups (
con serial,
name varchar(255) NOT NULL,
messagecount int,
lastmessage int,
active char DEFAULT 'N' NOT NULL,
lastread int
)";
$db->query($sql);
$sql = "CREATE TABLE lang (
message_id varchar(150) DEFAULT '' NOT NULL,
app_name varchar(100) DEFAULT 'common' NOT NULL,
lang varchar(5) DEFAULT '' NOT NULL,
content text NOT NULL,
unique(message_id,app_name,lang)
)";
$db->query($sql);
$sql = "CREATE TABLE categories (
cat_id serial,
account_id int DEFAULT '0' NOT NULL,
app_name varchar(25) NOT NULL,
cat_name varchar(150) NOT NULL,
cat_description text NOT NULL
)";
$db->query($sql);
?>

View File

@ -1,132 +0,0 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
function add_default_server_config(){
global $db, $phpgw_info;
$db->query("insert into config (config_name, config_value) values ('default_tplset', 'default')");
$db->query("insert into config (config_name, config_value) values ('temp_dir', '/path/to/tmp')");
$db->query("insert into config (config_name, config_value) values ('files_dir', '/path/to/dir/phpgroupware/files')");
$db->query("insert into config (config_name, config_value) values ('encryptkey', 'change this phrase 2 something else')");
$db->query("insert into config (config_name, config_value) values ('site_title', 'phpGroupWare')");
$db->query("insert into config (config_name, config_value) values ('hostname', 'local.machine.name')");
$db->query("insert into config (config_name, config_value) values ('webserver_url', '/phpgroupware')");
$db->query("insert into config (config_name, config_value) values ('auth_type', 'sql')");
$db->query("insert into config (config_name, config_value) values ('ldap_host', 'localhost')");
$db->query("insert into config (config_name, config_value) values ('ldap_context', 'o=phpGroupWare')");
$db->query("insert into config (config_name, config_value) values ('ldap_encryption_type', 'DES')");
$db->query("insert into config (config_name, config_value) values ('ldap_root_dn', 'cn=Manager,dc=my-domain,dc=com')");
$db->query("insert into config (config_name, config_value) values ('ldap_root_pw', 'secret')");
$db->query("insert into config (config_name, config_value) values ('usecookies', 'True')");
$db->query("insert into config (config_name, config_value) values ('mail_server', 'localhost')");
$db->query("insert into config (config_name, config_value) values ('mail_server_type', 'imap')");
$db->query("insert into config (config_name, config_value) values ('imap_server_type', 'Cyrus')");
$db->query("insert into config (config_name, config_value) values ('mail_suffix', 'yourdomain.com')");
$db->query("insert into config (config_name, config_value) values ('mail_login_type', 'standard')");
$db->query("insert into config (config_name, config_value) values ('smtp_server', 'localhost')");
$db->query("insert into config (config_name, config_value) values ('smtp_port', '25')");
$db->query("insert into config (config_name, config_value) values ('nntp_server', 'yournewsserver.com')");
$db->query("insert into config (config_name, config_value) values ('nntp_port', '119')");
$db->query("insert into config (config_name, config_value) values ('nntp_sender', 'complaints@yourserver.com')");
$db->query("insert into config (config_name, config_value) values ('nntp_organization', 'phpGroupWare')");
$db->query("insert into config (config_name, config_value) values ('nntp_admin', 'admin@yourserver.com')");
$db->query("insert into config (config_name, config_value) values ('nntp_login_username', '')");
$db->query("insert into config (config_name, config_value) values ('nntp_login_password', '')");
$db->query("insert into config (config_name, config_value) values ('charset', 'iso-8859-1')");
$db->query("insert into config (config_name, config_value) values ('default_ftp_server', 'localhost')");
$db->query("insert into config (config_name, config_value) values ('httpproxy_server', '')");
$db->query("insert into config (config_name, config_value) values ('httpproxy_port', '')");
$db->query("insert into config (config_name, config_value) values ('showpoweredbyon', 'bottom')");
$db->query("insert into config (config_name, config_value) values ('checkfornewversion', 'False')");
}
if ($useglobalconfigsettings == "on"){
if (is_file($basedir)){
include ($phpgw_info["server"]["include_root"]."/globalconfig.inc.php");
$db->query("insert into config (config_name, config_value) values ('default_tplset', '".$phpgw_info["server"]["default_tplset"]."')");
$db->query("insert into config (config_name, config_value) values ('temp_dir', '".$phpgw_info["server"]["temp_dir"]."')");
$db->query("insert into config (config_name, config_value) values ('files_dir', '".$phpgw_info["server"]["files_dir"]."')");
$db->query("insert into config (config_name, config_value) values ('encryptkey', '".$phpgw_info["server"]["encryptkey"]."')");
$db->query("insert into config (config_name, config_value) values ('site_title', '".$phpgw_info["server"]["site_title"]."')");
$db->query("insert into config (config_name, config_value) values ('hostname', '".$phpgw_info["server"]["hostname"]."')");
$db->query("insert into config (config_name, config_value) values ('webserver_url', '".$phpgw_info["server"]["webserver_url"].")");
$db->query("insert into config (config_name, config_value) values ('auth_type', '".$phpgw_info["server"]["auth_type"]."')");
$db->query("insert into config (config_name, config_value) values ('ldap_host', '".$phpgw_info["server"]["ldap_host"]."')");
$db->query("insert into config (config_name, config_value) values ('ldap_context', '".$phpgw_info["server"]["ldap_context"]."')");
$db->query("insert into config (config_name, config_value) values ('usecookies', '".$phpgw_info["server"]["usecookies"]."')");
$db->query("insert into config (config_name, config_value) values ('mail_server', '".$phpgw_info["server"]["mail_server"]."')");
$db->query("insert into config (config_name, config_value) values ('mail_server_type', '".$phpgw_info["server"]["mail_server_type"]."')");
$db->query("insert into config (config_name, config_value) values ('imap_server_type', '".$phpgw_info["server"]["imap_server_type"]."')");
$db->query("insert into config (config_name, config_value) values ('mail_suffix', '".$phpgw_info["server"]["mail_suffix"]."')");
$db->query("insert into config (config_name, config_value) values ('mail_login_type', '".$phpgw_info["server"]["mail_login_type"]."')");
$db->query("insert into config (config_name, config_value) values ('smtp_server', '".$phpgw_info["server"]["smtp_server"]."')");
$db->query("insert into config (config_name, config_value) values ('smtp_port', '".$phpgw_info["server"]["smtp_port"]."')");
$db->query("insert into config (config_name, config_value) values ('nntp_server', '".$phpgw_info["server"]["nntp_server"]."')");
$db->query("insert into config (config_name, config_value) values ('nntp_port', '".$phpgw_info["server"]["nntp_port"]."')");
$db->query("insert into config (config_name, config_value) values ('nntp_sender', '".$phpgw_info["server"]["nntp_sender"]."')");
$db->query("insert into config (config_name, config_value) values ('nntp_organization', '".$phpgw_info["server"]["nntp_organization"]."')");
$db->query("insert into config (config_name, config_value) values ('nntp_admin', '".$phpgw_info["server"]["nntp_admin"]."')");
$db->query("insert into config (config_name, config_value) values ('nntp_login_username', '".$phpgw_info["server"]["nntp_login_username"]."')");
$db->query("insert into config (config_name, config_value) values ('nntp_login_password', '".$phpgw_info["server"]["nntp_login_password"]."')");
$db->query("insert into config (config_name, config_value) values ('charset', '".$phpgw_info["server"]["charset"]."')");
$db->query("insert into config (config_name, config_value) values ('default_ftp_server', '".$phpgw_info["server"]["default_ftp_server"]."')");
$db->query("insert into config (config_name, config_value) values ('httpproxy_server', '".$phpgw_info["server"]["httpproxy_server"]."')");
$db->query("insert into config (config_name, config_value) values ('httpproxy_port', '".$phpgw_info["server"]["httpproxy_port"]."')");
$db->query("insert into config (config_name, config_value) values ('showpoweredbyon', '".$phpgw_info["server"]["showpoweredbyon"]."')");
$db->query("insert into config (config_name, config_value) values ('checkfornewversion', '".$phpgw_info["server"]["checkfornewversion"]."')");
}else{
echo "<table border=\"0\" align=\"center\">\n";
echo " <tr bgcolor=\"486591\">\n";
echo " <td colspan=\"2\"><font color=\"fefefe\">&nbsp;<b>Error</b></font></td>\n";
echo " </tr>\n";
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Could not find your old globalconfig.inc.php.<br> You will be required to configure your installation manually.</td>\n";
echo " </tr>\n";
echo "</table>\n";
add_default_server_config();
}
}else{
add_default_server_config();
}
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('admin', 'Administration', 1, 1, NULL, '".$phpgw_info["server"]["version"]."')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('tts', 'Trouble Ticket System', 0, 2, NULL, '0.0.0')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('inv', 'Inventory', 0, 3, NULL, '0.0.0')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('chat', 'Chat', 0, 4, NULL, '0.0.0')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('headlines', 'Headlines', 0, 5, 'news_sites,news_headlines,users_headlines', '0.0.0')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('filemanager', 'File manager', 1, 6, NULL, '".$phpgw_info["server"]["version"]."')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('addressbook', 'Address Book', 1, 7, 'addressbook', '".$phpgw_info["server"]["version"]."')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('todo', 'ToDo List', 1, 8, 'todo', '".$phpgw_info["server"]["version"]."')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('calendar', 'Calendar', 1, 9, 'webcal_entry,webcal_entry_users,webcal_entry_groups,webcal_repeats', '".$phpgw_info["server"]["version"]."')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('email', 'Email', 1, 10,NULL, '".$phpgw_info["server"]["version"]."')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('nntp', 'NNTP', 1, 11, 'newsgroups', '".$phpgw_info["server"]["version"]."')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('cron_apps', 'cron_apps', 0, 0, NULL, '".$phpgw_info["server"]["version"]."')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('weather', 'Weather', 1, 12, NULL, '".$phpgw_info["server"]["version"]."')");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('transy', 'Translation Management', 0, 13, NULL, '".$phpgw_info["server"]["version"]."')");
$db->query("insert into accounts (account_lid,account_pwd,account_firstname,account_lastname,account_permissions,account_groups,account_status) values ('demo','81dc9bdb52d04dc20036dbd8313ed055','Demo','Account',':admin:email:todo:addressbook:calendar:',',1,','A')");
$db->query("insert into groups (group_name) values ('Default')");
$db->query("insert into preferences (preference_owner, preference_name, preference_value, preference_appname) values ('demo','maxmatchs','10','common')");
$db->query("insert into preferences (preference_owner, preference_name, preference_value, preference_appname) values ('demo','mainscreen_showbirthdays','True','common')");
$db->query("insert into preferences (preference_owner, preference_name, preference_value, preference_appname) values ('demo','mainscreen_showevents','True','common')");
$db->query("insert into preferences (preference_owner, preference_name, preference_value, preference_appname) values ('demo','timeformat','12','common')");
$db->query("insert into preferences (preference_owner, preference_name, preference_value, preference_appname) values ('demo','dateformat','m/d/Y','common')");
$db->query("insert into preferences (preference_owner, preference_name, preference_value, preference_appname) values ('demo','theme','default','common')");
$db->query("insert into preferences (preference_owner, preference_name, preference_value, preference_appname) values ('demo','tz_offset','0','common')");
$db->query("insert into preferences (preference_owner, preference_name, preference_value, preference_appname) values ('demo','lang','en','common')");
$db->query("insert into preferences (preference_owner, preference_name, preference_value, preference_appname) values ('demo','firstname','True','addressbook')");
$db->query("insert into preferences (preference_owner, preference_name, preference_value, preference_appname) values ('demo','lastname','True','addressbook')");
$db->query("insert into preferences (preference_owner, preference_name, preference_value, preference_appname) values ('demo','company','True','addressbook')");
$db->query("insert into config (config_name, config_value) values ('phpgroupware_api_version','" . $phpgw_info["server"]["version"] . "')");
?>

View File

@ -1,32 +0,0 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or");at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
$db->query("DROP TABLE config");
$db->query("DROP TABLE applications");
$db->query("DROP TABLE accounts");
$db->query("DROP TABLE groups");
$db->query("DROP TABLE preferences");
$db->query("DROP TABLE sessions");
$db->query("DROP TABLE app_sessions");
$db->query("DROP TABLE access_log");
$db->query("DROP TABLE profiles");
$db->query("DROP TABLE addressbook");
$db->query("DROP TABLE todo");
$db->query("DROP TABLE webcal_entry");
$db->query("DROP TABLE webcal_entry_repeats");
$db->query("DROP TABLE webcal_entry_user");
$db->query("DROP TABLE webcal_entry_groups");
$db->query("DROP TABLE newsgroups");
$db->query("DROP TABLE users_newsgroups");
$db->query("DROP TABLE lang");
?>

View File

@ -1,46 +0,0 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or");at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
$db->query("DROP TABLE config");
$db->query("DROP TABLE applications");
$db->query("drop sequence accounts_account_id_seq");
$db->query("DROP TABLE accounts");
$db->query("drop sequence groups_group_id_seq");
$db->query("DROP TABLE groups");
$db->query("DROP TABLE preferences");
$db->query("DROP TABLE sessions");
$db->query("DROP TABLE app_sessions");
$db->query("DROP TABLE access_log");
$db->query("drop sequence profiles_con_seq");
$db->query("DROP TABLE profiles");
$db->query("drop sequence addressbook_ab_id_seq");
$db->query("DROP TABLE addressbook");
$db->query("drop sequence webcal_entry_cal_id_seq");
$db->query("DROP TABLE todo");
$db->query("DROP TABLE webcal_entry");
$db->query("DROP TABLE webcal_entry_repeats");
$db->query("DROP TABLE webcal_entry_user");
$db->query("DROP TABLE webcal_entry_groups");
$db->query("drop sequence newsgroups_con_seq");
$db->query("DROP TABLE newsgroups");
$db->query("DROP TABLE users_newsgroups");
$db->query("DROP TABLE lang");
?>

View File

@ -17,7 +17,7 @@
$phpgw_info["server"]["api_dir"] = $phpgw_info["server"]["include_root"]."/phpgwapi";
// Authorize the user to use setup app
include("setup_auth.inc.php");
include("inc/setup_auth.inc.php");
// Does not return unless user is authorized
/* Database setup */

View File

@ -1,416 +0,0 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'charset','common','en','iso-8859-1')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'low','common','en','Low')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'forum','common','en','Forum')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'normal','common','en','Normal')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'medium','common','en','Medium')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'high','common','en','High')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'add','common','en','Add')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'create','common','en','Create')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'edit','common','en','Edit')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'copy','common','en','Copy')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'rename','common','en','Rename')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'delete','common','en','Delete')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'done','common','en','Done')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'change','common','en','Change')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'clear form','common','en','Clear Form')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'total','common','en','Total')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'view','common','en','View')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'save','common','en','Save')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'submit','common','en','Submit')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'search','common','en','Search')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'cancel','common','en','Cancel')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'exit','common','en','Exit')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'yes','common','en','Yes')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'no','common','en','No')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'ok','common','en','OK')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'clear','common','en','Clear')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'january','common','en','January')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'february','common','en','February')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'march','common','en','March')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'april','common','en','April')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'may','common','en','May')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'june','common','en','June')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'july','common','en','July')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'august','common','en','August')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'september','common','en','September')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'october','common','en','October')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'november','common','en','November')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'december','common','en','December')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'monday','common','en','Monday')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'tuesday','common','en','Tuesday')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'wednesday','common','en','Wednesday')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'thursday','common','en','Thursday')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'friday','common','en','Friday')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'saturday','common','en','Saturday')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'sunday','common','en','Sunday')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'access','common','en','Access')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'private','common','en','Private')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'access type','common','en','Access type')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'group access','common','en','Group Access')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'global public','common','en','Global Public')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'group public','common','en','Group Public')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'which groups','common','en','which groups')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'created by','common','en','Created By')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'administration','common','en','Administration')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'inventory','common','en','Inventory')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'todo list','common','en','Todo List')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'calendar','common','en','calendar')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'bookmarks','common','en','Bookmarks')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'addressbook','common','en','Addressbook')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'e-mail','common','en','E-Mail')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'chat','common','en','Chat')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'preferences','common','en','Preferences')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'login','common','en','Login')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'logout','common','en','Logout')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'first name','common','en','First name')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'last name','common','en','Last name')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'admin','common','en','Admin')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'email','common','en','E-Mail')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'headlines','common','en','Headlines')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'nntp','common','en','NNTP')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'groups','common','en','Groups')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'book marks','common','en','Book marks')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'name','common','en','Name')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'file manager','common','en','File manager')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'ftp','common','en','FTP')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'password','common','en','Password')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'date','common','en','Date')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'time','common','en','Time')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'priority','common','en','Priority')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'help','common','en','Help')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'error','common','en','Error')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'updated','common','en','Updated')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'home','common','en','Home')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'users','common','en','users')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'news headlines','common','en','News headlines')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'news reader','common','en','News Reader')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'human resources','common','en','Human Resources')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'address book','common','en','Address Book')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'current users','common','en','Current users')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'first page','common','en','first page')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'next page','common','en','next page')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'last page','common','en','last page')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'previous page','common','en','Previous page')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'filter','common','en','Filter')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'show all','common','en','show all')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'only yours','common','en','only yours')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'print','common','en','Print')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'trouble ticket system','common','en','Trouble Ticket System')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you are required to change your password during your first login','common','en','You are required to change your password during your first login')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'powered by phpgroupware version x','common','en','Powered by <a href=http://www.phpgroupware.org>phpGroupWare</a> version %1')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'sorry, there was a problem processing your request.','common','en','Sorry, there was a problem processing your request.')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'your message has been sent','common','en','Your message has been sent')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'new entry added sucessfully','common','en','New entry added sucessfully')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'entry updated sucessfully','common','en','Entry updated sucessfully')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'entry has been deleted sucessfully','common','en','Entry has been deleted sucessfully')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'password has been updated','common','en','Password has been updated')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'session has been killed','common','en','Session has been killed')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'account has been updated','common','en','Account has been updated')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'account has been created','common','en','Account has been created')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'account has been deleted','common','en','Account has been deleted')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'error creating x x directory','common','en','Error creating %1%2 directory')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'error deleting x x directory','common','en','Error deleting %1%2 directory')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'error renaming x x directory','common','en','Error renaming %1%2 directory')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'please x by hand','common','en','Please %1 by hand')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'to correct this error for the future you will need to properly set the','common','en','To correct this error for the future you will need to properly set the')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'permissions to the files/users directory','common','en','permissions to the files/users directory')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'On *nix systems please type: x','common','en','On *nix systems please type: %1')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'your settings have been updated','common','en','Your settings have been Updated')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'group has been added','common','en','Group has been added')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'group has been deleted','common','en','Group has been deleted')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'group has been updated','common','en','Group has been updated')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'showing x - x of x','common','en','showing %1 - %2 of %3')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'showing x','common','en','showing %1')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'your search returned 1 match','common','en','your search returned 1 match')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'your search returned x matchs','common','en','your search returned %1 matchs')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you have 1 new message!','common','en','You have 1 new message!')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you have x new messages!','common','en','You have %1 new messages!')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'today is x\'s birthday!','common','en','Today is %1\'s birthday!')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'tommorow is x\'s birthday.','common','en','Tommorow is %1\'s birthday.')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you have 1 high priority event on your calendar today.','common','en','You have 1 high priority event on your calendar today.')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you have x high priority events on your calendar today.','common','en','You have %1 high priority events on your calendar today.')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'it has been more then x days since you changed your password','common','en','It has been more then %1 days since you changed your password')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'are you sure you want to delete this entry ?','common','en','Are you sure you want to delete this entry ?')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'username','login','en','Username')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'password','login','en','Password')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'login','login','en','Login')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'use cookies','login','en','use cookies')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you have been successfully logged out','login','en','You have been successfully logged out')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'sorry, your login has expired','login','en','Sorry, your login has expired')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'bad login or password','login','en','Bad login or password')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'your session could not be verified.','login','en','Your session could not be verified.')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'address book','addressbook','en','Address Book')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'last name','addressbook','en','Last Name')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'first name','addressbook','en','First Name')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'e-mail','addressbook','en','E-Mail')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'home phone','addressbook','en','Home Phone')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'fax','addressbook','en','Fax')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'work phone','addressbook','en','Work Phone')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'pager','addressbook','en','Pager')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'mobile','addressbook','en','Mobile')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'other number','addressbook','en','Other Number')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'street','addressbook','en','Street')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'birthday','addressbook','en','Birthday')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'city','addressbook','en','City')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'state','addressbook','en','State')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'zip code','addressbook','en','ZIP Code')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'notes','addressbook','en','Notes')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'company name','addressbook','en','company name')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'last x logins','admin','en','Last %1 logins')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'loginid','admin','en','LoginID')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'ip','admin','en','IP')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'total records','admin','en','Total records')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'user accounts','admin','en','User accounts')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'new group name','admin','en','New group name')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'create group','admin','en','Create Group')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'kill','admin','en','Kill')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'idle','admin','en','idle')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'login time','admin','en','Login Time')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'anonymous user','admin','en','Anonymous user')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'manager','admin','en','Manager')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'account active','admin','en','Account active')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 're-enter password','admin','en','Re-enter password')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'group name','admin','en','Group Name')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'display','admin','en','Display')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'base url','admin','en','Base URL')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'news file','admin','en','News File')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'minutes between reloads','admin','en','Minutes between Reloads')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'listings displayed','admin','en','Listings Displayed')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'news type','admin','en','News Type')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'user groups','admin','en','User groups')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'headline sites','admin','en','Headline Sites')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'network news','admin','en','Network News')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'site','admin','en','Site')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'view sessions','admin','en','View sessions')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'view access log','admin','en','View Access Log')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'active','admin','en','Active')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'disabled','admin','en','Disabled')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'last time read','admin','en','Last Time Read')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'permissions','admin','en','Permissions')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'title','admin','en','Title')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'enabled','admin','en','Enabled')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'applications','admin','en','Applications')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'edit group','admin','en','Edit Group')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'submit changes','admin','en','Submit Changes')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you must add at least 1 permission to this account','admin','en','You must add at least 1 permission to this account')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'installed applications','admin','en','Installed applications')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'remove all users from this group','admin','en','Remove all users from this group')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'permissions this group has','admin','en','Permissions this group has')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'select permissions this group will have','admin','en','Select permissions this group will have')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'sorry, that group name has already been taking.','admin','en','Sorry, that group name has already been taking.')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'add new application','admin','en','Add new application')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'application name','admin','en','Application name')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'application title','admin','en','Application title')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'edit application','admin','en','Edit application')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you must enter an application name and title.','admin','en','You must enter an application name and title.')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'are you sure you want to delete this application ?','admin','en','Are you sure you want to delete this application ?')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'are you sure you want to delete this group ?','admin','en','Are you sure you want to delete this group ?')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'are you sure you want to kill this session ?','admin','en','Are you sure you want to kill this session ?')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'all records and account information will be lost!','admin','en','All records and account information will be lost!')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'are you sure you want to delete this account ?','admin','en','Are you sure you want to delete this account ?')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'are you sure you want to delete this news site ?','admin','en','Are you sure you want to delete this news site ?')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'percent of users that logged out','admin','en','Percent of users that logged out')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'list of current users','admin','en','list of current users')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'new password [ leave blank for no change ]','admin','en','New password [ Leave blank for no change ]')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'the two passwords are not the same','admin','en','The two passwords are not the same')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'the login and password can not be the same','admin','en','The login and password can not be the same')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you must enter a password','admin','en','You must enter a password')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'that loginid has already been taken','admin','en','That loginid has already been taken')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you must enter a display','admin','en','You must enter a display')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you must enter a base url','admin','en','You must enter a base url')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you must enter a news url','admin','en','You must enter a news url')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you must enter the number of minutes between reload','admin','en','You must enter the number of minutes between reload')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you must enter the number of listings display','admin','en','You must enter the number of listings display')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you must select a file type','admin','en','You must select a file type')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'that site has already been entered','admin','en','That site has already been entered')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'select users for inclusion','admin','en','Select users for inclusion')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'sorry, the follow users are still a member of the group x','admin','en','Sorry, the follow users are still a member of the group %1')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'they must be removed before you can continue','admin','en','They must be removed before you can continue')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'today','calendar','en','Today')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'this week','calendar','en','This week')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'this month','calendar','en','This month')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'generate printer-friendly version','calendar','en','Generate printer-friendly version')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'printer friendly','calendar','en','Printer Friendly')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you have not entered a\\nbrief description','calendar','en','You have not entered a\\nBrief Description')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you have not entered a\\nvalid time of day.','calendar','en','You have not entered a\\nvalid time of day.')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'are you sure\\nyou want to\\ndelete this entry ?','calendar','en','Are you sure\\nyou want to\\ndelete this entry ?')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'participants','calendar','en','Participants')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'calendar - edit','calendar','en','Calendar - Edit')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'calendar - add','calendar','en','Calendar - Add')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'brief description','calendar','en','Brief Description')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'full description','calendar','en','Full Description')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'duration','calendar','en','Duration')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'minutes','calendar','en','minutes')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'repeat type','calendar','en','Repeat type')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'none','calendar','en','None')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'daily','calendar','en','Daily')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'weekly','calendar','en','weekly')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'monthly (by day)','calendar','en','Monthly (by day)')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'monthly (by date)','calendar','en','Monthly (by date)')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'yearly','calendar','en','Yearly')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'repeat end date','calendar','en','Repeat End date')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'use end date','calendar','en','Use End date')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'repeat day','calendar','en','Repeat day')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( '(for weekly)','calendar','en','(for Weekly)')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'frequency','calendar','en','Frequency')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'sun','calendar','en','Sun')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'mon','calendar','en','Mon')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'tue','calendar','en','Tue')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'wed','calendar','en','Wed')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'thu','calendar','en','Thu')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'fri','calendar','en','Fri')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'sat','calendar','en','Sat')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'su','calendar','en','Su')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'mo','calendar','en','M')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'tu','calendar','en','T')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'we','calendar','en','W')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'th','calendar','en','T')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'fr','calendar','en','F')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'sa','calendar','en','Sa')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'search results','calendar','en','Search Results')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'no matches found.','calendar','en','No matches found.')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( '1 match found','calendar','en','1 match found')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'x matches found','calendar','en','%1 matches found')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'description','calendar','en','Description')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'repetition','calendar','en','Repetition')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'days repeated','calendar','en','days repeated')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'go!','calendar','en','Go!')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'year','calendar','en','Year')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'month','calendar','en','Month')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'week','calendar','en','Week')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'new entry','calendar','en','New Entry')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'view this entry','calendar','en','View this entry')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'the following conflicts with the suggested time:<ul>x</ul>','calendar','en','The following conflicts with the suggested time:<ul>%1</ul>')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'your suggested time of <B> x - x </B> conflicts with the following existing calendar entries:','calendar','en','Your suggested time of <B> %1 - %2 </B> conflicts with the following existing calendar entries:')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you must enter one or more search keywords','calendar','en','You must enter one or more search keywords')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'are you sure\\nyou want to\\ndelete this entry ?\\n\\nthis will delete\\nthis entry for all users.','calendar','en','Are you sure\\nyou want to\\ndelete this entry ?\\n\\nThis will delete\\nthis entry for all users.')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'a','calendar','en','')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'reply','email','en','Reply')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'reply all','email','en','Reply All')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'forward','email','en','Forward')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'delete','email','en','Delete')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'previous','email','en','Previous')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'next','email','en','Next')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'from','email','en','From')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'to','email','en','To')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'cc','email','en','CC')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'files','email','en','Files')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'date','email','en','Date')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'send','email','en','Send')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'subject','email','en','Subject')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'folder','email','en','Folder')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'size','email','en','Size')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'section','email','en','Section')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'image','email','en','Image')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'no subject','email','en','No Subject')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'compose','email','en','Compose')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'message','email','en','Message')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'messages','email','en','Messages')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'new message','email','en','New message')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'undisclosed sender','email','en','Undisclosed Sender')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'undisclosed recipients','email','en','Undisclosed Recipients')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'please select a message first','email','en','Please select a message first')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'this folder is empty','email','en','This folder is empty')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'switch current folder to','email','en','Switch Current Folder To')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'move selected messages into','email','en','Move Selected Messages into')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'add to addressbook','email','en','Add to addressbook')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( '1 message has been deleted','email','en','1 message has been deleted')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'x messages have been deleted','email','en','%1 messages have been deleted')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'monitor','email','en','Monitor')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'usersfile_perm_error','filemanager','en','To correct this error you will need to properly set the permissions to the files/users directory.<BR> On *nix systems please type: chmod 707')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'groupsfile_perm_error','filemanager','en','To correct this error you will need to properly set the permissions to the files/groups directory.<BR> On *nix systems please type: chmod 707')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'private_files','filemanager','en','Private files')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'group_files','filemanager','en','group files')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'files','filemanager','en','Files')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'new_file','filemanager','en','New File')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'rename_to','filemanager','en','Rename to')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'file_upload','filemanager','en','File Upload')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'current_file','filemanager','en','Current File')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'clipboard_contents','filemanager','en','Clipboard Contents')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'copy_as','filemanager','en','Copy as')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'create','filemanager','en','Create')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'edit','filemanager','en','Edit')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'copy','filemanager','en','Copy')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'delete','filemanager','en','Delete')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'do_delete','filemanager','en','Delete')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'rename','filemanager','en','Rename')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'download','filemanager','en','Download')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'upload','filemanager','en','Upload')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'save','filemanager','en','Save')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'exit','filemanager','en','Exit')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'cancel','filemanager','en','Cancel')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'specify_file_name','filemanager','en','You must specify a name for the file you wish to create')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'no_file_name','filemanager','en','No filename was specified')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'err_saving_file','filemanager','en','Error saving file to disk')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'yes','filemanager','en','Yes')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'no','filemanager','en','No')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'newsgroups','nntp','en','Newsgroups')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'update','nntp','en','Update')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'show all groups','nntp','en','Show All Groups')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'available groups','nntp','en','Available Groups')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'show groups containing','nntp','en','Show Groups Containing')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'next','nntp','en','Next')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'threads','nntp','en','Threads')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'message x','nntp','en','Message %1')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'author','nntp','en','Author')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'subject','nntp','en','Subject')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'date','nntp','en','Date')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'monitor','nntp','en','Monitor')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'max matchs per page','preferences','en','Max matches per page')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'time zone offset','preferences','en','Time zone offset')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'this server is located in the x timezone','preferences','en',' timezone')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'date format','preferences','en','Date format')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'time format','preferences','en','Time format')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'language','preferences','en','Language')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'default sorting order','preferences','en','Default sorting order')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'default application','preferences','en','Default application')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'show text on navigation icons','preferences','en','Show text on navigation icons')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'show current users on navigation bar','preferences','en','Show current users on navigation bar')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'show new messages on main screen','preferences','en','Show new messages on main screen')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'email signature','preferences','en','E-Mail signature')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'show birthday reminders on main screen','preferences','en','Show birthday reminiders on main screen')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'show high priority events on main screen','preferences','en','Show high priority events on main screen')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'weekday starts on','preferences','en','Weekday starts on')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'work day starts on','preferences','en','Work day starts on')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'work day ends on','preferences','en','Work day ends on')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'select headline news sites','preferences','en','Select Headline News sites')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'change your password','preferences','en','Change your Password')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'select different theme','preferences','en','Select different Theme')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'change your settings','preferences','en','Change your Settings')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'change your profile','preferences','en','Change your profile')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'enter your new password','preferences','en','Enter your new password')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 're-enter your password','preferences','en','Re-Enter your password')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'the two passwords are not the same','preferences','en','The two passwords are not the same')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you must enter a password','preferences','en','You must enter a password')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'your current theme is: x','preferences','en','</b>')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'please, select a new theme','preferences','en','Please, select a new theme')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'note: this feature does *not* change your email password. this will need to be done manually.','preferences','en','Note: This feature does *not* change your email password. This will need to be done manually.')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'monitor newsgroups','preferences','en','Monitor Newsgroups')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'todo list - add','todo','en','todo list - add')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'todo list - edit','todo','en','Todo list - edit')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'todo list','todo','en','Todo list')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'todo','todo','en','todo')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'status','todo','en','Status')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'urgency','todo','en','Urgency')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'completed','todo','en','completed')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'last updated','todo','en','Last Updated')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'access type','todo','en','Access type')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'which groups','todo','en','Which groups')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'clear form','todo','en','Clear form')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'date due','todo','en','Date Due')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'created by','todo','en','Created By')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'you have entered an invailed date','todo','en','you have entered an invailed date')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'are you sure you want to delete this entry','todo','en','Are you sure you want to delete this entry?')");
@$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'weather','Weather','en','weather')");

View File

@ -1,354 +0,0 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
function update_version_table($tableschanged = True){
global $currentver, $phpgw_info, $db, $tablechanges;
if ($tableschanged == True){$tablechanges = True;}
$db->query("update applications set app_version='".$currentver."' where (app_name='admin' or app_name='filemanager' or app_name='addressbook' or app_name='todo' or app_name='calendar' or app_name='email' or app_name='nntp' or app_name='cron_apps')");
}
function v7122000to8032000(){
global $currentver, $db;
if ($currentver == "7122000"){
echo " <tr bgcolor=\"e6e6e6\">\n";
// echo " <td>Upgrade from 7122000 to 8032000 is completed.</td>\n";
echo " <td>Upgrading from 7122000 is not yet ready.<br> You can do this manually if you choose, otherwise dump your tables and start over.</td>\n";
echo " </tr>\n";
$currentver = "8032000";
}
}
function v8032000to8072000(){
global $currentver, $db;
if ($currentver == "8032000"){
echo " <tr bgcolor=\"e6e6e6\">\n";
// echo " <td>Upgrade from 8032000 to 8072000 is completed.</td>\n";
echo " <td>Upgrading from 8032000 is not yet ready.<br> You can do this manually if you choose, otherwise dump your tables and start over.</td>\n";
echo " </tr>\n";
$currentver = "8072000";
}
}
function v8072000to8212000(){
global $currentver, $db;
if ($currentver == "8072000"){
$sql = "CREATE TABLE applications ("
."app_name varchar(25) NOT NULL,"
."app_title varchar(50),"
."app_enabled int,"
."UNIQUE app_name (app_name)"
.")";
$db->query($sql);
$db->query("insert into applications (app_name, app_title, app_enabled) values ('admin', 'Administration', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('tts', 'Trouble Ticket System', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('inv', 'Inventory', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('chat', 'Chat', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('headlines', 'Headlines', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('filemanager', 'File manager', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('ftp', 'FTP', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('addressbook', 'Address Book', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('todo', 'ToDo List', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('calendar', 'Calendar', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('email', 'Email', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('nntp', 'NNTP', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('bookmarks', 'Bookmarks', 0)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('cron_apps', 'cron_apps', 0)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('napster', 'Napster', 0)");
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 8072000 to 8212000 is completed.</td>\n";
echo " </tr>\n";
$currentver = "8212000";
}
}
function v8212000to9052000(){
global $currentver, $db;
if ($currentver == "8212000"){
$db->query("alter table chat_channel change name name varchar(10) not null");
$db->query("alter table chat_messages change channel channel char(20) not null");
$db->query("alter table chat_messages change loginid loginid varchar(20) not null");
$db->query("alter table chat_currentin change loginid loginid varchar(25) not null");
$db->query("alter table chat_currentin change channel channel char(20)");
$db->query("alter table chat_privatechat change user1 user1 varchar(25) not null");
$db->query("alter table chat_privatechat change user2 user2 varchar(25) not null");
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 8212000 to 9052000 is completed.</td>\n";
echo " </tr>\n";
$currentver = "9052000";
}
}
function v9052000to9072000(){
global $currentver, $db;
if ($currentver == "9052000"){
echo " <tr bgcolor=\"e6e6e6\">\n";
// echo " <td>Upgrade from 9052000 to 9072000 is completed.</td>\n";
echo " <td>Upgrading from 9052000 is not available.<br> I dont believe there were any changes, so this should be fine.</td>\n";
echo " </tr>\n";
$currentver = "9072000";
}
}
function v9072000to0_9_1(){
global $currentver, $phpgw_info, $db;
if ($currentver == "9072000"){
$db->query("alter table accounts change con account_id int(11) DEFAULT '0' NOT NULL auto_increment");
$db->query("alter table accounts change loginid account_lid varchar(25) NOT NULL");
$db->query("alter table accounts change passwd account_pwd varchar(32) NOT NULL");
$db->query("alter table accounts change firstname account_firstname varchar(50)");
$db->query("alter table accounts change lastname account_lastname varchar(50)");
$db->query("alter table accounts change permissions account_permissions text");
$db->query("alter table accounts change groups account_groups varchar(30)");
$db->query("alter table accounts change lastlogin account_lastlogin int(11)");
$db->query("alter table accounts change lastloginfrom account_lastloginfrom varchar(255)");
$db->query("alter table accounts change lastpasswd_change account_lastpwd_change int(11)");
$db->query("alter table accounts change status account_status enum('A','L') DEFAULT 'A' NOT NULL");
$db->query("alter table applications add app_order int");
$db->query("alter table applications add app_tables varchar(255)");
$db->query("alter table applications add app_version varchar(20) not null default '0.0'");
$db->query("alter table preferences change owner preference_owner varchar(20)");
$db->query("alter table preferences change name preference_name varchar(50)");
$db->query("alter table preferences change value preference_value varchar(50)");
$db->query("alter table preferences add preference_appname varchar(50) default ''");
$db->query("alter table sessions change sessionid session_id varchar(255) NOT NULL");
$db->query("alter table sessions change loginid session_lid varchar(20)");
$db->query("alter table sessions change passwd session_pwd varchar(255)");
$db->query("alter table sessions change ip session_ip varchar(255)");
$db->query("alter table sessions change logintime session_logintime int(11)");
$db->query("alter table sessions change dla session_dla int(11)");
$db->query("alter table todo change con todo_id int(11)");
$db->query("alter table todo change owner todo_owner varchar(25)");
$db->query("alter table todo change access todo_access varchar(255)");
$db->query("alter table todo change des todo_des text");
$db->query("alter table todo change pri todo_pri int(11)");
$db->query("alter table todo change status todo_status int(11)");
$db->query("alter table todo change datecreated todo_datecreated int(11)");
$db->query("alter table todo change datedue todo_datedue int(11)");
// The addressbook section is missing.
$db->query("update applications set app_order=1,app_tables=NULL where app_name='admin'");
$db->query("update applications set app_order=2,app_tables=NULL where app_name='tts'");
$db->query("update applications set app_order=3,app_tables=NULL where app_name='inv'");
$db->query("update applications set app_order=4,app_tables=NULL where app_name='chat'");
$db->query("update applications set app_order=5,app_tables='news_sites,news_headlines,users_headlines' where app_name='headlines'");
$db->query("update applications set app_order=6,app_tables=NULL where app_name='filemanager'");
$db->query("update applications set app_order=7,app_tables='addressbook' where app_name='addressbook'");
$db->query("update applications set app_order=8,app_tables='todo' where app_name='todo'");
$db->query("update applications set app_order=9,app_tables='webcal_entry,webcal_entry_users,webcal_entry_groups,webcal_repeats' where app_name='calendar'");
$db->query("update applications set app_order=10,app_tables=NULL where app_name='email'");
$db->query("update applications set app_order=11,app_tables='newsgroups,users_newsgroups' where app_name='nntp'");
$db->query("update applications set app_order=0,app_tables=NULL where app_name='cron_apps'");
$sql = "CREATE TABLE config ("
."config_name varchar(25) NOT NULL,"
."config_value varchar(100),"
."UNIQUE config_name (config_name)"
.")";
$db->query($sql);
$db->query("insert into config (config_name, config_value) values ('default_tplset', 'default')");
$db->query("insert into config (config_name, config_value) values ('temp_dir', '/path/to/tmp')");
$db->query("insert into config (config_name, config_value) values ('files_dir', '/path/to/dir/phpgroupware/files')");
$db->query("insert into config (config_name, config_value) values ('encryptkey', 'change this phrase 2 something else'");
$db->query("insert into config (config_name, config_value) values ('site_title', 'phpGroupWare')");
$db->query("insert into config (config_name, config_value) values ('hostname', 'local.machine.name')");
$db->query("insert into config (config_name, config_value) values ('webserver_url', '/phpgroupware')");
$db->query("insert into config (config_name, config_value) values ('auth_type', 'sql')");
$db->query("insert into config (config_name, config_value) values ('ldap_host', 'localhost')");
$db->query("insert into config (config_name, config_value) values ('ldap_context', 'o=phpGroupWare')");
$db->query("insert into config (config_name, config_value) values ('usecookies', 'True')");
$db->query("insert into config (config_name, config_value) values ('mail_server', 'localhost')");
$db->query("insert into config (config_name, config_value) values ('mail_server_type', 'imap')");
$db->query("insert into config (config_name, config_value) values ('imap_server_type', 'Cyrus')");
$db->query("insert into config (config_name, config_value) values ('mail_suffix', 'yourdomain.com')");
$db->query("insert into config (config_name, config_value) values ('mail_login_type', 'standard')");
$db->query("insert into config (config_name, config_value) values ('smtp_server', 'localhost')");
$db->query("insert into config (config_name, config_value) values ('smtp_port', '25')");
$db->query("insert into config (config_name, config_value) values ('nntp_server', 'yournewsserver.com')");
$db->query("insert into config (config_name, config_value) values ('nntp_port', '119')");
$db->query("insert into config (config_name, config_value) values ('nntp_sender', 'complaints@yourserver.com')");
$db->query("insert into config (config_name, config_value) values ('nntp_organization', 'phpGroupWare')");
$db->query("insert into config (config_name, config_value) values ('nntp_admin', 'admin@yourserver.com')");
$db->query("insert into config (config_name, config_value) values ('nntp_login_username', '')");
$db->query("insert into config (config_name, config_value) values ('nntp_login_password', '')");
$db->query("insert into config (config_name, config_value) values ('default_ftp_server', 'localhost')");
$db->query("insert into config (config_name, config_value) values ('httpproxy_server', '')");
$db->query("insert into config (config_name, config_value) values ('httpproxy_port', '')");
$db->query("insert into config (config_name, config_value) values ('showpoweredbyon', 'bottom')");
$db->query("insert into config (config_name, config_value) values ('checkfornewversion', 'False')");
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 9072000 to 0.9.1 is completed.</td>\n";
echo " </tr>\n";
$currentver = "0.9.1";
update_version_table();
}
}
function v0_9_1to0_9_2(){
global $currentver, $phpgw_info, $db;
if ($currentver == "0.9.1"){
$db->query("alter table access_log change lo lo varchar(255)");
$db->query("alter table addressbook change ab_id ab_id int(11) NOT NULL auto_increment");
$db->query("alter table addressbook add ab_company_id int(10) unsigned");
$db->query("alter table addressbook add ab_title varchar(60)");
$db->query("alter table addressbook add ab_address2 varchar(60)");
$sql = "CREATE TABLE customers (
company_id int(10) unsigned NOT NULL auto_increment,
company_name varchar(255),
website varchar(80),
ftpsite varchar(80),
industry_type varchar(50),
status varchar(30),
software varchar(40),
lastjobnum int(10) unsigned,
lastjobfinished date,
busrelationship varchar(30),
notes text,
PRIMARY KEY (company_id)
);";
$db->query($sql);
$db->query("update lang set lang='da' where lang='dk'");
$db->query("update lang set lang='ko' where lang='kr'");
$db->query("update preferences set preference_name='da' where preference_name='dk'");
$db->query("update preferences set preference_name='ko' where preference_name='kr'");
//install weather support
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('weather', 'Weather', 1, 12, NULL, '".$phpgw_info["server"]["version"]."')");
$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'weather','Weather','en','weather')");
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.1 to 0.9.2 is completed.</td>\n";
echo " </tr>\n";
$currentver = "0.9.2";
update_version_table();
}
}
function v0_9_2to0_9_3update_owner($table,$field){
global $db;
$db->query("select distinct($field) from $table");
if ($db->num_rows()) {
while($db->next_record()) {
$owner[count($owner)] = $db->f($field);
}
for($i=0;$i<count($owner);$i++) {
$db->query("select account_id from accounts where account_lid='".$owner[$i]."'");
$db->next_record();
$db->query("update $table set $field=".$db->f("account_id")." where $field='".$owner[$i]."'");
}
}
$db->query("alter table $table change $field $field int(11) NOT NULL");
}
function v0_9_2to0_9_3(){
global $currentver, $phpgw_info, $db;
// The 0.9.3pre1 is only temp until release
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1" || $currentver == "0.9.3pre2" || $currentver == "0.9.3pre3" || $currentver == "0.9.3pre4" || $currentver == "0.9.3pre5" || $currentver == "0.9.3pre6") {
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1") {
v0_9_2to0_9_3update_owner("addressbook","ab_owner");
v0_9_2to0_9_3update_owner("todo","todo_owner");
v0_9_2to0_9_3update_owner("webcal_entry","cal_create_by");
v0_9_2to0_9_3update_owner("webcal_entry_user","cal_login");
$currentver = "0.9.3pre2";
update_version_table();
}
if ($currentver == "0.9.3pre2") {
$db->query("select owner, newsgroup from users_newsgroups");
if($db->num_rows()) {
while($db->next_record()) {
$owner[count($owner)] = $db->f("owner");
$newsgroup[count($newsgroup)] = $db->f("newsgroup");
}
for($i=0;$i<count($owner);$i++) {
$db->query("insert into preferences (preference_owner,preference_name,"
."preference_value,preference_appname) values ('".$owner[$i]."','".$newsgroup[$i]."','True',"
."'nntp')");
}
$db->query("drop table users_newsgroups");
$db->query("update applications set app_tables='newsgroups' where app_name='nntp'");
}
$currentver = "0.9.3pre3";
update_version_table();
}
if ($currentver == "0.9.3pre3") {
$db->query("alter table todo add todo_id_parent int(11) DEFAULT '0' NOT NULL");
$currentver = "0.9.3pre4";
update_version_table();
}
if ($currentver == "0.9.3pre4") {
$db->query("alter table config change config_name config_name varchar(255) NOT NULL");
// I decied too hold off on this table until 0.9.4pre1 (jengo)
// $db->query("create table domains (domain_id int NOT NULL auto_increment, domain_name varchar(255),"
// . "domain_database varchar(255),domain_status enum('Active,Disabled'),primary key(domain_id))");
$currentver = "0.9.3pre5";
update_version_table();
}
if ($currentver == "0.9.3pre5") {
$db->query("CREATE TABLE categories (
cat_id int(9) DEFAULT '0' NOT NULL auto_increment,
account_id int(11) DEFAULT '0' NOT NULL,
app_name varchar(25) NOT NULL,
cat_name varchar(150) NOT NULL,
cat_description text NOT NULL,
PRIMARY KEY (cat_id))"
);
$currentver = "0.9.3pre6";
update_version_table();
}
if ($currentver == "0.9.3pre6") {
$db->query("alter table addressbook add ab_url varchar(255)");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('transy', 'Translation Management', 0, 13, NULL, '".$phpgw_info["server"]["version"]."')");
$currentver = "0.9.3pre7";
update_version_table();
}
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.2 to $currentver is completed.</td>\n";
echo " </tr>\n";
}
}
echo "<table border=\"0\" align=\"center\">\n";
echo " <tr bgcolor=\"486591\">\n";
echo " <td colspan=\"2\"><font color=\"fefefe\">&nbsp;<b>Table Upgrades</b></font></td>\n";
echo " </tr>\n";
v7122000to8032000();
v8032000to8072000();
v8072000to8212000();
v8212000to9052000();
v9052000to9072000();
v9072000to0_9_1();
v0_9_1to0_9_2();
v0_9_2to0_9_3();
$db->query("update config set config_value='" . $phpgw_info["server"]["version"] . "' where "
. "config_name='phpgroupware_api_version'");
if (!$tablechanges == True){
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>No table changes were needed. The script only updated your version setting.</td>\n";
echo " </tr>\n";
}
echo "</table>\n";
?>

View File

@ -1,343 +0,0 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
function v7122000to8032000(){
global $currentver, $db;
$didupgrade = True;
if ($currentver == "7122000"){
echo " <tr bgcolor=\"e6e6e6\">\n";
// echo " <td>Upgrade from 7122000 to 8032000 is completed.</td>\n";
echo " <td>Upgrading from 7122000 is not yet ready.<br> You can do this manually if you choose, otherwise dump your tables and start over.</td>\n";
echo " </tr>\n";
$currentver = "8032000";
}
}
function v8032000to8072000(){
global $currentver, $db;
$didupgrade = True;
if ($currentver == "8032000"){
echo " <tr bgcolor=\"e6e6e6\">\n";
// echo " <td>Upgrade from 8032000 to 8072000 is completed.</td>\n";
echo " <td>Upgrading from 8032000 is not yet ready.<br> You can do this manually if you choose, otherwise dump your tables and start over.</td>\n";
echo " </tr>\n";
$currentver = "8072000";
}
}
function v8072000to8212000(){
global $currentver, $db;
$didupgrade = True;
if ($currentver == "8072000"){
$sql = "CREATE TABLE applications ("
."app_name varchar(25) NOT NULL,"
."app_title varchar(50),"
."app_enabled int,"
."UNIQUE app_name (app_name)"
.")";
$db->query($sql);
$db->query("insert into applications (app_name, app_title, app_enabled) values ('admin', 'Administration', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('tts', 'Trouble Ticket System', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('inv', 'Inventory', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('chat', 'Chat', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('headlines', 'Headlines', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('filemanager', 'File manager', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('ftp', 'FTP', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('addressbook', 'Address Book', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('todo', 'ToDo List', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('calendar', 'Calendar', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('email', 'Email', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('nntp', 'NNTP', 1)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('bookmarks', 'Bookmarks', 0)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('cron_apps', 'cron_apps', 0)");
$db->query("insert into applications (app_name, app_title, app_enabled) values ('napster', 'Napster', 0)");
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 8072000 to 8212000 is completed.</td>\n";
echo " </tr>\n";
$currentver = "8212000";
}
}
function v8212000to9052000(){
global $currentver, $db;
$didupgrade = True;
if ($currentver == "8212000"){
$db->query("alter table chat_channel change name name varchar(10) not null");
$db->query("alter table chat_messages change channel channel char(20) not null");
$db->query("alter table chat_messages change loginid loginid varchar(20) not null");
$db->query("alter table chat_currentin change loginid loginid varchar(25) not null");
$db->query("alter table chat_currentin change channel channel char(20)");
$db->query("alter table chat_privatechat change user1 user1 varchar(25) not null");
$db->query("alter table chat_privatechat change user2 user2 varchar(25) not null");
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 8212000 to 9052000 is completed.</td>\n";
echo " </tr>\n";
$currentver = "9052000";
}
}
function v9052000to9072000(){
global $currentver, $db;
$didupgrade = True;
if ($currentver == "9052000"){
echo " <tr bgcolor=\"e6e6e6\">\n";
// echo " <td>Upgrade from 9052000 to 9072000 is completed.</td>\n";
echo " <td>Upgrading from 9052000 is not available.<br> I dont believe there were any changes, so this should be fine.</td>\n";
echo " </tr>\n";
$currentver = "9072000";
}
}
function v9072000to0_9_1(){
global $currentver, $phpgw_info, $db;
$didupgrade = True;
if ($currentver == "9072000"){
$db->query("alter table accounts change con account_id int(11) DEFAULT '0' NOT NULL auto_increment");
$db->query("alter table accounts change loginid account_lid varchar(25) NOT NULL");
$db->query("alter table accounts change passwd account_pwd varchar(32) NOT NULL");
$db->query("alter table accounts change firstname account_firstname varchar(50)");
$db->query("alter table accounts change lastname account_lastname varchar(50)");
$db->query("alter table accounts change permissions account_permissions text");
$db->query("alter table accounts change groups account_groups varchar(30)");
$db->query("alter table accounts change lastlogin account_lastlogin int(11)");
$db->query("alter table accounts change lastloginfrom account_lastloginfrom varchar(255)");
$db->query("alter table accounts change lastpasswd_change account_lastpwd_change int(11)");
$db->query("alter table accounts change status account_status enum('A','L') DEFAULT 'A' NOT NULL");
$db->query("alter table applications add app_order int");
$db->query("alter table applications add app_tables varchar(255)");
$db->query("alter table applications add app_version varchar(20) not null default '0.0'");
$db->query("alter table preferences change owner preference_owner varchar(20)");
$db->query("alter table preferences change name preference_name varchar(50)");
$db->query("alter table preferences change value preference_value varchar(50)");
$db->query("alter table preferences add preference_appname varchar(50) default ''");
$db->query("alter table sessions change sessionid session_id varchar(255) NOT NULL");
$db->query("alter table sessions change loginid session_lid varchar(20)");
$db->query("alter table sessions change passwd session_pwd varchar(255)");
$db->query("alter table sessions change ip session_ip varchar(255)");
$db->query("alter table sessions change logintime session_logintime int(11)");
$db->query("alter table sessions change dla session_dla int(11)");
$db->query("update applications set app_order=1,app_tables=NULL where app_name='admin'");
$db->query("update applications set app_order=2,app_tables=NULL where app_name='tts'");
$db->query("update applications set app_order=3,app_tables=NULL where app_name='inv'");
$db->query("update applications set app_order=4,app_tables=NULL where app_name='chat'");
$db->query("update applications set app_order=5,app_tables='news_sites,news_headlines,users_headlines' where app_name='headlines'");
$db->query("update applications set app_order=6,app_tables=NULL where app_name='filemanager'");
$db->query("update applications set app_order=7,app_tables='addressbook' where app_name='addressbook'");
$db->query("update applications set app_order=8,app_tables='todo' where app_name='todo'");
$db->query("update applications set app_order=9,app_tables='webcal_entry,webcal_entry_users,webcal_entry_groups,webcal_repeats' where app_name='calendar'");
$db->query("update applications set app_order=10,app_tables=NULL where app_name='email'");
$db->query("update applications set app_order=11,app_tables='newsgroups,users_newsgroups' where app_name='nntp'");
$db->query("update applications set app_order=0,app_tables=NULL where app_name='cron_apps'");
$sql = "CREATE TABLE config ("
."config_name varchar(25) NOT NULL,"
."config_value varchar(100),"
."UNIQUE config_name (config_name)"
.")";
$db->query($sql);
$db->query("insert into config (config_name, config_value) values ('default_tplset', 'default')");
$db->query("insert into config (config_name, config_value) values ('temp_dir', '/path/to/tmp')");
$db->query("insert into config (config_name, config_value) values ('files_dir', '/path/to/dir/phpgroupware/files')");
$db->query("insert into config (config_name, config_value) values ('encryptkey', 'change this phrase 2 something else'");
$db->query("insert into config (config_name, config_value) values ('site_title', 'phpGroupWare')");
$db->query("insert into config (config_name, config_value) values ('hostname', 'local.machine.name')");
$db->query("insert into config (config_name, config_value) values ('webserver_url', '/phpgroupware')");
$db->query("insert into config (config_name, config_value) values ('auth_type', 'sql')");
$db->query("insert into config (config_name, config_value) values ('ldap_host', 'localhost')");
$db->query("insert into config (config_name, config_value) values ('ldap_context', 'o=phpGroupWare')");
$db->query("insert into config (config_name, config_value) values ('usecookies', 'True')");
$db->query("insert into config (config_name, config_value) values ('mail_server', 'localhost')");
$db->query("insert into config (config_name, config_value) values ('mail_server_type', 'imap')");
$db->query("insert into config (config_name, config_value) values ('imap_server_type', 'Cyrus')");
$db->query("insert into config (config_name, config_value) values ('mail_suffix', 'yourdomain.com')");
$db->query("insert into config (config_name, config_value) values ('mail_login_type', 'standard')");
$db->query("insert into config (config_name, config_value) values ('smtp_server', 'localhost')");
$db->query("insert into config (config_name, config_value) values ('smtp_port', '25')");
$db->query("insert into config (config_name, config_value) values ('nntp_server', 'yournewsserver.com')");
$db->query("insert into config (config_name, config_value) values ('nntp_port', '119')");
$db->query("insert into config (config_name, config_value) values ('nntp_sender', 'complaints@yourserver.com')");
$db->query("insert into config (config_name, config_value) values ('nntp_organization', 'phpGroupWare')");
$db->query("insert into config (config_name, config_value) values ('nntp_admin', 'admin@yourserver.com')");
$db->query("insert into config (config_name, config_value) values ('nntp_login_username', '')");
$db->query("insert into config (config_name, config_value) values ('nntp_login_password', '')");
$db->query("insert into config (config_name, config_value) values ('default_ftp_server', 'localhost')");
$db->query("insert into config (config_name, config_value) values ('httpproxy_server', '')");
$db->query("insert into config (config_name, config_value) values ('httpproxy_port', '')");
$db->query("insert into config (config_name, config_value) values ('showpoweredbyon', 'bottom')");
$db->query("insert into config (config_name, config_value) values ('checkfornewversion', 'False')");
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 9072000 to 0.9.1 is completed.</td>\n";
echo " </tr>\n";
$currentver = "0.9.1";
}
}
function v0_9_1to0_9_2(){
global $currentver, $phpgw_info, $db;
$didupgrade = True;
if ($currentver == "0.9.1"){
$db->query("alter table access_log change lo lo varchar(255)");
$db->query("alter table addressbook change ab_id ab_id int(11) NOT NULL auto_increment");
$db->query("alter table addressbook add ab_company_id int(10) unsigned");
$db->query("alter table addressbook add ab_title varchar(60)");
$db->query("alter table addressbook add ab_address2 varchar(60)");
$sql = "CREATE TABLE customers (
company_id int(10) unsigned NOT NULL auto_increment,
company_name varchar(255),
website varchar(80),
ftpsite varchar(80),
industry_type varchar(50),
status varchar(30),
software varchar(40),
lastjobnum int(10) unsigned,
lastjobfinished date,
busrelationship varchar(30),
notes text,
PRIMARY KEY (company_id)
);";
$db->query($sql);
$db->query("update lang set lang='da' where lang='dk'");
$db->query("update lang set lang='ko' where lang='kr'");
$db->query("update preferences set preference_name='da' where preference_name='dk'");
$db->query("update preferences set preference_name='ko' where preference_name='kr'");
//add weather support
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('weather', 'Weather', 1, 12, NULL, '".$phpgw_info["server"]["version"]."')");
$db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'weather','Weather','en','weather')");
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.1 to 0.9.2 is completed.</td>\n";
echo " </tr>\n";
$currentver = "0.9.2";
}
}
function update_owner($table,$field){
global $db;
$db->query("select distinct($field) from $table");
if ($db->num_rows()) {
while($db->next_record()) {
$owner[count($owner)] = $db->f($field);
}
for($i=0;$i<count($owner);$i++) {
$db->query("select account_id from accounts where account_lid='".$owner[$i]."'");
$db->next_record();
$db->query("update $table set $field=".$db->f("account_id")." where $field='".$owner[$i]."'");
}
}
$db->query("alter table $table change $field $field int(11) NOT NULL");
}
function v0_9_2to0_9_3()
{
global $currentver, $phpgw_info, $db;
$didupgrade = True;
// The 0.9.3pre1 is only temp until release
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1" || $currentver == "0.9.3pre2" || $currentver == "0.9.3pre3" || $currentver == "0.9.3pre4" || $currentver == "0.9.3pre5" || $currentver == "0.9.3pre6") {
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1") {
update_owner("addressbook","ab_owner");
update_owner("todo","todo_owner");
update_owner("webcal_entry","cal_create_by");
update_owner("webcal_entry_user","cal_login");
$currentver = "0.9.3pre2";
}
if ($currentver == "0.9.3pre2") {
$db->query("select owner, newsgroup from users_newsgroups");
if ($db->num_rows()) {
while($db->next_record()) {
$owner[count($owner)] = $db->f("owner");
$newsgroup[count($newsgroup)] = $db->f("newsgroup");
}
for ($i=0;$i<count($owner);$i++) {
$db->query("insert into preferences (preference_owner,preference_name,"
."preference_value,preference_appname) values ('".$owner[$i]."','".$newsgroup[$i]."','True',"
."'nntp')");
}
$db->query("drop table users_newsgroups");
$db->query("update applications set app_tables='newsgroups' where app_name='nntp'");
}
$currentver = "0.9.3pre3";
}
if ($currentver == "0.9.3pre3") {
$db->query("alter table todo add todo_id_parent int DEFAULT 0 NOT NULL");
$currentver = "0.9.3pre4";
}
if ($currentver == "0.9.3pre4") {
$db->query("create table temp as select * from config");
$db->query("drop table config");
$db->query("create table config config_name varchar(255) NOT NULL UNIQUE, config_value varchar(100) NOT NULL");
$db->query("insert into config select * from temp");
$db->query("drop table config");
$currentver = "0.9.3pre5";
}
if ($currentver == "0.9.3pre5") {
$db->query("CREATE TABLE categories (
cat_id serial,
account_id int DEFAULT '0' NOT NULL,
app_name varchar(25) NOT NULL,
cat_name varchar(150) NOT NULL,
cat_description text NOT NULL)"
);
$currentver = "0.9.3pre6";
update_version_table();
}
if ($currentver == "0.9.3pre6") {
$db->query("alter table addressbook add ab_url varchar(255)");
$db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('transy', 'Translation Management', 0, 13, NULL, '".$phpgw_info["server"]["version"]."')");
$currentver = "0.9.3pre7";
}
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.2 to $currentver is completed.</td>\n";
echo " </tr>\n";
}
}
echo "<table border=\"0\" align=\"center\">\n";
echo " <tr bgcolor=\"486591\">\n";
echo " <td colspan=\"2\"><font color=\"fefefe\">&nbsp;<b>Table Upgrades</b></font></td>\n";
echo " </tr>\n";
v7122000to8032000();
v8032000to8072000();
v8072000to8212000();
v8212000to9052000();
v9052000to9072000();
v9072000to0_9_1();
v0_9_1to0_9_2();
v0_9_2to0_9_3();
$db->query("update applications set app_version='".$phpgw_info["server"]["version"]."' where (app_name='admin' or app_name='filemanager' or app_name='addressbook' or app_name='todo' or app_name='calendar' or app_name='email' or app_name='nntp' or app_name='cron_apps')");
$db->query("update config set config_value='" . $phpgw_info["server"]["version"] . "' where "
. "config_name='phpgroupware_api_version'");
if (!$didupgrade == True){
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>No table changes were needed. The script only updated your version setting.</td>\n";
echo " </tr>\n";
}
echo "</table>\n";
?>