Changed all exit; calls to use the new common->phpgw_exit()

This commit is contained in:
jengo 2000-12-23 22:50:32 +00:00
parent 3e420acc5b
commit 947a4f5067
16 changed files with 17 additions and 17 deletions

View File

@ -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"]

View File

@ -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();
}
?>

View File

@ -24,7 +24,7 @@
if (! $ab_id) {
Header("Location: " . $phpgw->link("index.php"));
exit;
$phpgw->common->phpgw_exit();
}
if ($filter != "private")

View File

@ -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)) {

View File

@ -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();

View File

@ -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) {

View File

@ -105,7 +105,7 @@
}
Header("Location: " . $phpgw->link("accounts.php", "cd=$cd"));
exit;
$phpgw->common->phpgw_exit();
}
} // if $submit

View File

@ -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__);

View File

@ -115,7 +115,7 @@
$phpgw->db->unlock();
Header("Location: " . $phpgw->link("groups.php","cd=$cd"));
exit;
$phpgw->common->phpgw_exit();
}
}

View File

@ -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)

View File

@ -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) {

View File

@ -62,7 +62,7 @@
}
$phpgw->preferences->commit_newuser($n_loginid);
Header("Location: " . $phpgw->link("accounts.php","cd=$cd"));
exit;
$phpgw->common->phpgw_exit();
}
}

View File

@ -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>");
}

View File

@ -64,7 +64,7 @@
$phpgw->db->unlock();
Header("Location: " . $phpgw->link("groups.php","cd=$cd"));
exit;
$phpgw->common->phpgw_exit();
}
}

View File

@ -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");

View File

@ -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"){