mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Changed all exit; calls to use the new common->phpgw_exit()
This commit is contained in:
parent
3e420acc5b
commit
947a4f5067
@ -41,7 +41,7 @@
|
||||
?>"><?php echo lang("YES"); ?></a><center>
|
||||
<?php
|
||||
|
||||
//exit;
|
||||
//$phpgw->common->phpgw_exit();
|
||||
} else {
|
||||
|
||||
$phpgw->db->query("delete from addressbook where ab_owner='" . $phpgw_info["user"]["account_id"]
|
||||
|
@ -23,7 +23,7 @@
|
||||
if (! $ab_id) {
|
||||
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"]. "/addressbook/",
|
||||
"cd=16&order=$order&sort=$sort&filter=$filter&start=$start&query=$query"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
|
||||
if (! $submit) {
|
||||
@ -124,7 +124,7 @@
|
||||
|
||||
Header("Location: " . $phpgw->link("view.php","&ab_id=$ab_id&order=$order&sort=$sort&filter="
|
||||
. "$filter&start=$start"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
if (! $ab_id) {
|
||||
Header("Location: " . $phpgw->link("index.php"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
|
||||
if ($filter != "private")
|
||||
|
@ -51,7 +51,7 @@
|
||||
// If they are, they should not reach this point anyway.
|
||||
if ($phpgw_info["user"]["account_id"] == $account_id) {
|
||||
Header("Location: " . $phpgw->link("accounts.php"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
|
||||
if (($account_id) && (! $confirm)) {
|
||||
|
@ -22,7 +22,7 @@
|
||||
$phpgw->db->query("delete from applications where app_name='$app_name'");
|
||||
|
||||
Header("Location: " . $phpgw->link("applications.php"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
|
||||
$phpgw->common->phpgw_header();
|
||||
|
@ -61,7 +61,7 @@
|
||||
echo "</table></center>";
|
||||
echo "<a href=\"" . $phpgw->link("deletegroup.php","group_id=" . $group_id . "&removeusers=True")
|
||||
. "\">" . lang("Remove all users from this group") . "</a>";
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
|
||||
if ($confirm) {
|
||||
|
@ -105,7 +105,7 @@
|
||||
}
|
||||
|
||||
Header("Location: " . $phpgw->link("accounts.php", "cd=$cd"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
|
||||
} // if $submit
|
||||
|
@ -45,7 +45,7 @@
|
||||
. "$n_app_status' where app_name='$old_app_name'",__LINE__,__FILE__);
|
||||
|
||||
Header("Location: " . $phpgw->link("applications.php"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
}
|
||||
$phpgw->db->query("select * from applications where app_name='$app_name'",__LINE__,__FILE__);
|
||||
|
@ -115,7 +115,7 @@
|
||||
$phpgw->db->unlock();
|
||||
|
||||
Header("Location: " . $phpgw->link("groups.php","cd=$cd"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
if (! @ldap_bind($ldap, $phpgw_info["server"]["ldap_root_dn"], $phpgw_info["server"]["ldap_root_pw"])) {
|
||||
echo "<p><b>Error binding to LDAP server. Check your config</b>";
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
|
||||
function getSearchLine($searchstring)
|
||||
|
@ -19,7 +19,7 @@
|
||||
include("../header.inc.php");
|
||||
if ($ksessionid == $phpgw_info["user"]["sessionid"]) {
|
||||
Header("Location: " . $phpgw->link("currentusers.php"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
|
||||
if ($confirm) {
|
||||
|
@ -62,7 +62,7 @@
|
||||
}
|
||||
$phpgw->preferences->commit_newuser($n_loginid);
|
||||
Header("Location: " . $phpgw->link("accounts.php","cd=$cd"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@
|
||||
}
|
||||
}
|
||||
Header("Location: " . $phpgw->link("applications.php"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
} else {
|
||||
$phpgw->template->set_var("error","<p><center>" . $phpgw->common->error_list($error) . "</center><br>");
|
||||
}
|
||||
|
@ -64,7 +64,7 @@
|
||||
$phpgw->db->unlock();
|
||||
|
||||
Header("Location: " . $phpgw->link("groups.php","cd=$cd"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@
|
||||
&& $phpgw_info["user"]["apps"][$phpgw_info["user"]["preferences"]["common"]["default_app"]]) {
|
||||
$phpgw->redirect($phpgw->link($phpgw_info["server"]["webserver_url"] . "/"
|
||||
. $phpgw_info["user"]["preferences"]["common"]["default_app"] . "/"));
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
|
||||
//$phpgw->hooks->proccess("location","mainscreen");
|
||||
|
@ -25,7 +25,7 @@
|
||||
$mbox = $phpgw->msg->login();
|
||||
if (! $mbox) {
|
||||
echo "Mail error: can not open connection to mail server";
|
||||
exit;
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
|
||||
if (hasmsg == "yes"){
|
||||
|
Loading…
Reference in New Issue
Block a user