From 066cc921b3c154a46781a582e6c6bbc5be72a544 Mon Sep 17 00:00:00 2001 From: seek3r Date: Thu, 16 Nov 2000 07:40:37 +0000 Subject: [PATCH] new disable by default policy should help performance --- addressbook/add.php | 1 + addressbook/delete.php | 1 + addressbook/edit.php | 1 + addressbook/index.php | 3 ++- addressbook/parsecard.php | 3 +-- addressbook/preferences.php | 2 +- addressbook/vcardin.php | 4 ++-- addressbook/vcardout.php | 1 + addressbook/view.php | 1 + admin/applications.php | 3 ++- index.php | 5 ++++- login.php | 6 +----- 12 files changed, 18 insertions(+), 13 deletions(-) diff --git a/addressbook/add.php b/addressbook/add.php index 4f19eebec3..6fdf2e3693 100755 --- a/addressbook/add.php +++ b/addressbook/add.php @@ -17,6 +17,7 @@ } $phpgw_info["flags"]["currentapp"] = "addressbook"; + $phpgw_info["flags"]["enable_addressbook_class"] = True; include("../header.inc.php"); diff --git a/addressbook/delete.php b/addressbook/delete.php index 4895c93009..848228e4e2 100755 --- a/addressbook/delete.php +++ b/addressbook/delete.php @@ -17,6 +17,7 @@ } $phpgw_info["flags"]["currentapp"] = "addressbook"; + $phpgw_info["flags"]["enable_addressbook_class"] = True; include("../header.inc.php"); if (! $ab_id) { diff --git a/addressbook/edit.php b/addressbook/edit.php index b2440e70c2..ab7dfced43 100755 --- a/addressbook/edit.php +++ b/addressbook/edit.php @@ -17,6 +17,7 @@ } $phpgw_info["flags"]["currentapp"] = "addressbook"; + $phpgw_info["flags"]["enable_addressbook_class"] = True; include("../header.inc.php"); if (! $ab_id) { diff --git a/addressbook/index.php b/addressbook/index.php index 57d6344339..008314f4c4 100755 --- a/addressbook/index.php +++ b/addressbook/index.php @@ -12,7 +12,8 @@ /* $Id$ */ - $phpgw_info["flags"]["currentapp"] = "addressbook"; + $phpgw_info["flags"] = array("currentapp" => "addressbook", "enable_addressbook_class" => True, "enable_nextmatchs_class" => True, + "noheader" => True, "nonavbar" => True); include("../header.inc.php"); diff --git a/addressbook/parsecard.php b/addressbook/parsecard.php index 18e24e6fd6..a62972b788 100644 --- a/addressbook/parsecard.php +++ b/addressbook/parsecard.php @@ -13,8 +13,7 @@ /* $Id$ */ - $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True); - $phpgw_info["flags"]["currentapp"] = "addressbook"; + $phpgw_info["flags"] = array("currentapp" => "addressbook", "enable_addressbook_class" => True, "noheader" => True, "nonavbar" => True); include("../header.inc.php"); diff --git a/addressbook/preferences.php b/addressbook/preferences.php index 8b4513dca5..b8a685414d 100644 --- a/addressbook/preferences.php +++ b/addressbook/preferences.php @@ -11,7 +11,7 @@ /* $Id$ */ - $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "addressbook"); + $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "addressbook", "enable_addressbook_class" => True); include("../header.inc.php"); if ($submit) { diff --git a/addressbook/vcardin.php b/addressbook/vcardin.php index cc2ceca0b8..8a2cbf7011 100644 --- a/addressbook/vcardin.php +++ b/addressbook/vcardin.php @@ -14,10 +14,10 @@ if ($action == "Load Vcard"){ - $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "addressbook"); + $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "addressbook", "enable_addressbook_class" => True); include("../header.inc.php"); }else{ - $phpgw_info["flags"]["currentapp"]="addressbook"; + $phpgw_info["flags"] = array("currentapp" => "addressbook", "enable_addressbook_class" => True); include("../header.inc.php"); echo ''; } diff --git a/addressbook/vcardout.php b/addressbook/vcardout.php index 7623248bd1..8c44feb203 100644 --- a/addressbook/vcardout.php +++ b/addressbook/vcardout.php @@ -18,6 +18,7 @@ $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True); } + $phpgw_info["flags"]["enable_addressbook_class"] = True; $phpgw_info["flags"]["currentapp"] = "addressbook"; include("../header.inc.php"); diff --git a/addressbook/view.php b/addressbook/view.php index c8d7aaf50c..30a847383c 100755 --- a/addressbook/view.php +++ b/addressbook/view.php @@ -17,6 +17,7 @@ } $phpgw_info["flags"]["currentapp"] = "addressbook"; + $phpgw_info["flags"]["enable_addressbook_class"] = True; include("../header.inc.php"); function checkfor_specialformat($field,$data) diff --git a/admin/applications.php b/admin/applications.php index b114a4f4f4..3e2f440eb3 100644 --- a/admin/applications.php +++ b/admin/applications.php @@ -11,7 +11,8 @@ /* $Id$ */ - $phpgw_info["flags"]["currentapp"] = "admin"; + $phpgw_info["flags"] = array("currentapp" => "admin", "enable_nextmatchs_class" => True); + include("../header.inc.php"); if ($order) diff --git a/index.php b/index.php index c0ad874ba5..0ae07b659c 100755 --- a/index.php +++ b/index.php @@ -17,7 +17,10 @@ exit; } - $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "home"); + $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "home", + "enable_message_class" => True, "enable_calendar_class" => True, + "enable_todo_class" => True, "enable_addressbook_class" => True + ); include("header.inc.php"); // Note: I need to add checks to make sure these apps are installed. diff --git a/login.php b/login.php index e494a57002..e5f3f46581 100755 --- a/login.php +++ b/login.php @@ -12,11 +12,7 @@ /* $Id$ */ - $phpgw_info["flags"] = array("disable_message_class" => True, "disable_send_class" => True, - "disable_nextmatchs_class" => True, "disable_template_class" => True, - "login" => True, "currentapp" => "login", - "noheader" => True - ); + $phpgw_info["flags"] = array("disable_template_class" => True, "login" => True, "currentapp" => "login", "noheader" => True); include("./header.inc.php"); // include($phpgw_info["server"]["include_root"] . "/lang/" . "en" . "_login.inc.php");