[Vtigercrm-commits] [vtiger-commits] r10721 - /vtigercrm/branches/5.0.3/soap/thunderbirdplugin.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 18 07:56:04 EDT 2007
Author: jerrydgeorge
Date: Wed Apr 18 05:55:54 2007
New Revision: 10721
Log:
thunderbird plugin version compatibility issue fixed.by Bharath
Modified:
vtigercrm/branches/5.0.3/soap/thunderbirdplugin.php
Modified: vtigercrm/branches/5.0.3/soap/thunderbirdplugin.php
==============================================================================
--- vtigercrm/branches/5.0.3/soap/thunderbirdplugin.php (original)
+++ vtigercrm/branches/5.0.3/soap/thunderbirdplugin.php Wed Apr 18 05:55:54 2007
@@ -25,7 +25,7 @@
$server->register(
'create_session',
- array('user_name'=>'xsd:string','password'=>'xsd:string'),
+ array('user_name'=>'xsd:string','password'=>'xsd:string','version'=>'xsd:string'),
array('return'=>'xsd:string'),
$NAMESPACE);
@@ -482,10 +482,15 @@
return $Lead->id;
}
-function create_session($user_name, $password)
+function create_session($user_name, $password,$version)
{
global $adb,$log;
- $return_access = 'failure';
+ $return_access = 'FALSES';
+ include('vtigerversion.php');
+ if($version != $vtiger_current_version)
+ {
+ return "VERSION";
+ }
require_once('modules/Users/Users.php');
$objuser = new Users();
if($password != "" && $user_name != '')
@@ -498,17 +503,22 @@
$result = $adb->query($query);
if($adb->num_rows($result) > 0)
{
- $return_access = 'success';
+ $return_access = 'TRUES';
$log->debug("Logged in sucessfully from thunderbirdplugin");
}else
{
- $return_access = 'failure';
+ $return_access = 'FALSES';
$log->debug("Logged in failure from thunderbirdplugin");
}
}
+ else
+ {
+ $return_access = 'LOGIN';
+ $log->debug("Logged in failure from thunderbirdplugin");
+ }
}else
{
- $return_access = 'failure';
+ $return_access = 'FALSES';
$log->debug("Logged in failure from thunderbirdplugin");
}
return $return_access;
More information about the vtigercrm-commits
mailing list