Sindbad~EG File Manager

Current Path : /home/beghelic/www/mail/
Upload File :
Current File : /home/beghelic/www/mail/mailgonder.php

<?php
if ( $_POST ){
    if (isset($_POST['g-recaptcha-response'])) {
    $captcha = $_POST['g-recaptcha-response'];
}
    if (!$captcha) {
        echo '<h2>Lütfen robot olmadığınızı doğrulayın.</h2>';
        exit;
    }
    $kontrol = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6LfU68keAAAAAJkJm9mI8bN0W54lkMFH8eh8AA4j&response=" . $captcha . "&remoteip=" . $_SERVER['REMOTE_ADDR']);
    if ($kontrol.success == false) {
        header('Location:../iletisim');
    } else {
		$adsoyad= $_POST['adsoyad'];
		$telefon = $_POST['telefon'];
		$eposta = $_POST['eposta'];
		$konu = $_POST['konu'];
		$mesaj = $_POST['mesaj'];
		
		if (!$adsoyad) {
            if (!$telefon) {
                if (!$eposta) {
                    if (!$konu) {
                        if (!$mesaj) {
                            header('Location:../iletisim');
                        }
                    }
                }
            }
        }

		include 'class.phpmailer.php';
		$mail = new PHPMailer();
		$mail->IsSMTP();
		$mail->SMTPAuth = true;
		$mail->SMTPSecure = 'ssl';
		$mail->Host = 'smtp.gmail.com';
		$mail->Port = 465;
		$mail->Username = 'helico.mail.send@gmail.com';
		$mail->Password = 'Helico1122mail';
		$mail->SetFrom($mail->Username, 'helico.mail.send@gmail.com');
		$mail->AddAddress("info@helico.com.tr", "Helico");
		$mail->CharSet = 'UTF-8';
		$mail->Subject = $konu;
		$content = '
			Ad soyad '.$adsoyad.'<br>
			Telefon '.$telefon.'<br>
			E-Posta '.$eposta.'<br>
			Konu '.$konu.'<br>
			Mesaj '.$mesaj.'<br>
		';
		$mail->MsgHTML($content);
		if($mail->Send()) {

		} else {
			// bir sorun var, sorunu ekrana bast覺ral覺m
			echo '<div class="error">'.$mail->ErrorInfo.'</div>';
		}
    }

}

?>


<script type="text/javascript">

	window.location = "../basarili"

</script>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists