ÿØÿà JFIF ` ` ÿþ
|
Server : Apache/2 System : Linux srv244.medyabim.com 4.18.0-553.89.1.el8_10.x86_64 #1 SMP Mon Dec 8 03:53:08 EST 2025 x86_64 User : lionbursa ( 1773) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/lionbursa/domains/lionuluslararasidanismanlik.com/public_html/sistem/ |
Upload File : |
<!-- Start main-content -->
<div class="main-content">
<section class="inner-header divider parallax layer-overlay overlay-dark-5" data-bg-img="style/images/ust-bg.jpg">
<div class="container pt-60 pb-60">
<!-- Section Content -->
<div class="section-content">
<div class="row">
<div class="col-sm-8 text-left flip xs-text-center">
<h2 class="title text-white"><span class="text-theme-white"> <?php echo $hdil["hbilgif"]; ?></span></h2>
</div>
<div class="col-sm-4">
<ol class="breadcrumb text-right sm-text-center mt-10">
<li class="white"><a href="index.php"> <?php echo $hdil["hanasayfa"]; ?></a></li>
<li class="active text-theme-colored"><a href="#"><?php echo $hdil["hbilgif"]; ?></a></li>
</ol>
</div>
</div>
</div>
</div>
</section>
<!-- Section: services -->
<section id="services">
<div class="container pt-70 pb-40">
<div class="row multi-row-clearfix">
<div class="col-md-12">
<?php
if($_POST["ara"]) {
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$recaptcha = $_POST['g-recaptcha-response'];
if (!empty($recaptcha)) {
include "sistem/curl.php";
$google_url = "https://www.google.com/recaptcha/api/siteverify";
$secret = '' .$secretkey. '';
$ip = $_SERVER['REMOTE_ADDR'];
$url = $google_url . "?secret=" . $secret . "&response=" . $recaptcha . "&remoteip=" . $ip;
$res = curlKullan($url);
$res = json_decode($res, true);
if ($res['success']) {
$tarih = date("d-m-Y");
$ad = htmlspecialchars($_POST['ad']);
$firma = htmlspecialchars($_POST['firma']);
$telefon = guvenlik($_POST['telefon']);
$eposta = guvenlik($_POST['eposta']);
$mesaj = htmlspecialchars($_POST['mesaj']);
$urun = htmlspecialchars($_POST['urun']);
$kod = htmlspecialchars($_POST['kod']);
$okundu = guvenlik($_POST['okundu']);
$onay = guvenlik($_POST['onay']);
$insert = $db->prepare("INSERT INTO siparisler SET
ad = ?,
firma = ?,
eposta = ?,
telefon = ?,
mesaj = ?,
urun = ?,
kod = ?,
tarih = ?,
okundu = ?,
onay = ?");
$insert->execute(array(
$ad,
$firma,
$eposta,
$telefon,
$mesaj,
$urun,
$kod,
$tarih,
$okundu,
$onay
));
// -------------- SMTP SUNUCU AYARLARI BAŞLANGIÇ ----------------//
include "class.phpmailer.php"; // KLASÖR İSMİNİ DEĞİŞTİREBİLİRSİNİZ.
$sql = $db->query("SELECT * FROM ayarlar");
foreach ($sql as $a) {
$mail = new PHPMailer();
$mail->IsSMTP(); // SMTP İLE GÖNDER
$mail->CharSet = 'utf-8'; // SMTP GÖNDERİLEN MAİL KARAKTER SETİ
$mail->Host = "$a[mailserver]"; // SMTP SUNUCU
$mail->Port = "$a[mailbasligi]"; // SMTP SUNUCU PORTU : 465 VEYA 587 DİR. ANCAK HER İKİSİNDE HATA ALIRSANIZ 25 OLARAK AYARLAYIN.. " İSİMTESCİL.NET İÇİN 587 "
$mail->SMTPAuth = true; // SMTP KIMLIK DOĞRULAMASI ETKIN -- // BAZI HOSTING FIRMALARINDA GEREKLIDIR. ÖRNEK : ISIMTESCIL.NET, NATRO
$mail->Username = "$a[mailadres]"; // SMTP MAİL KULLANICI ADI
$mail->Password = "$a[mailparola]"; // SMTP MAİL ŞİFRENİZ
$mail->IsHTML(true); // SMTP MAİL HTML KULLANIMI ETKİN
$mail->From = "$a[mailadres]"; // SMTP KULLANICI ADINIZ İLE AYNI OLMALI
$mail->FromName = "$a[mailadres]"; //GÖNDEREN ADI
$mail->Sender = "$a[mailadres]"; // GÖNDEREN MAIL
$mail->AddAddress("$a[mailadres]"); //KIME GİDECEĞİ
$mail->Subject = $_POST['ad']. " Siteden Teklif Formu"; // MAİL KONUSU
//--------------- SMTP SUNUCU AYARLARI BİTİŞ -------------------------//
$id = $_GET['id'];
$mail->Body = '<table class="made-in_text" border="0" cellSpacing="10" cellPadding="4" height="254" width="700">
<tr>
<td height="30" width="145" align="left">
<font face="Tahoma" size="2"><strong>Adı Soyadı :</strong></font></td>
<td align="left" width="509" bgcolor="#F6FDEC">
<font size="2" face="Tahoma">'. $_POST['ad'] . '</font></td>
</tr>';
$mail->Body .= '<tr>
<td height="30" align="left">
<font face="Tahoma" size="2"><strong>Firma Adı :</strong></font></td>
<td align="left" width="509" bgcolor="#F6FDEC">
<font size="2" face="Tahoma">'. $_POST['firma'] . '</font></td>
</tr>';
$mail->Body .= '<tr>
<td height="30" align="left">
<font face="Tahoma" size="2"><strong>Telefon Numarası :</strong></font></td>
<td align="left" width="509" bgcolor="#F6FDEC">
<font size="2" face="Tahoma">'. $_POST['telefon'] . '</font></td>
</tr>';
$mail->Body .= '<tr>
<td height="30" align="left">
<font face="Tahoma" size="2"><strong>E-Posta :</strong></font></td>
<td align="left" width="509" bgcolor="#F6FDEC">
<font size="2" face="Tahoma">'. $_POST['eposta'] . '</font></td>
</tr>';
$mail->Body .= '<tr>
<td height="30" align="left">
<font face="Tahoma" size="2"><strong>Sipariş verilen ürün :</strong></font></td>
<td align="left" width="509" bgcolor="#F6FDEC">
<font size="2" face="Tahoma">'. $_POST['urun'] . '</font></td>
</tr>';
$mail->Body .= '<tr>
<td style="VERTICAL-ALIGN: top; PADDING-TOP: 20px" align="left">
<font face="Tahoma" size="2"><strong>Mesaj :</strong></font></td>
<td align="left" width="509" bgcolor="#F6FDEC">
<font size="2" face="Tahoma">'. $_POST['mesaj'] . '</font></td>
</tr>';
$mail->Body .= '<tr>
<td height="30" align="left">
<strong><font face="Tahoma" size="2">IP Adresi </font></strong><font face="Tahoma" size="2"><strong>:</strong></font></td>
<td align="left" width="509" bgcolor="#F6FDEC">
<font size="2" face="Tahoma">'. $_SERVER['REMOTE_ADDR'] . '</font></td>
</tr></table>';
if(!$mail->Send())
{
echo '<div class="col-md-12">
<!-- Alert -->
<div class="alert alert-gfort alert-info" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>'.$hdil["hhata"].'</div></div>';
}else{
echo '<div class="col-md-12">
<!-- Alert -->
<div class="alert alert-gfort alert-success" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>'.$hdil["hsiparisok"].'</div></div>';
}
}
}
} else {
echo ' <div class="col-md-12">
<!-- Alert -->
<div class="alert alert-gfort alert-danger" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>Lütfen bot olmadığınızı doğrulayın. <a href="">Tekrar Denemek için tıklayın.</a></div></div>';
}
} else {
echo ' <div class="col-md-12">
<!-- Alert -->
<div class="alert alert-gfort alert-danger" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>Lütfen bot olmadığınızı doğrulayın. <a href="">Tekrar Denemek için tıklayın.</a></div></div>';
}
}else{
echo ' <div class="table-responsive">
<table class="table table-striped table-bordered tbl-shopping-cart">
<thead>
<tr>
<th>Resim</th>
<th> '.$hdil["hurunadi"].'</th>
<th class="product-name">'.$hdil["hkod"].'</th>
<th class="product-price">'.$hdil["hfiyat"].'</th>
</tr>
</thead>
<tbody>
<tr class="cart_item">
<td class="product-thumbnail"><a href="#"><img alt="'.$_GET["urunadi"].'" src="upload/resimler/'.$_GET["resim"].'" height="75" style="max-height:75px; max-width:100px;"></a></td>
<td class="product-name"><a href="#">'.$_GET["urunadi"].'</a></td>
<td class="product-price"><span class="amount">'.$_GET["urunkodu"].'</span></td>
<td class="product-subtotal"><span class="amount">'.$_GET["urunfiyati"].' <i class="fa fa-try"></i></span></td>
</tr>
</tbody>
</table>
</div>';
}
?>
</div>
<form action="" method="post">
<div class="col-md-12">
<div class="col-md-6">
<div class="row">
<div class="form-group col-md-6">
<label for="checkuot-form-fname"><?php echo $hdil["had"]; ?></label>
<input class="form-control" type="text" name="ad" placeholder="<?php echo $hdil["had"]; ?>">
</div>
<div class="form-group col-md-6">
<label for="checkuot-form-lname"><?php echo $hdil["hfirma"]; ?></label>
<input class="form-control" type="text" name="firma" placeholder="<?php echo $hdil["hfirma"]; ?> ">
</div>
<div class="form-group col-md-6">
<label for="checkuot-form-cname"><?php echo $hdil["htel"]; ?></label>
<input class="form-control" type="text" name="telefon" placeholder="<?php echo $hdil["htel"]; ?>">
</div>
<div class="form-group col-md-6">
<label for="checkuot-form-email"><?php echo $hdil["hmail"]; ?></label>
<input type="email" class="form-control" name="eposta" placeholder="<?php echo $hdil["hmail"]; ?>">
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label><?php echo $hdil["hnot"]; ?></label>
<textarea class="form-control" name="mesaj" placeholder="<?php echo $hdil["hnot"]; ?>" rows="5"></textarea>
</div>
<input type="hidden" name="urun" value="<?php echo $_GET["urunadi"]; ?>"/>
<input type="hidden" name="kod" value="<?php echo $_GET["urunkodu"]; ?>"/>
<input type="hidden" name="onay" value="0"/>
<input type="hidden" name="okundu" value="0"/>
<div class="col-md-6">
<div class="g-recaptcha" data-sitekey="<?php echo $sitekey; ?>"></div>
</div>
<div class="col-md-6 text-right">
<button class="btn btn-primary btn-lg" name="ara" value="ara" type="submit"><?php echo $hdil["hsiparisver"]; ?> <i class="fa fa-arrow-circle-o-right" aria-hidden="true"></i>
</button> </div>
</div>
</div>
</form>
</div>
</div>
</section>
</div>
<!-- end main-content -->
<script src='https://www.google.com/recaptcha/api.js'></script>