mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:18:57 +01:00
Added support for forward directly to a app after login, this is so I can add the quik-mark(tm) support into bookmarks. Plus, things like anonymous sessions will be easier to support
This commit is contained in:
parent
225d78c33d
commit
349b11a41c
11
index.php
11
index.php
@ -30,6 +30,17 @@
|
||||
include("header.inc.php");
|
||||
// Note: I need to add checks to make sure these apps are installed.
|
||||
|
||||
if ($phpgw_forward) {
|
||||
if ($phpgw_forward) {
|
||||
while (list($name,$value) = each($HTTP_GET_VARS)) {
|
||||
if (ereg("phpgw_",$name)) {
|
||||
$extra_vars .= "&" . $name . "=$value";
|
||||
}
|
||||
}
|
||||
}
|
||||
$phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . $phpgw_forward,$extra_vars));
|
||||
}
|
||||
|
||||
if (($phpgw_info["user"]["preferences"]["common"]["useframes"] && $phpgw_info["server"]["useframes"] == "allowed")
|
||||
|| ($phpgw_info["server"]["useframes"] == "always")) {
|
||||
|
||||
|
22
login.php
22
login.php
@ -108,7 +108,14 @@
|
||||
if (!isset($sessionid) || !$sessionid) {
|
||||
$phpgw->redirect($phpgw_info["server"]["webserver_url"]."/login.php?cd=5");
|
||||
} else {
|
||||
$phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/index.php", "cd=yes"));
|
||||
if ($phpgw_forward) {
|
||||
while (list($name,$value) = each($HTTP_GET_VARS)) {
|
||||
if (ereg("phpgw_",$name)) {
|
||||
$extra_vars .= "&" . $name . "=$value";
|
||||
}
|
||||
}
|
||||
}
|
||||
$phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/index.php", "cd=yes$extra_vars"));
|
||||
}
|
||||
} else {
|
||||
// !!! DONT CHANGE THESE LINES !!!
|
||||
@ -152,8 +159,17 @@
|
||||
}
|
||||
$tmpl->set_var("select_domain",$domain_select);
|
||||
}
|
||||
|
||||
$tmpl->set_var("login_url", $phpgw_info["server"]["webserver_url"] . "/login.php");
|
||||
|
||||
while (list($name,$value) = each($HTTP_GET_VARS)) {
|
||||
if (ereg("phpgw_",$name)) {
|
||||
$extra_vars .= "&" . $name . "=$value";
|
||||
}
|
||||
}
|
||||
if ($extra_vars) {
|
||||
$extra_vars = "?" . substr($extra_vars,1,strlen($extra_vars));
|
||||
}
|
||||
|
||||
$tmpl->set_var("login_url", $phpgw_info["server"]["webserver_url"] . "/login.php" . $extra_vars);
|
||||
$tmpl->set_var("website_title", $phpgw_info["server"]["site_title"]);
|
||||
$tmpl->set_var("cd",check_logoutcode($cd));
|
||||
$tmpl->set_var("cookie",show_cookie());
|
||||
|
Loading…
Reference in New Issue
Block a user