massive redesign to multi-domain support. This one SHOULD work

This commit is contained in:
seek3r 2000-11-21 04:49:40 +00:00
parent 50375aec4d
commit e401cd30f2
5 changed files with 22 additions and 9 deletions

View File

@ -49,7 +49,6 @@
/* Use this for supporting different domains using this single install */ /* Use this for supporting different domains using this single install */
/* (ignore if you are only supporting a single domain)*/ /* (ignore if you are only supporting a single domain)*/
$phpgw_info["multiable_domains"] = False; //Set to True and create an array for each domain.
$phpgw_domain["domain2.com"] = array ( $phpgw_domain["domain2.com"] = array (
"db_host" => "localhost", "db_host" => "localhost",
"db_name" => "phpgw_domain1", "db_name" => "phpgw_domain1",

View File

@ -118,6 +118,9 @@
} }
echo "<!-- Mailox info -->\n"; echo "<!-- Mailox info -->\n";
} }
echo "phpgw_info[user][test_login]: ".$phpgw_info["user"]["test_login"]."<br>\n";
echo "phpgw_info[user][userid]: ".$phpgw_info["user"]["userid"]."<br>\n";
echo "phpgw_info[user][domain]: ".$phpgw_info["user"]["domain"]."<br>\n";
if ($phpgw_info["user"]["apps"]["addressbook"] if ($phpgw_info["user"]["apps"]["addressbook"]
&& $phpgw_info["user"]["preferences"]["addressbook"]["mainscreen_showbirthdays"]) { && $phpgw_info["user"]["preferences"]["addressbook"]["mainscreen_showbirthdays"]) {

View File

@ -66,7 +66,7 @@
$sql = "CREATE TABLE sessions ( $sql = "CREATE TABLE sessions (
session_id varchar(255) NOT NULL, session_id varchar(255) NOT NULL,
session_lid varchar(20), session_lid varchar(255),
session_pwd varchar(255), session_pwd varchar(255),
session_ip varchar(255), session_ip varchar(255),
session_logintime int(11), session_logintime int(11),

View File

@ -331,15 +331,26 @@
} }
if ($currentver == "0.9.4pre3") { if ($currentver == "0.9.4pre3") {
$sql = "ALTER TABLE todo ADD todo_startdate int(11) not null"; $sql = "ALTER TABLE todo ADD todo_startdate int(11) not null";
$db->query($sql); $db->query($sql);
$sql = "ALTER TABLE todo CHANGE todo_datedue todo_enddate int(11) not null"; $sql = "ALTER TABLE todo CHANGE todo_datedue todo_enddate int(11) not null";
$db->query($sql); $db->query($sql);
$currentver = "0.9.4pre4"; $currentver = "0.9.4pre4";
update_version_table(); update_version_table();
} }
if ($currentver == "0.9.4pre4") {
$sql = "ALTER TABLE todo ADD todo_startdate int(11) not null";
$db->query($sql);
$sql = "alter table sessions change session_lid session_lid varchar(255)";
$db->query($sql);
$currentver = "0.9.4pre5";
update_version_table();
}
echo " <tr bgcolor=\"e6e6e6\">\n"; echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.3 to $currentver is completed.</td>\n"; echo " <td>Upgrade from 0.9.3 to $currentver is completed.</td>\n";
echo " </tr>\n"; echo " </tr>\n";

View File

@ -56,7 +56,7 @@
$sql = "create table sessions ( $sql = "create table sessions (
session_id varchar(255), session_id varchar(255),
session_lid varchar(20), session_lid varchar(255),
session_pwd varchar(255), session_pwd varchar(255),
session_ip varchar(255), session_ip varchar(255),
session_logintime int, session_logintime int,