[Vtigercrm-commits] [vtiger-commits] r10712 - /vtigercrm/branches/5.0.3/soap/firefoxtoolbar.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 17 12:21:34 EDT 2007


Author: jerrydgeorge
Date: Tue Apr 17 10:21:26 2007
New Revision: 10712

Log:
Firefox plugin version compatibility has been fixed.by Bharath

Modified:
    vtigercrm/branches/5.0.3/soap/firefoxtoolbar.php

Modified: vtigercrm/branches/5.0.3/soap/firefoxtoolbar.php
==============================================================================
--- vtigercrm/branches/5.0.3/soap/firefoxtoolbar.php (original)
+++ vtigercrm/branches/5.0.3/soap/firefoxtoolbar.php Tue Apr 17 10:21:26 2007
@@ -114,7 +114,7 @@
 
 $server->register(
     'LogintoVtigerCRM',
-    array('user_name'=>'xsd:string','password'=>'xsd:string'),
+    array('user_name'=>'xsd:string','password'=>'xsd:string','version'=>'xsd:string'),
     array('return'=>'xsd:string'),
     $NAMESPACE);
     
@@ -363,12 +363,16 @@
 		return $accessDenied;
 	}
 }
-function LogintoVtigerCRM($user_name,$password)
+function LogintoVtigerCRM($user_name,$password,$version)
 {
 	global $log;
 	require_once('modules/Users/Users.php');
-	
-	$return_access = "FALSE";
+	include('vtigerversion.php');
+	if($version != $vtiger_current_version)
+	{
+		return "VERSION";
+	}
+	$return_access = "FALSES";
 	
 	$objuser = new Users();
 	
@@ -378,15 +382,15 @@
 		$objuser->load_user($password);
 		if($objuser->is_authenticated())
 		{
-			$return_access = "TRUE";
+			$return_access = "TRUES";
 		}else
 		{
-			$return_access = "FALSE";
+			$return_access = "FALSES";
 		}
 	}else
 	{
 			//$server->setError("Invalid username and/or password");
-			$return_access = "FALSE";
+			$return_access = "FALSES";
 	}
 	$objuser = $objuser;
 	return $return_access;





More information about the vtigercrm-commits mailing list