mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 23:11:57 +01:00
Fixed msg->status not reporting the correct number of new messages
This commit is contained in:
parent
947a4f5067
commit
a38ed2f62c
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
if (isset($friendly) && $friendly){
|
if (isset($friendly) && $friendly){
|
||||||
$phpgw->common->phpgw_footer();
|
$phpgw->common->phpgw_footer();
|
||||||
exit;
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($phpgw_info["flags"]["nocalendarheader"]) ||
|
if (!isset($phpgw_info["flags"]["nocalendarheader"]) ||
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
$phpgw->preferences->commit();
|
$phpgw->preferences->commit();
|
||||||
|
|
||||||
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/preferences/index.php"));
|
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/preferences/index.php"));
|
||||||
exit;
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
$phpgw->common->phpgw_header();
|
$phpgw->common->phpgw_header();
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
echo "<b>".lang("Error").":</b>";
|
echo "<b>".lang("Error").":</b>";
|
||||||
echo lang("You must enter one or more search keywords.");
|
echo lang("You must enter one or more search keywords.");
|
||||||
$phpgw->common->phpgw_footer();
|
$phpgw->common->phpgw_footer();
|
||||||
exit;
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
$matches = 0;
|
$matches = 0;
|
||||||
|
|
||||||
@ -97,7 +97,7 @@
|
|||||||
echo "<b>".lang("Error").":</b>";
|
echo "<b>".lang("Error").":</b>";
|
||||||
echo $error;
|
echo $error;
|
||||||
$phpgw->common->phpgw_footer();
|
$phpgw->common->phpgw_footer();
|
||||||
exit;
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
$phpgw->template->set_file(array("search_t" => "search.tpl",
|
$phpgw->template->set_file(array("search_t" => "search.tpl",
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
if ($id < 1) {
|
if ($id < 1) {
|
||||||
echo lang("Invalid entry id.");
|
echo lang("Invalid entry id.");
|
||||||
exit;
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_day(&$repeat_days,$day) {
|
function add_day(&$repeat_days,$day) {
|
||||||
|
@ -43,15 +43,6 @@
|
|||||||
'gdm' => True,
|
'gdm' => True,
|
||||||
'named' => True);
|
'named' => True);
|
||||||
|
|
||||||
// This function is used if the developer wants to stop a running app in the middle of execution
|
|
||||||
// We may need to do some clean up before hand
|
|
||||||
function phpgw_exit()
|
|
||||||
{
|
|
||||||
global $phpgw;
|
|
||||||
|
|
||||||
$phpgw->db->disconnect();
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
// I had to create this has a wrapper, becuase the phpgw.inc.php files needs it before the classes
|
// I had to create this has a wrapper, becuase the phpgw.inc.php files needs it before the classes
|
||||||
// are finished loading (jengo)
|
// are finished loading (jengo)
|
||||||
@ -104,6 +95,16 @@
|
|||||||
return $ds;
|
return $ds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This function is used if the developer wants to stop a running app in the middle of execution
|
||||||
|
// We may need to do some clean up before hand
|
||||||
|
function phpgw_exit()
|
||||||
|
{
|
||||||
|
global $phpgw;
|
||||||
|
|
||||||
|
$phpgw->db->disconnect();
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
function randomstring($size)
|
function randomstring($size)
|
||||||
{
|
{
|
||||||
$s = "";
|
$s = "";
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
if (!$phpgw->acl->check("changepassword", 1)){
|
if (!$phpgw->acl->check("changepassword", 1)){
|
||||||
Header("Location: index.php");
|
Header("Location: index.php");
|
||||||
exit;
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $submit) {
|
if (! $submit) {
|
||||||
@ -70,7 +70,7 @@
|
|||||||
if ($error) {
|
if ($error) {
|
||||||
$phpgw->common->navbar();
|
$phpgw->common->navbar();
|
||||||
echo "<p><br>$error</p>";
|
echo "<p><br>$error</p>";
|
||||||
exit;
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($phpgw_info["server"]["auth_type"] == "sql") {
|
if ($phpgw_info["server"]["auth_type"] == "sql") {
|
||||||
@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
if (! @ldap_bind($ldap, $phpgw_info["server"]["ldap_root_dn"], $phpgw_info["server"]["ldap_root_pw"])) {
|
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>";
|
echo "<p><b>Error binding to LDAP server. Check your config</b>";
|
||||||
exit;
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
$entry["userpassword"] = $phpgw->common->encrypt_password($n_passwd);
|
$entry["userpassword"] = $phpgw->common->encrypt_password($n_passwd);
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
if ($phpgw_info["user"]["permissions"]["anonymous"]) {
|
if ($phpgw_info["user"]["permissions"]["anonymous"]) {
|
||||||
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/"));
|
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/"));
|
||||||
exit;
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($submit) {
|
if ($submit) {
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
} else {
|
} else {
|
||||||
Header("Location: " . $phpgw->link("changetheme.php"));
|
Header("Location: " . $phpgw->link("changetheme.php"));
|
||||||
}
|
}
|
||||||
exit;
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
$dh = opendir($phpgw_info["server"]["server_root"] . "/phpgwapi/themes");
|
$dh = opendir($phpgw_info["server"]["server_root"] . "/phpgwapi/themes");
|
||||||
|
@ -218,7 +218,7 @@
|
|||||||
|
|
||||||
if ($phpgw_info["server"]["useframes"] != "never") {
|
if ($phpgw_info["server"]["useframes"] != "never") {
|
||||||
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/index.php"));
|
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/index.php"));
|
||||||
exit;
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
Header("Location: " . $phpgw->link("index.php"));
|
Header("Location: " . $phpgw->link("index.php"));
|
||||||
|
Loading…
Reference in New Issue
Block a user