[Vtigercrm-commits] [vtiger-commits] r6699 - /vtigercrm/trunk/index.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon May 29 11:18:13 EDT 2006


Author: allanbush
Date: Mon May 29 09:18:11 2006
New Revision: 6699

Log:
Cleaned up formatting.

Modified:
    vtigercrm/trunk/index.php

Modified: vtigercrm/trunk/index.php
==============================================================================
--- vtigercrm/trunk/index.php (original)
+++ vtigercrm/trunk/index.php Mon May 29 09:18:11 2006
@@ -112,6 +112,7 @@
 	$_SERVER['REQUEST_URI'] = '';
 }
 
+$action = '';
 if(isset($_REQUEST['action']))
 {
 	$action = $_REQUEST['action'];
@@ -192,11 +193,97 @@
 {
 	$log->info("About to take action ".$action);
 	$log->debug("in $action");
-	if(ereg("^Save", $action) || ereg("^Delete", $action) || ereg("^Choose", $action) || ereg("^Popup", $action) || ereg("^ChangePassword", $action) || ereg("^Authenticate", $action) || ereg("^Logout", $action) || ereg("^Export",$action) || ereg("^add2db", $action) || ereg("^result", $action) || ereg("^LeadConvertToEntities", $action) || ereg("^downloadfile", $action) || ereg("^massdelete", $action) || ereg("^updateLeadDBStatus",$action) || ereg("^AddCustomFieldToDB", $action) || ereg("^updateRole",$action) || ereg("^UserInfoUtil",$action) || ereg("^deleteRole",$action) || ereg("^UpdateComboValues",$action) || ereg("^fieldtypes",$action) || ereg("^app_ins",$action) || ereg("^minical",$action) || ereg("^minitimer",$action) || ereg("^app_del",$action) || ereg("^send_mail",$action) || ereg("^populatetemplate",$action) || ereg("^TemplateMerge",$action) || ereg("^testemailtemplateusage",$action) || ereg("^saveemailtemplate",$action) || ereg("^lookupemailtemplate",$action) || ereg("^deletewordtemplate",$action) || ereg("^deleteemailtemplate",$action) || ereg("^CurrencyDelete",$action) || ereg("^deleteattachments",$action) || ereg("^MassDeleteUsers",$action) || ereg("^UpdateFieldLevelAccess",$action) || ereg("^UpdateDefaultFieldLevelAccess",$action) || ereg("^UpdateProfile",$action)  || ereg("^updateRelations",$action) || ereg("^updateNotificationSchedulers",$action) || ereg("^Star",$action) || ereg("^addPbProductRelToDB",$action) || ereg("^UpdateListPrice",$action) || ereg("^PriceListPopup",$action) || ereg("^SalesOrderPopup",$action) || ereg("^CreatePDF",$action) || ereg("^CreateSOPDF",$action) || ereg("^redirect",$action) || ereg("^webmail",$action) || ereg("^left_main",$action) || ereg("^delete_message",$action) || ereg("^mime",$action) || ereg("^move_messages",$action) || ereg("^folders_create",$action) || ereg("^imap_general",$action) || ereg("^mime",$action) || ereg("^download",$action) || ereg("^about_us",$action) || ereg("^SendMailAction",$action) || ereg("^CreateXL",$action) || ereg("^savetermsandconditions",$action) || ereg("^home_rss",$action) || ereg("^ConvertAsFAQ",$action) || ereg("^Tickerdetail",$action) || ereg("^".$module."Ajax",$action) || ereg("^chat",$action) || ereg("^vtchat",$action) || ereg("^updateCalendarSharing",$action) || ereg("^disable_sharing",$action) || ereg("^HeadLines",$action) || ereg("^TodoSave",$action) || ereg("^RecalculateSharingRules",$action) || (ereg("^body",$action) && ereg("^Webmails",$module)) || (ereg("^DetailView",$action) && ereg("^Webmails",$module) ))
+	if(ereg("^Save", $action) ||
+		ereg("^Delete", $action) ||
+		ereg("^Choose", $action) ||
+		ereg("^Popup", $action) ||
+		ereg("^ChangePassword", $action) ||
+		ereg("^Authenticate", $action) ||
+		ereg("^Logout", $action) ||
+		ereg("^Export",$action) ||
+		ereg("^add2db", $action) ||
+		ereg("^result", $action) ||
+		ereg("^LeadConvertToEntities", $action) ||
+		ereg("^downloadfile", $action) ||
+		ereg("^massdelete", $action) ||
+		ereg("^updateLeadDBStatus",$action) ||
+		ereg("^AddCustomFieldToDB", $action) ||
+		ereg("^updateRole",$action) ||
+		ereg("^UserInfoUtil",$action) ||
+		ereg("^deleteRole",$action) ||
+		ereg("^UpdateComboValues",$action) ||
+		ereg("^fieldtypes",$action) ||
+		ereg("^app_ins",$action) ||
+		ereg("^minical",$action) ||
+		ereg("^minitimer",$action) ||
+		ereg("^app_del",$action) ||
+		ereg("^send_mail",$action) ||
+		ereg("^populatetemplate",$action) ||
+		ereg("^TemplateMerge",$action) ||
+		ereg("^testemailtemplateusage",$action) ||
+		ereg("^saveemailtemplate",$action) ||
+		ereg("^lookupemailtemplate",$action) ||
+		ereg("^deletewordtemplate",$action) ||
+		ereg("^deleteemailtemplate",$action) ||
+		ereg("^CurrencyDelete",$action) ||
+		ereg("^deleteattachments",$action) ||
+		ereg("^MassDeleteUsers",$action) ||
+		ereg("^UpdateFieldLevelAccess",$action) ||
+		ereg("^UpdateDefaultFieldLevelAccess",$action) ||
+		ereg("^UpdateProfile",$action)  ||
+		ereg("^updateRelations",$action) ||
+		ereg("^updateNotificationSchedulers",$action) ||
+		ereg("^Star",$action) ||
+		ereg("^addPbProductRelToDB",$action) ||
+		ereg("^UpdateListPrice",$action) ||
+		ereg("^PriceListPopup",$action) ||
+		ereg("^SalesOrderPopup",$action) ||
+		ereg("^CreatePDF",$action) ||
+		ereg("^CreateSOPDF",$action) ||
+		ereg("^redirect",$action) ||
+		ereg("^webmail",$action) ||
+		ereg("^left_main",$action) ||
+		ereg("^delete_message",$action) ||
+		ereg("^mime",$action) ||
+		ereg("^move_messages",$action) ||
+		ereg("^folders_create",$action) ||
+		ereg("^imap_general",$action) ||
+		ereg("^mime",$action) ||
+		ereg("^download",$action) ||
+		ereg("^about_us",$action) ||
+		ereg("^SendMailAction",$action) ||
+		ereg("^CreateXL",$action) ||
+		ereg("^savetermsandconditions",$action) ||
+		ereg("^home_rss",$action) ||
+		ereg("^ConvertAsFAQ",$action) ||
+		ereg("^Tickerdetail",$action) ||
+		ereg("^".$module."Ajax",$action) ||
+		ereg("^chat",$action) ||
+		ereg("^vtchat",$action) ||
+		ereg("^updateCalendarSharing",$action) ||
+		ereg("^disable_sharing",$action) ||
+		ereg("^HeadLines",$action) ||
+		ereg("^TodoSave",$action) ||
+		ereg("^RecalculateSharingRules",$action) ||
+		(ereg("^body",$action) &&
+			ereg("^Webmails",$module)) ||
+			(ereg("^DetailView",$action) &&
+			ereg("^Webmails",$module) ))
 	{
 		$skipHeaders=true;
 		//skip headers for all these invocations as they are mostly popups
-		if(ereg("^Popup", $action) || ereg("^ChangePassword", $action) || ereg("^Export", $action) || ereg("^downloadfile", $action) || ereg("^fieldtypes",$action) || ereg("^lookupemailtemplate",$action) || ereg("^about_us",$action) || ereg("^home_rss",$action) || ereg("^".$module."Ajax",$action) || ereg("^chat",$action)|| ereg("^vtchat",$action) || ereg("^massdelete", $action))
+		if(ereg("^Popup", $action) ||
+			ereg("^ChangePassword", $action) ||
+			ereg("^Export", $action) ||
+			ereg("^downloadfile", $action) ||
+			ereg("^fieldtypes",$action) ||
+			ereg("^lookupemailtemplate",$action) ||
+			ereg("^about_us",$action) ||
+			ereg("^home_rss",$action) ||
+			ereg("^".$module."Ajax",$action) ||
+			ereg("^chat",$action) ||
+			ereg("^vtchat",$action) ||
+			ereg("^massdelete", $action))
 			$skipFooters=true;
 		//skip footers for all these invocations as they are mostly popups
 		if(ereg("^downloadfile", $action) || ereg("^fieldtypes",$action))





More information about the vtigercrm-commits mailing list