[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 require_once ('Smarty_setup.php'); 12 global $mod_strings; 13 global $app_strings; 14 global $app_list_strings; 15 16 //Display the mail send status 17 $smarty = new vtigerCRM_Smarty; 18 if($_REQUEST['mail_error'] != '') 19 { 20 require_once ("modules/Emails/mail.php"); 21 $error_msg = strip_tags(parseEmailErrorString($_REQUEST['mail_error'])); 22 if(strstr($error_msg,"Please check the assigned to user email id")) 23 $error_msg = "Mail could not be sent to the admin user. Please check the admin user email id."; 24 $smarty->assign("ERROR_MSG",'<b><font color="red">Test Mail status : '.$error_msg.'</font></b>'); 25 } 26 27 global $adb; 28 global $theme; 29 $theme_path="themes/".$theme."/"; 30 $image_path=$theme_path."images/"; 31 require_once ($theme_path.'layout_utils.php'); 32 33 $sql="select * from vtiger_systems where server_type = 'email'"; 34 $result = $adb->query($sql); 35 $mail_server = $adb->query_result($result,0,'server'); 36 $mail_server_username = $adb->query_result($result,0,'server_username'); 37 $mail_server_password = $adb->query_result($result,0,'server_password'); 38 $smtp_auth = $adb->query_result($result,0,'smtp_auth'); 39 40 if (isset($mail_server)) 41 $smarty->assign("MAILSERVER",$mail_server); 42 if (isset($mail_server_username)) 43 $smarty->assign("USERNAME",$mail_server_username); 44 if (isset($mail_server_password)) 45 $smarty->assign("PASSWORD",$mail_server_password); 46 if (isset($smtp_auth)) 47 { 48 if($smtp_auth == 'true') 49 $smarty->assign("SMTP_AUTH",'checked'); 50 else 51 $smarty->assign("SMTP_AUTH",''); 52 } 53 54 if(isset($_REQUEST['emailconfig_mode']) && $_REQUEST['emailconfig_mode'] != '') 55 $smarty->assign("EMAILCONFIG_MODE",$_REQUEST['emailconfig_mode']); 56 else 57 $smarty->assign("EMAILCONFIG_MODE",'view'); 58 59 $smarty->assign("MOD", return_module_language($current_language,'Settings')); 60 $smarty->assign("IMAGE_PATH",$image_path); 61 $smarty->assign("APP", $app_strings); 62 $smarty->assign("CMOD", $mod_strings); 63 $smarty->display("Settings/EmailConfig.tpl"); 64 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |