LiteSpeed Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64 safemode : OFF MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF > / home / cuneytsener53 / nakliyat1.snrsoft.com.tr / | Server Ip : 104.21.78.54 |
Filename | |
Size | 24.22 kb |
Permission | rw-r--r-- |
Owner | |
Create time | 02-Mar-2025 05:46 |
Last modified | 10-Oct-2022 14:05 |
Last accessed | 04-Apr-2025 03:18 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<!--Main Footer-->
<footer class="main-footer">
<div class="upper-box">
<div class="auto-container">
<div class="row">
<div class="col-lg-6">
<div class="widget contact-widget style-two">
<div class="row">
<div class="col-md-6">
<div class="wrapper-box">
<div class="icon-box">
<div class="icon"><span class="flaticon-calling"></span></div>
<div class="text"><strong><?php echo $langArray['GENERAL_FORM_CONTACT_LANDPHONE']; ?></strong><a href="tel:<?php echo $generalSettingCheck['contact_land_phone']; ?>"><?php echo $generalSettingCheck['contact_land_phone']; ?></a></div>
</div>
<div class="icon-box">
<div class="icon"><span class="flaticon-mail"></span></div>
<div class="text"><strong><?php echo $langArray['GENERAL_FORM_SITE_EMAIL']; ?></strong><a href="mailto:<?php echo $generalSettingCheck['site_email']; ?>"><?php echo $generalSettingCheck['site_email']; ?></a></div>
</div>
<ul class="social-icon">
<?php
$socialAsk->execute(array(
'status' => 1
));
while ($socialCheck=$socialAsk->fetch(PDO::FETCH_ASSOC)){
?>
<li><a href="<?php echo $socialCheck['link']; ?>" class="fab <?php echo $socialCheck['icon']; ?>" title="<?php echo $socialCheck['name']; ?>"></a></li>
<?php } ?>
</ul>
</div>
</div>
<div class="col-md-6">
<div class="icon-box">
<div>
<div class="text"><strong><?php echo $langArray['GENERAL_FORM_CONTACT_ADRESS']; ?></strong> <?php echo $generalSettingCheck['contact_adress']; ?></div>
<div class="text"><?php echo $generalSettingCheck['work_time']; ?></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="row">
<div class="col-md-6">
<div class="widget links-widget">
<h4 class="widget_title"><?= $langArray['FOOTER_MENU_HEAD']; ?></h4>
<div class="widget-content">
<ul class="list">
<?php
$footerMenuAsk=$db->prepare("SELECT * FROM menu WHERE status=:status AND footer_menu=:footer_menu AND language=:language ORDER BY order_sort");
$footerMenuAsk->execute(array(
'status' => 1,
'footer_menu' => 1,
'language' => $getLangCheck['language_id']
));
while($footerMenuCheck=$footerMenuAsk->fetch(PDO::FETCH_ASSOC)) {
?>
<li>
<?php if($footerMenuCheck['ready_link']=="manualLink"){ ?>
<a <?= $footerMenuCheck['new_tab'] == 1 ? 'target="_blank"' : ''; ?> href="<?= $footerMenuCheck['link']?>"><?= $footerMenuCheck['title']?></a>
<?php }else{
$menulinkid=$footerMenuCheck['ready_link'];
$pageLinkAsk=$db->prepare("SELECT * FROM posts WHERE post_id=$menulinkid");
$pageLinkAsk->execute();
$pageLinkCheck=$pageLinkAsk->fetch(PDO::FETCH_ASSOC);
?>
<a <?= $footerMenuCheck['new_tab'] == 1 ? 'target="_blank"' : ''; ?> href="<?= $pageLinkCheck['seo_url']; ?>"><?= $footerMenuCheck['title']?></a>
</li>
<?php } } ?>
</ul>
</div>
</div>
</div>
<div class="col-md-6">
<div class="widget links-widget">
<h4 class="widget_title"><?php echo $langArray['SERVICES_HEAD']; ?></h4>
<div class="widget-content">
<ul class="list">
<?php
$footerNewsAsk->execute(array(
'post_type' => 'post_services',
'status' => 1,
'language' => $getLangCheck['language_id']
));
while ($footerNewsCheck1=$footerNewsAsk->fetch(PDO::FETCH_ASSOC)){
?>
<li><a href="<?php echo $footerNewsCheck1['seo_url']; ?>"><?php echo $footerNewsCheck1['title']; ?></a></li>
<?php } ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
<!--End Main Footer-->
<div class="footer-bottom">
<div class="auto-container">
<div class="row m-0 align-items-center justify-content-between">
<div class="copyright-text">Copyright © <?php echo $generalSettingCheck['site_copyright']; ?></span></div>
<ul class="menu">
<li>
<a href="<?php echo $generalSettingCheck['webmaster_link'] ?>"><?php echo $generalSettingCheck['webmaster_name'] ?></a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="scroll-to-top scroll-to-target" data-target="html"><span class="flaticon-right-arrow-6"></span></div>
<?php
$moduleAskData=$db->prepare("SELECT * FROM modules where module_id=:module_id");
$moduleAskData->execute(array(
'module_id' => 1
));
$moduleCheckData=$moduleAskData->fetch(PDO::FETCH_ASSOC);
if ($moduleCheckData['status']==1){
?>
<div id="selector">
<a href="#" data-toggle="modal" data-target="#offerModal">
<?php echo $langArray['OFFER_TITLE2']; ?>
</a>
</div>
<?php } ?>
<style media="screen">
#selector{
position: fixed;
right: -60px;
top: 45%;
transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
width: 150px;
background: #ff5f15;
text-align: center;
font-weight: 700;
z-index: 9999;
}
#selector a{
color: #fff;
}
</style>
<!-- Modal -->
<div class="modal fade" id="offerModal" tabindex="-1" aria-labelledby="offerModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"><?php echo $langArray['OFFER_TITLE3']; ?></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<form class="" action="" method="post">
<div class="modal-body">
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for=""><?= $langArray['NAME_SURNAME']; ?></label>
<input class="form-control" type="text" name="offer_name" required>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for=""><?= $langArray['PHONE']; ?></label>
<input class="form-control" type="text" name="offer_phone" required>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for=""><?= $langArray['EMAIL']; ?></label>
<input class="form-control" type="text" name="offer_email" required>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for=""><?= $langArray['SERVICES_TITLE']; ?></label>
<select name="offer_services" class="form-control">
<?php
$postAsk=$db->prepare("SELECT * FROM posts WHERE post_type=:post_type AND language=:language ORDER BY order_sort");
$postAsk->execute(array(
'post_type' => 'post_services',
'language' => $getLangCheck['language_id']
));
while ($offerServices=$postAsk->fetch(PDO::FETCH_ASSOC)) {
?>
<option value="<?= $offerServices['post_id'] ?>"><?= $offerServices['title'] ?></option>
<?php } ?>
</select>
</div>
</div>
<div id="reCaptchaCrush" class="col-md-12">
<div class="form-group">
<div class="g-recaptcha" data-sitekey="<?php echo $generalSettingCheck['site_recap_sitekey']; ?>"></div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<input type="submit" name="offerAdd" value="<?php echo $langArray['OFFER_TITLE3']; ?>" class="theme-btn btn-style-one">
</div>
</form>
</div>
</div>
</div>
<script src="assets/js/jquery.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/bootstrap-select.min.js"></script>
<script src="assets/js/jquery.fancybox.js"></script>
<script src="assets/js/isotope.js"></script>
<script src="assets/js/owl.js"></script>
<script src="assets/js/appear.js"></script>
<script src="assets/js/wow.js"></script>
<script src="assets/js/lazyload.js"></script>
<script src="assets/js/scrollbar.js"></script>
<script src="assets/js/TweenMax.min.js"></script>
<script src="assets/js/swiper.min.js"></script>
<script src="assets/js/jquery.polyglot.language.switcher.js"></script>
<script src="assets/js/jquery.ajaxchimp.min.js"></script>
<script src="assets/js/parallax-scroll.js"></script>
<script src="assets/js/script.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
$("#exampleModal").modal("show");
});
</script>
<?php
if(isset($_POST['offerAdd'])){
require_once 'adminx/system/db.php';
require_once 'adminx/system/class.phpmailer.php';
date_default_timezone_set('Europe/Istanbul');
$dates = date("Y-m-d H:i:s");
$secretKey = $generalSettingCheck['site_recap_secretkey'];
$responseKey = $_POST['g-recaptcha-response'];
$UserIP = $_SERVER['REMOTE_ADDR'];
$url = "https://www.google.com/recaptcha/api/siteverify?secret=$secretKey&response=$responseKey&remoteip=$UserIP";
$response = file_get_contents($url);
$response = json_decode($response);
if ($response->success) {
// VT Ekleme
$offerAdd=$db->prepare("INSERT INTO offer SET
ip=:ip,
offer_name=:offer_name,
offer_phone=:offer_phone,
offer_email=:offer_email,
offer_services=:offer_services,
status=:status
");
$insert=$offerAdd->execute(array(
'ip' => $ip_adresi,
'offer_name' => strip_tags($_POST['offer_name']),
'offer_phone' => strip_tags($_POST['offer_phone']),
'offer_email' => strip_tags($_POST['offer_email']),
'offer_services' => strip_tags($_POST['offer_services']),
'status' => 0
));
if ($insert) {
// Mail Gonderme
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = $generalSettingCheck['site_smtphost'];
$mail->SMTPAuth = true;
$mail->Username = $generalSettingCheck['site_smtpuser'];
$mail->Password = $generalSettingCheck['site_smtppassword'];
$mail->CharSet = 'UTF-8';
$mail->Port = $generalSettingCheck['site_smtpport'];
$mail->From = $generalSettingCheck['site_smtpuser'];
$mail->Fromname = $_POST['offer_name'];;
$mail->AddAddress($generalSettingCheck['site_email']);
$mail->Subject = $langArray['MSG_HEAD_OFFER'];
$mail->IsHTML(true);
$mail->Body = $langArray['MSG_CONTENT_OFFER'];
if(!$mail->Send()){
echo "Mesaj Gönderilemedi";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo '
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-success">'.$langArray['ACCEPT_OFFER'].'</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
</div>
</div>
</div>
</div>
';
}else{
echo '
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-danger">'.$langArray['ACCEPT_ERROR'].'</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
</div>
</div>
</div>
</div>
';
}
}else{
echo '
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-danger">'.$langArray['VERIFICATION_ERROR'].'</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
</div>
</div>
</div>
</div>
';
}
}
?>
<?php
if(isset($_POST['contactSubmit'])){
error_reporting(0);
require_once 'adminx/system/db.php';
require_once 'adminx/system/class.phpmailer.php';
date_default_timezone_set('Europe/Istanbul');
$dates = date("Y-m-d H:i:s");
$secretKey = $generalSettingCheck['site_recap_secretkey'];
$responseKey = $_POST['g-recaptcha-response'];
$UserIP = $_SERVER['REMOTE_ADDR'];
$url = "https://www.google.com/recaptcha/api/siteverify?secret=$secretKey&response=$responseKey&remoteip=$UserIP";
$response = file_get_contents($url);
$response = json_decode($response);
if ($response->success) {
// VT Ekleme
$haberekle=$db->prepare("INSERT INTO contact_log SET
ip=:ip,
namesurname=:namesurname,
email=:email,
phone=:phone,
subject=:subject,
message=:message,
dates=:dates,
status=:status
");
$insert=$haberekle->execute(array(
'ip' => $ip_adresi,
'namesurname' => strip_tags($_POST['namesurname']),
'email' => strip_tags($_POST['email']),
'phone' => strip_tags($_POST['phone']),
'subject' => strip_tags($_POST['subject']),
'message' => strip_tags($_POST['message']),
'dates' => $dates,
'status' => 0
));
if ($insert) {
// Mail Gonderme
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = $generalSettingCheck['site_smtphost'];
$mail->SMTPAuth = true;
$mail->Username = $generalSettingCheck['site_smtpuser'];
$mail->Password = $generalSettingCheck['site_smtppassword'];
$mail->CharSet = 'UTF-8';
$mail->Port = $generalSettingCheck['site_smtpport'];
$mail->From = $generalSettingCheck['site_smtpuser'];
$mail->Fromname = $_POST['namesurname'];;
$mail->AddAddress($generalSettingCheck['site_email']);
$mail->Subject = $langArray['MSG_HEAD_CONTACT'];
$mail->IsHTML(true);
$mail->Body = '
<table style="width:100%;border:0;">
<tr>
<td style="border:1px solid #ddd;padding:5px">'.urldecode($_POST['namesurname']).'</td>
</tr>
<tr>
<td style="border:1px solid #ddd;padding:5px">'.urldecode($_POST['email']).'</td>
</tr>
<tr>
<td style="border:1px solid #ddd;padding:5px">'.urldecode($_POST['phone']).'</td>
</tr>
<tr>
<td style="border:1px solid #ddd;padding:5px">'.urldecode($_POST['subject']).'</td>
</tr>
<tr>
<td style="border:1px solid #ddd;padding:5px">'.urldecode($_POST['message']).'</td>
</tr>
</table>
';
if(!$mail->Send()){
echo "Mesaj Gönderilemedi";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo '
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-success">'.$langArray['ACCEPT_CONTACT'].'</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
</div>
</div>
</div>
</div>
';
}else{
echo '
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-danger">'.$langArray['ACCEPT_ERROR'].'</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
</div>
</div>
</div>
</div>
';
}
}else{
echo '
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-danger">'.$langArray['VERIFICATION_ERROR'].'</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
</div>
</div>
</div>
</div>
';
}
}
?>
<?php
if(isset($_POST['packetOrder'])){
global $packtitle;
global $packprice;
error_reporting(1);
require_once 'adminx/system/db.php';
require_once 'adminx/system/class.phpmailer.php';
date_default_timezone_set('Europe/Istanbul');
$dates = date("Y-m-d H:i:s");
$secretKey = $generalSettingCheck['site_recap_secretkey'];
$responseKey = $_POST['g-recaptcha-response'];
$UserIP = $_SERVER['REMOTE_ADDR'];
$url = "https://www.google.com/recaptcha/api/siteverify?secret=$secretKey&response=$responseKey&remoteip=$UserIP";
$response = file_get_contents($url);
$response = json_decode($response);
if ($response->success) {
// VT Ekleme
$haberekle=$db->prepare("INSERT INTO orders SET
order_type=:order_type,
order_code=:order_code,
ip=:ip,
product=:product,
price=:price,
quantity=:quantity,
name_surname=:name_surname,
phone=:phone,
email=:email,
adress=:adress,
description=:description,
dates=:dates,
status=:status
");
$insert=$haberekle->execute(array(
'order_type' => 'order_packet',
'order_code' => seo($_POST['title']) .'-'.mb_substr($code, 0, 5),
'ip' => $ip_adresi,
'product' => strip_tags($_POST['packet']),
'price' => strip_tags($_POST['price']),
'quantity' => 1,
'name_surname' => strip_tags($_POST['name_surname']),
'phone' => strip_tags($_POST['phone']),
'email' => strip_tags($_POST['email']),
'adress' => strip_tags($_POST['adress']),
'description' => strip_tags($_POST['description']),
'dates' => $dates,
'status' => 0
));
if ($insert) {
// Mail Gonderme
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = $generalSettingCheck['site_smtphost'];
$mail->SMTPAuth = true;
$mail->Username = $generalSettingCheck['site_smtpuser'];
$mail->Password = $generalSettingCheck['site_smtppassword'];
$mail->CharSet = 'UTF-8';
$mail->Port = $generalSettingCheck['site_smtpport'];
$mail->From = $generalSettingCheck['site_smtpuser'];
$mail->Fromname = $_POST['name_surname'];;
$mail->AddAddress($generalSettingCheck['site_email']);
$mail->Subject = $langArray['MSG_HEAD_PACKET'];
$mail->IsHTML(true);
$mail->Body = $langArray['MSG_CONTENT'];
if(!$mail->Send()){
echo "Mesaj Gönderilemedi";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo '
<div class="col-sm-12">
<span class="alert alert-success block">'.$langArray['ACCEPT_ORDER'].'</span>
</div>
';
}else{
echo '
<div class="col-sm-12">
<span class="alert alert-success block">'.$langArray['ACCEPT_ERROR'].'</span>
</div>
';
}
}else{
echo '
<div class="col-sm-12">
<span class="alert alert-danger block">'.$langArray['VERIFICATION_ERROR'].'</span>
</div>
';
}
}
?>
<?= $generalSettingCheck['footer_code']; ?>
<!-- <div class="side-bar-menu en side-bar-menu-visible ">
<div class="sidebar-item phone-sidebar">
<div class="phone-container">
<a href="tel:4448437">
<div class="side-phone">
<div class="sidebar-img-container">
<i class="fa fa-phone"></i>
</div>
<p><span>Ara</span></p>
</div>
<div class="side-phone-slide">
<p style="margin-top: 10px;"><a href="tel:<?php echo $generalSettingCheck['contact_land_phone']; ?>"><?php echo $generalSettingCheck['contact_land_phone']; ?></a></p>
<i class="fa fa-phone text-white"></i>
</div>
</a>
</div>
</div>
<div class="sidebar-item">
<a href="https://api.whatsapp.com/send?phone=9<?php echo $generalSettingCheck['contact_whatsapp']; ?>&text=Merhaba" target="_blank">
<div class="sidebar-img-container">
<i class="fa fa-whatsapp"></i>
</div>
<p><span>WhatsApp</span></p>
</a>
</div>
</div> -->
</body>
</html>
<footer class="main-footer">
<div class="upper-box">
<div class="auto-container">
<div class="row">
<div class="col-lg-6">
<div class="widget contact-widget style-two">
<div class="row">
<div class="col-md-6">
<div class="wrapper-box">
<div class="icon-box">
<div class="icon"><span class="flaticon-calling"></span></div>
<div class="text"><strong><?php echo $langArray['GENERAL_FORM_CONTACT_LANDPHONE']; ?></strong><a href="tel:<?php echo $generalSettingCheck['contact_land_phone']; ?>"><?php echo $generalSettingCheck['contact_land_phone']; ?></a></div>
</div>
<div class="icon-box">
<div class="icon"><span class="flaticon-mail"></span></div>
<div class="text"><strong><?php echo $langArray['GENERAL_FORM_SITE_EMAIL']; ?></strong><a href="mailto:<?php echo $generalSettingCheck['site_email']; ?>"><?php echo $generalSettingCheck['site_email']; ?></a></div>
</div>
<ul class="social-icon">
<?php
$socialAsk->execute(array(
'status' => 1
));
while ($socialCheck=$socialAsk->fetch(PDO::FETCH_ASSOC)){
?>
<li><a href="<?php echo $socialCheck['link']; ?>" class="fab <?php echo $socialCheck['icon']; ?>" title="<?php echo $socialCheck['name']; ?>"></a></li>
<?php } ?>
</ul>
</div>
</div>
<div class="col-md-6">
<div class="icon-box">
<div>
<div class="text"><strong><?php echo $langArray['GENERAL_FORM_CONTACT_ADRESS']; ?></strong> <?php echo $generalSettingCheck['contact_adress']; ?></div>
<div class="text"><?php echo $generalSettingCheck['work_time']; ?></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="row">
<div class="col-md-6">
<div class="widget links-widget">
<h4 class="widget_title"><?= $langArray['FOOTER_MENU_HEAD']; ?></h4>
<div class="widget-content">
<ul class="list">
<?php
$footerMenuAsk=$db->prepare("SELECT * FROM menu WHERE status=:status AND footer_menu=:footer_menu AND language=:language ORDER BY order_sort");
$footerMenuAsk->execute(array(
'status' => 1,
'footer_menu' => 1,
'language' => $getLangCheck['language_id']
));
while($footerMenuCheck=$footerMenuAsk->fetch(PDO::FETCH_ASSOC)) {
?>
<li>
<?php if($footerMenuCheck['ready_link']=="manualLink"){ ?>
<a <?= $footerMenuCheck['new_tab'] == 1 ? 'target="_blank"' : ''; ?> href="<?= $footerMenuCheck['link']?>"><?= $footerMenuCheck['title']?></a>
<?php }else{
$menulinkid=$footerMenuCheck['ready_link'];
$pageLinkAsk=$db->prepare("SELECT * FROM posts WHERE post_id=$menulinkid");
$pageLinkAsk->execute();
$pageLinkCheck=$pageLinkAsk->fetch(PDO::FETCH_ASSOC);
?>
<a <?= $footerMenuCheck['new_tab'] == 1 ? 'target="_blank"' : ''; ?> href="<?= $pageLinkCheck['seo_url']; ?>"><?= $footerMenuCheck['title']?></a>
</li>
<?php } } ?>
</ul>
</div>
</div>
</div>
<div class="col-md-6">
<div class="widget links-widget">
<h4 class="widget_title"><?php echo $langArray['SERVICES_HEAD']; ?></h4>
<div class="widget-content">
<ul class="list">
<?php
$footerNewsAsk->execute(array(
'post_type' => 'post_services',
'status' => 1,
'language' => $getLangCheck['language_id']
));
while ($footerNewsCheck1=$footerNewsAsk->fetch(PDO::FETCH_ASSOC)){
?>
<li><a href="<?php echo $footerNewsCheck1['seo_url']; ?>"><?php echo $footerNewsCheck1['title']; ?></a></li>
<?php } ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
<!--End Main Footer-->
<div class="footer-bottom">
<div class="auto-container">
<div class="row m-0 align-items-center justify-content-between">
<div class="copyright-text">Copyright © <?php echo $generalSettingCheck['site_copyright']; ?></span></div>
<ul class="menu">
<li>
<a href="<?php echo $generalSettingCheck['webmaster_link'] ?>"><?php echo $generalSettingCheck['webmaster_name'] ?></a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="scroll-to-top scroll-to-target" data-target="html"><span class="flaticon-right-arrow-6"></span></div>
<?php
$moduleAskData=$db->prepare("SELECT * FROM modules where module_id=:module_id");
$moduleAskData->execute(array(
'module_id' => 1
));
$moduleCheckData=$moduleAskData->fetch(PDO::FETCH_ASSOC);
if ($moduleCheckData['status']==1){
?>
<div id="selector">
<a href="#" data-toggle="modal" data-target="#offerModal">
<?php echo $langArray['OFFER_TITLE2']; ?>
</a>
</div>
<?php } ?>
<style media="screen">
#selector{
position: fixed;
right: -60px;
top: 45%;
transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
width: 150px;
background: #ff5f15;
text-align: center;
font-weight: 700;
z-index: 9999;
}
#selector a{
color: #fff;
}
</style>
<!-- Modal -->
<div class="modal fade" id="offerModal" tabindex="-1" aria-labelledby="offerModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"><?php echo $langArray['OFFER_TITLE3']; ?></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<form class="" action="" method="post">
<div class="modal-body">
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for=""><?= $langArray['NAME_SURNAME']; ?></label>
<input class="form-control" type="text" name="offer_name" required>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for=""><?= $langArray['PHONE']; ?></label>
<input class="form-control" type="text" name="offer_phone" required>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for=""><?= $langArray['EMAIL']; ?></label>
<input class="form-control" type="text" name="offer_email" required>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for=""><?= $langArray['SERVICES_TITLE']; ?></label>
<select name="offer_services" class="form-control">
<?php
$postAsk=$db->prepare("SELECT * FROM posts WHERE post_type=:post_type AND language=:language ORDER BY order_sort");
$postAsk->execute(array(
'post_type' => 'post_services',
'language' => $getLangCheck['language_id']
));
while ($offerServices=$postAsk->fetch(PDO::FETCH_ASSOC)) {
?>
<option value="<?= $offerServices['post_id'] ?>"><?= $offerServices['title'] ?></option>
<?php } ?>
</select>
</div>
</div>
<div id="reCaptchaCrush" class="col-md-12">
<div class="form-group">
<div class="g-recaptcha" data-sitekey="<?php echo $generalSettingCheck['site_recap_sitekey']; ?>"></div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<input type="submit" name="offerAdd" value="<?php echo $langArray['OFFER_TITLE3']; ?>" class="theme-btn btn-style-one">
</div>
</form>
</div>
</div>
</div>
<script src="assets/js/jquery.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/bootstrap-select.min.js"></script>
<script src="assets/js/jquery.fancybox.js"></script>
<script src="assets/js/isotope.js"></script>
<script src="assets/js/owl.js"></script>
<script src="assets/js/appear.js"></script>
<script src="assets/js/wow.js"></script>
<script src="assets/js/lazyload.js"></script>
<script src="assets/js/scrollbar.js"></script>
<script src="assets/js/TweenMax.min.js"></script>
<script src="assets/js/swiper.min.js"></script>
<script src="assets/js/jquery.polyglot.language.switcher.js"></script>
<script src="assets/js/jquery.ajaxchimp.min.js"></script>
<script src="assets/js/parallax-scroll.js"></script>
<script src="assets/js/script.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
$("#exampleModal").modal("show");
});
</script>
<?php
if(isset($_POST['offerAdd'])){
require_once 'adminx/system/db.php';
require_once 'adminx/system/class.phpmailer.php';
date_default_timezone_set('Europe/Istanbul');
$dates = date("Y-m-d H:i:s");
$secretKey = $generalSettingCheck['site_recap_secretkey'];
$responseKey = $_POST['g-recaptcha-response'];
$UserIP = $_SERVER['REMOTE_ADDR'];
$url = "https://www.google.com/recaptcha/api/siteverify?secret=$secretKey&response=$responseKey&remoteip=$UserIP";
$response = file_get_contents($url);
$response = json_decode($response);
if ($response->success) {
// VT Ekleme
$offerAdd=$db->prepare("INSERT INTO offer SET
ip=:ip,
offer_name=:offer_name,
offer_phone=:offer_phone,
offer_email=:offer_email,
offer_services=:offer_services,
status=:status
");
$insert=$offerAdd->execute(array(
'ip' => $ip_adresi,
'offer_name' => strip_tags($_POST['offer_name']),
'offer_phone' => strip_tags($_POST['offer_phone']),
'offer_email' => strip_tags($_POST['offer_email']),
'offer_services' => strip_tags($_POST['offer_services']),
'status' => 0
));
if ($insert) {
// Mail Gonderme
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = $generalSettingCheck['site_smtphost'];
$mail->SMTPAuth = true;
$mail->Username = $generalSettingCheck['site_smtpuser'];
$mail->Password = $generalSettingCheck['site_smtppassword'];
$mail->CharSet = 'UTF-8';
$mail->Port = $generalSettingCheck['site_smtpport'];
$mail->From = $generalSettingCheck['site_smtpuser'];
$mail->Fromname = $_POST['offer_name'];;
$mail->AddAddress($generalSettingCheck['site_email']);
$mail->Subject = $langArray['MSG_HEAD_OFFER'];
$mail->IsHTML(true);
$mail->Body = $langArray['MSG_CONTENT_OFFER'];
if(!$mail->Send()){
echo "Mesaj Gönderilemedi";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo '
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-success">'.$langArray['ACCEPT_OFFER'].'</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
</div>
</div>
</div>
</div>
';
}else{
echo '
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-danger">'.$langArray['ACCEPT_ERROR'].'</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
</div>
</div>
</div>
</div>
';
}
}else{
echo '
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-danger">'.$langArray['VERIFICATION_ERROR'].'</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
</div>
</div>
</div>
</div>
';
}
}
?>
<?php
if(isset($_POST['contactSubmit'])){
error_reporting(0);
require_once 'adminx/system/db.php';
require_once 'adminx/system/class.phpmailer.php';
date_default_timezone_set('Europe/Istanbul');
$dates = date("Y-m-d H:i:s");
$secretKey = $generalSettingCheck['site_recap_secretkey'];
$responseKey = $_POST['g-recaptcha-response'];
$UserIP = $_SERVER['REMOTE_ADDR'];
$url = "https://www.google.com/recaptcha/api/siteverify?secret=$secretKey&response=$responseKey&remoteip=$UserIP";
$response = file_get_contents($url);
$response = json_decode($response);
if ($response->success) {
// VT Ekleme
$haberekle=$db->prepare("INSERT INTO contact_log SET
ip=:ip,
namesurname=:namesurname,
email=:email,
phone=:phone,
subject=:subject,
message=:message,
dates=:dates,
status=:status
");
$insert=$haberekle->execute(array(
'ip' => $ip_adresi,
'namesurname' => strip_tags($_POST['namesurname']),
'email' => strip_tags($_POST['email']),
'phone' => strip_tags($_POST['phone']),
'subject' => strip_tags($_POST['subject']),
'message' => strip_tags($_POST['message']),
'dates' => $dates,
'status' => 0
));
if ($insert) {
// Mail Gonderme
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = $generalSettingCheck['site_smtphost'];
$mail->SMTPAuth = true;
$mail->Username = $generalSettingCheck['site_smtpuser'];
$mail->Password = $generalSettingCheck['site_smtppassword'];
$mail->CharSet = 'UTF-8';
$mail->Port = $generalSettingCheck['site_smtpport'];
$mail->From = $generalSettingCheck['site_smtpuser'];
$mail->Fromname = $_POST['namesurname'];;
$mail->AddAddress($generalSettingCheck['site_email']);
$mail->Subject = $langArray['MSG_HEAD_CONTACT'];
$mail->IsHTML(true);
$mail->Body = '
<table style="width:100%;border:0;">
<tr>
<td style="border:1px solid #ddd;padding:5px">'.urldecode($_POST['namesurname']).'</td>
</tr>
<tr>
<td style="border:1px solid #ddd;padding:5px">'.urldecode($_POST['email']).'</td>
</tr>
<tr>
<td style="border:1px solid #ddd;padding:5px">'.urldecode($_POST['phone']).'</td>
</tr>
<tr>
<td style="border:1px solid #ddd;padding:5px">'.urldecode($_POST['subject']).'</td>
</tr>
<tr>
<td style="border:1px solid #ddd;padding:5px">'.urldecode($_POST['message']).'</td>
</tr>
</table>
';
if(!$mail->Send()){
echo "Mesaj Gönderilemedi";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo '
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-success">'.$langArray['ACCEPT_CONTACT'].'</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
</div>
</div>
</div>
</div>
';
}else{
echo '
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-danger">'.$langArray['ACCEPT_ERROR'].'</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
</div>
</div>
</div>
</div>
';
}
}else{
echo '
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-danger">'.$langArray['VERIFICATION_ERROR'].'</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kapat</button>
</div>
</div>
</div>
</div>
';
}
}
?>
<?php
if(isset($_POST['packetOrder'])){
global $packtitle;
global $packprice;
error_reporting(1);
require_once 'adminx/system/db.php';
require_once 'adminx/system/class.phpmailer.php';
date_default_timezone_set('Europe/Istanbul');
$dates = date("Y-m-d H:i:s");
$secretKey = $generalSettingCheck['site_recap_secretkey'];
$responseKey = $_POST['g-recaptcha-response'];
$UserIP = $_SERVER['REMOTE_ADDR'];
$url = "https://www.google.com/recaptcha/api/siteverify?secret=$secretKey&response=$responseKey&remoteip=$UserIP";
$response = file_get_contents($url);
$response = json_decode($response);
if ($response->success) {
// VT Ekleme
$haberekle=$db->prepare("INSERT INTO orders SET
order_type=:order_type,
order_code=:order_code,
ip=:ip,
product=:product,
price=:price,
quantity=:quantity,
name_surname=:name_surname,
phone=:phone,
email=:email,
adress=:adress,
description=:description,
dates=:dates,
status=:status
");
$insert=$haberekle->execute(array(
'order_type' => 'order_packet',
'order_code' => seo($_POST['title']) .'-'.mb_substr($code, 0, 5),
'ip' => $ip_adresi,
'product' => strip_tags($_POST['packet']),
'price' => strip_tags($_POST['price']),
'quantity' => 1,
'name_surname' => strip_tags($_POST['name_surname']),
'phone' => strip_tags($_POST['phone']),
'email' => strip_tags($_POST['email']),
'adress' => strip_tags($_POST['adress']),
'description' => strip_tags($_POST['description']),
'dates' => $dates,
'status' => 0
));
if ($insert) {
// Mail Gonderme
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = $generalSettingCheck['site_smtphost'];
$mail->SMTPAuth = true;
$mail->Username = $generalSettingCheck['site_smtpuser'];
$mail->Password = $generalSettingCheck['site_smtppassword'];
$mail->CharSet = 'UTF-8';
$mail->Port = $generalSettingCheck['site_smtpport'];
$mail->From = $generalSettingCheck['site_smtpuser'];
$mail->Fromname = $_POST['name_surname'];;
$mail->AddAddress($generalSettingCheck['site_email']);
$mail->Subject = $langArray['MSG_HEAD_PACKET'];
$mail->IsHTML(true);
$mail->Body = $langArray['MSG_CONTENT'];
if(!$mail->Send()){
echo "Mesaj Gönderilemedi";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo '
<div class="col-sm-12">
<span class="alert alert-success block">'.$langArray['ACCEPT_ORDER'].'</span>
</div>
';
}else{
echo '
<div class="col-sm-12">
<span class="alert alert-success block">'.$langArray['ACCEPT_ERROR'].'</span>
</div>
';
}
}else{
echo '
<div class="col-sm-12">
<span class="alert alert-danger block">'.$langArray['VERIFICATION_ERROR'].'</span>
</div>
';
}
}
?>
<?= $generalSettingCheck['footer_code']; ?>
<!-- <div class="side-bar-menu en side-bar-menu-visible ">
<div class="sidebar-item phone-sidebar">
<div class="phone-container">
<a href="tel:4448437">
<div class="side-phone">
<div class="sidebar-img-container">
<i class="fa fa-phone"></i>
</div>
<p><span>Ara</span></p>
</div>
<div class="side-phone-slide">
<p style="margin-top: 10px;"><a href="tel:<?php echo $generalSettingCheck['contact_land_phone']; ?>"><?php echo $generalSettingCheck['contact_land_phone']; ?></a></p>
<i class="fa fa-phone text-white"></i>
</div>
</a>
</div>
</div>
<div class="sidebar-item">
<a href="https://api.whatsapp.com/send?phone=9<?php echo $generalSettingCheck['contact_whatsapp']; ?>&text=Merhaba" target="_blank">
<div class="sidebar-img-container">
<i class="fa fa-whatsapp"></i>
</div>
<p><span>WhatsApp</span></p>
</a>
</div>
</div> -->
</body>
</html>