[Vtigercrm-commits] [vtiger-commits] r5719 - /vtigercrm/trunk/modules/Settings/SaveMailAccount.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed May 3 11:17:44 EDT 2006
Author: saraj
Date: Wed May 3 09:17:38 2006
New Revision: 5719
Log:
Redirection problem rectified while saving mail server information - Ahmed
Modified:
vtigercrm/trunk/modules/Settings/SaveMailAccount.php
Modified: vtigercrm/trunk/modules/Settings/SaveMailAccount.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/SaveMailAccount.php (original)
+++ vtigercrm/trunk/modules/Settings/SaveMailAccount.php Wed May 3 09:17:38 2006
@@ -12,7 +12,7 @@
global $current_user;
$displayname=$_REQUEST['displayname'];
-$user_id = $current_user->id;
+$userid = $current_user->id;
$email=$_REQUEST['email'];
$account_name=$_REQUEST['account_name'];
$mailprotocol=$_REQUEST['mailprotocol'];
@@ -33,7 +33,7 @@
if(isset($_REQUEST['edit']) && $_REQUEST['edit'] && $_REQUEST['record']!='')
{
- $sql="update mail_accounts set display_name = '".$displayname."', mail_id = '".$email."', account_name = '".$account_name."', mail_protocol = '".$mailprotocol."', mail_username = '".$server_username."', mail_password='".$server_password."', mail_servername='".$mail_servername."', box_refresh='".$box_refresh."', mails_per_page='".$mails_per_page."', ssltype='".$ssltype."' , sslmeth='".$sslmeth."', showbody='no' where account_id = '".$id."'";
+ $sql="update mail_accounts set display_name = '".$displayname."', mail_id = '".$email."', account_name = '".$account_name."', mail_protocol = '".$mailprotocol."', mail_username = '".$server_username."', mail_password='".$server_password."', mail_servername='".$mail_servername."', box_refresh='".$box_refresh."', mails_per_page='".$mails_per_page."', ssltype='".$ssltype."' , sslmeth='".$sslmeth."', showbody='no' where user_id = '".$id."'";
}
else
{
@@ -43,5 +43,5 @@
$adb->query($sql);
-header("Location:index.php?module=Settings&action=ListMailAccount");
+header("Location:index.php?module=Settings&action=AddMailAccount&record=$userid");
?>
More information about the vtigercrm-commits
mailing list