<?php
include("include/baglan.php");
include("include/fonksiyonlar.php");
ob_start();
session_start();
oturumkontrolana();

$id=$_SESSION['id'];
$hesabim=$db->query("select * from yonetici where id='$id'")->fetch(PDO::FETCH_ASSOC);

if(isset($_POST['kaydet'])){
$id=1;
$site_title=$_POST['site_title'];
$site_title_en=$_POST['site_title_en'];
$site_title_ar=$_POST['site_title_ar'];
$site_title_ru=$_POST['site_title_ru'];
$site_title_de=$_POST['site_title_de'];
$site_title_it=$_POST['site_title_it'];
$site_meta=$_POST['site_meta'];
$site_meta_en=$_POST['site_meta_en'];
$site_meta_ar=$_POST['site_meta_ar'];
$site_meta_ru=$_POST['site_meta_ru'];
$site_meta_de=$_POST['site_meta_de'];
$site_meta_it=$_POST['site_meta_it'];
$site_description=$_POST['site_description'];
$site_description_en=$_POST['site_description_en'];
$site_description_ar=$_POST['site_description_ar'];
$site_description_ru=$_POST['site_description_ru'];
$site_description_de=$_POST['site_description_de'];
$site_description_it=$_POST['site_description_it'];
$site_mail=$_POST['site_mail'];
$site_mail_sifre=$_POST['site_mail_sifre'];
$site_mail_host=$_POST['site_mail_host'];
$site_mail_port=$_POST['site_mail_port'];
$gonderen_mail=$_POST['gonderen_mail'];
$facebook=$_POST['facebook'];
$instagram=$_POST['instagram'];
$twitter=$_POST['twitter'];
$youtube=$_POST['youtube'];
$linkedin=$_POST['linkedin'];
$google=$_POST['google'];
$anadil=$_POST['anadil'];
$baslangic=$_POST['baslangic'];
$bitis=$_POST['bitis'];
$firma_telefon1=$_POST['firma_telefon1'];
$firma_telefon2=$_POST['firma_telefon2'];
$firma_telefon3=$_POST['firma_telefon3'];
$firma_telefon4=$_POST['firma_telefon4'];
$firma_email1=$_POST['firma_email1'];
$firma_email2=$_POST['firma_email2'];
$firma_adres1=$_POST['firma_adres1'];
$firma_adres2=$_POST['firma_adres2'];
$whatsapp=$_POST['whatsapp'];
$firma_fax=$_POST['firma_fax'];
$footer_copyright=$_POST['footer_copyright'];
$footer_copyright_en=$_POST['footer_copyright_en'];
$footer_copyright_ar=$_POST['footer_copyright_ar'];
$footer_copyright_ru=$_POST['footer_copyright_ru'];
$footer_copyright_de=$_POST['footer_copyright_de'];
$footer_copyright_it=$_POST['footer_copyright_it'];
$google_maps=$_POST['google_maps'];
$google_maps2=$_POST['google_maps2'];
$head=$_POST['head'];
$renk1=$_POST['renk1'];
$renk2=$_POST['renk2'];
$renk3=$_POST['renk3'];
$renk4=$_POST['renk4'];

function seflink($string){
$find = array('á','é','ó','í','Ç', 'Ş', 'Ğ', 'Ü', 'İ', 'Ö', 'ç', 'ş', 'ğ', 'ü', 'ö', 'ı', '+', '#');
$replace = array('a','e','o','i','c', 's', 'g', 'u', 'i', 'o', 'c', 's', 'g', 'u', 'o', 'i', 'plus', 'sharp');
$string = strtolower(str_replace($find, $replace, $string));
$string = preg_replace("@[^A-Za-z0-9\-_\.\+]@i", ' ', $string);
$string = trim(preg_replace('/\s+/', ' ', $string));
$string = str_replace(' ', '-', $string);
return $string;
}

$seo= seflink($site_title);


	$klasor="lib/images/logo/";
	$resim_tmp = $_FILES['logo']['tmp_name'];
	
	if(empty($resim_tmp))
	{
		$duzenlenecek_id = 1;
		$ayar_kaydi = $db->query("SELECT * FROM ayar WHERE id = '$duzenlenecek_id'")->fetch(PDO::FETCH_ASSOC);
		$logo = $ayar_kaydi['logo'];
	}
	else
	{
		if ($_FILES["logo"]["type"] =="image/gif" || $_FILES["logo"]["type"] =="image/png"|| $_FILES["logo"]["type"] =="image/jpg"|| $_FILES["logo"]["type"] =="image/jpeg") 
		{
			$ayar_kaydi = $db->query("SELECT * FROM ayar WHERE id = '$duzenlenecek_id'")->fetch(PDO::FETCH_ASSOC);
  			if($ayar_kaydi['logo']!="resim-yok")
			{
			  unlink("lib/images/logo/".$ayar_kaydi['logo']);	  
			}
			$random = rand(0,9999);
			$logo = $random."-".$seo.".".substr($_FILES['logo']['name'], -3);
			move_uploaded_file($_FILES['logo']['tmp_name'],$klasor."/".$logo);
		}
		else
		{
			$bilgi = '<div class="alert alert-error">
					<button class="close" data-dismiss="alert">×</button>
					<strong>Hata !</strong> Lütfen  Uygun Formatta Bir Resim Dosyası Seçiniz ( .jpg - .gif - .png ).
					</div>';
		}
	}
	
	
	$klasor1="lib/images/logo/";
	$resim_tmp1 = $_FILES['footer_logo']['tmp_name'];
	
	if(empty($resim_tmp1))
	{
		$duzenlenecek_id = 1;
		$ayar_kaydi = $db->query("SELECT * FROM ayar WHERE id = '$duzenlenecek_id'")->fetch(PDO::FETCH_ASSOC);
		$footer_logo = $ayar_kaydi['footer_logo'];
	}
	else
	{
		if ($_FILES["footer_logo"]["type"] =="image/gif" || $_FILES["footer_logo"]["type"] =="image/png"|| $_FILES["footer_logo"]["type"] =="image/jpg"|| $_FILES["footer_logo"]["type"] =="image/jpeg") 
		{
			$ayar_kaydi = $db->query("SELECT * FROM ayar WHERE id = '$duzenlenecek_id'")->fetch(PDO::FETCH_ASSOC);
  			if($ayar_kaydi['footer_logo']!="resim-yok")
			{
			  unlink("lib/images/logo/".$ayar_kaydi['footer_logo']);	  
			}
			
			$random = rand(0,9999);
			$footer_logo = $random."-".$seo.".".substr($_FILES['footer_logo']['name'], -3);
			move_uploaded_file($_FILES['footer_logo']['tmp_name'],$klasor1."/".$footer_logo);
		}
		else
		{
			$bilgi = '<div class="alert alert-error">
						<button class="close" data-dismiss="alert">×</button>
						<strong>Hata !</strong> Lütfen  Uygun Formatta Bir Resim Dosyası Seçiniz ( .jpg - .gif - .png ).
			</div>';
		}
	}
	

	$klasor2="lib/images/logo/";
	$resim_tmp2 = $_FILES['favicon']['tmp_name'];
	
	if(empty($resim_tmp2))
	{
		$duzenlenecek_id = 1;
		$ayar_kaydi = $db->query("SELECT * FROM ayar WHERE id = '$duzenlenecek_id'")->fetch(PDO::FETCH_ASSOC);
		$favicon = $ayar_kaydi['favicon'];
	}
	else
	{
		if ($_FILES["favicon"]["type"] =="image/gif" || $_FILES["favicon"]["type"] =="image/png"|| $_FILES["favicon"]["type"] =="image/jpg"|| $_FILES["favicon"]["type"] =="image/jpeg") 
		{
			$ayar_kaydi = $db->query("SELECT * FROM ayar WHERE id = '$duzenlenecek_id'")->fetch(PDO::FETCH_ASSOC);
  			if($ayar_kaydi['favicon']!="resim-yok")
			{
			  unlink("lib/images/logo/".$ayar_kaydi['favicon']);	  
			}
			$random = rand(0,9999);
			$favicon = $random."-".$seo.".".substr($_FILES['favicon']['name'], -3);
			move_uploaded_file($_FILES['favicon']['tmp_name'],$klasor2."/".$favicon);
		}
		else
		{
			$bilgi = '<div class="alert alert-error">
						<button class="close" data-dismiss="alert">×</button>
						<strong>Hata !</strong> Lütfen  Uygun Formatta Bir Resim Dosyası Seçiniz ( .jpg - .gif - .png ).
					</div>';
		}
	}

$guncelle=$db->prepare("update ayar set renk4=:renk4,renk1=:renk1,renk2=:renk2,renk3=:renk3,gonderen_mail=:gonderen_mail,head=:head,site_title=:site_title,site_title_en=:site_title_en,site_title_ar=:site_title_ar,site_title_ru=:site_title_ru,site_title_de=:site_title_de,site_title_it=:site_title_it,site_meta=:site_meta,site_meta_en=:site_meta_en,site_meta_ar=:site_meta_ar,site_meta_ru=:site_meta_ru,site_meta_de=:site_meta_de,site_meta_it=:site_meta_it,site_description=:site_description,site_description_en=:site_description_en,site_description_ar=:site_description_ar,site_description_ru=:site_description_ru,site_description_de=:site_description_de,site_description_it=:site_description_it,logo=:logo,footer_logo=:footer_logo,favicon=:favicon,site_mail=:site_mail,site_mail_sifre=:site_mail_sifre,site_mail_host=:site_mail_host,site_mail_port=:site_mail_port,facebook=:facebook,instagram=:instagram,twitter=:twitter,youtube=:youtube,linkedin=:linkedin,google=:google,anadil=:anadil,baslangic=:baslangic,bitis=:bitis,firma_telefon1=:firma_telefon1,firma_telefon2=:firma_telefon2,firma_telefon3=:firma_telefon3,firma_telefon4=:firma_telefon4,firma_email1=:firma_email1,firma_email2=:firma_email2,firma_adres1=:firma_adres1,firma_adres2=:firma_adres2,whatsapp=:whatsapp,firma_fax=:firma_fax,footer_copyright=:footer_copyright,footer_copyright_en=:footer_copyright_en,footer_copyright_ar=:footer_copyright_ar,footer_copyright_ru=:footer_copyright_ru,footer_copyright_de=:footer_copyright_de,footer_copyright_it=:footer_copyright_it,google_maps=:google_maps,google_maps2=:google_maps2 where id=:id");

$simdi=$guncelle->execute(array("renk4"=>$renk4,"renk1"=>$renk1,"renk2"=>$renk2,"renk3"=>$renk3,"gonderen_mail"=>$gonderen_mail,"head"=>$head,"site_title"=>$site_title,"site_title_en"=>$site_title_en,"site_title_ar"=>$site_title_ar,"site_title_ru"=>$site_title_ru,"site_title_de"=>$site_title_de,"site_title_it"=>$site_title_it,"site_meta"=>$site_meta,"site_meta_en"=>$site_meta_en,"site_meta_ar"=>$site_meta_ar,"site_meta_ru"=>$site_meta_ru,"site_meta_de"=>$site_meta_de,"site_meta_it"=>$site_meta_it,"site_description"=>$site_description,"site_description_en"=>$site_description_en,"site_description_ar"=>$site_description_ar,"site_description_ru"=>$site_description_ru,"site_description_de"=>$site_description_de,"site_description_it"=>$site_description_it,"logo"=>$logo,"footer_logo"=>$footer_logo,"favicon"=>$favicon,"site_mail"=>$site_mail,"site_mail_sifre"=>$site_mail_sifre,"site_mail_host"=>$site_mail_host,"site_mail_port"=>$site_mail_port,"facebook"=>$facebook,"instagram"=>$instagram,"twitter"=>$twitter,"youtube"=>$youtube,"linkedin"=>$linkedin,"google"=>$google,"anadil"=>$anadil,"baslangic"=>$baslangic,"bitis"=>$bitis,"firma_telefon1"=>$firma_telefon1,"firma_telefon2"=>$firma_telefon2,"firma_telefon3"=>$firma_telefon3,"firma_telefon4"=>$firma_telefon4,"firma_email1"=>$firma_email1,"firma_email2"=>$firma_email2,"firma_adres1"=>$firma_adres1,"firma_adres2"=>$firma_adres2,"whatsapp"=>$whatsapp,"firma_fax"=>$firma_fax,"footer_copyright"=>$footer_copyright,"footer_copyright_en"=>$footer_copyright_en,"footer_copyright_ar"=>$footer_copyright_ar,"footer_copyright_ru"=>$footer_copyright_ru,"footer_copyright_de"=>$footer_copyright_de,"footer_copyright_it"=>$footer_copyright_it,"google_maps"=>$google_maps,"google_maps2"=>$google_maps2,"id"=>$id));

}

$goster=$db->query("select * from ayar where id='1'")->fetch(PDO::FETCH_ASSOC);
?>

<!DOCTYPE html>
<html lang="tr">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Site Ayarları - <?=$ayar['site_title']?></title>
	<link rel="stylesheet" href="assets/vendors/core/core.css">
	<link rel="stylesheet" href="assets/vendors/sweetalert2/sweetalert2.min.css">
	<link rel="stylesheet" href="assets/vendors/select2/select2.min.css">
	<link rel="stylesheet" href="assets/vendors/jquery-tags-input/jquery.tagsinput.min.css">
	<link rel="stylesheet" href="assets/vendors/dropzone/dropzone.min.css">
	<link rel="stylesheet" href="assets/vendors/dropify/dist/dropify.min.css">
	<link rel="stylesheet" href="assets/vendors/bootstrap-colorpicker/bootstrap-colorpicker.min.css">
	<link rel="stylesheet" href="assets/vendors/bootstrap-datepicker/bootstrap-datepicker.min.css">
	<link rel="stylesheet" href="assets/vendors/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="assets/vendors/tempusdominus-bootstrap-4/tempusdominus-bootstrap-4.min.css">
	<link rel="stylesheet" href="assets/fonts/feather-font/css/iconfont.css">
	<link rel="stylesheet" href="assets/vendors/flag-icon-css/css/flag-icon.min.css">
	<link rel="stylesheet" href="assets/css/demo_2/style.css">
 <link rel="shortcut icon" href="lib/images/logo/<?=$ayar['favicon']?>" />
</head>
<body>

	<div class="main-wrapper">
		<?php include("include/menu.php");?>
		<div class="page-wrapper">
			<?php include("include/header.php");?>
			<div class="page-content">
				<nav class="page-breadcrumb">
					<ol class="breadcrumb">
						<li class="breadcrumb-item"><a href="./">Anasayfa</a></li>
						<li class="breadcrumb-item active" aria-current="page">Site Ayarları</li>
					</ol>
				</nav>
				
				<div class="row">
					<div class="col-md-12 grid-margin stretch-card">
						<div class="card">
							<div class="card-body">
								<h6 class="card-title">Site Bilgilerini Giriniz</h6>
								<form class="cmxform" method="post" enctype="multipart/form-data">
                                    
                    <div class="aside-body">
                        <ul class="nav nav-tabs mt-3" role="tablist">
                          <li class="nav-item">
                            <a class="nav-link active" id="chats-tab" data-toggle="tab" href="#chats" role="tab" aria-controls="chats" aria-selected="true">
                              <div class="d-flex flex-row flex-lg-column flex-xl-row align-items-center">
                                <i data-feather="message-square" class="icon-sm mr-sm-2 mr-lg-0 mr-xl-2 mb-md-1 mb-xl-0"></i>
                                <p class="d-none d-sm-block">Site Bilgileri</p>
                              </div>
                            </a>
                          </li>
                          
                             <li class="nav-item">
                            <a class="nav-link " id="chats-tab" data-toggle="tab" href="#smtp" role="tab" aria-controls="chats" aria-selected="true">
                              <div class="d-flex flex-row flex-lg-column flex-xl-row align-items-center">
                                <i data-feather="message-square" class="icon-sm mr-sm-2 mr-lg-0 mr-xl-2 mb-md-1 mb-xl-0"></i>
                                <p class="d-none d-sm-block">SMTP Ayarları </p>
                              </div>
                            </a>
                          </li>
                          
                          <li class="nav-item">
                            <a class="nav-link" id="calls-tab" data-toggle="tab" href="#calls" role="tab" aria-controls="calls" aria-selected="false">
                              <div class="d-flex flex-row flex-lg-column flex-xl-row align-items-center">
                                <i data-feather="image" class="icon-sm mr-sm-2 mr-lg-0 mr-xl-2 mb-md-1 mb-xl-0"></i>
                                <p class="d-none d-sm-block">Sosyal Medya</p>
                              </div>
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" id="contacts-tab" data-toggle="tab" href="#contacts" role="tab" aria-controls="contacts" aria-selected="false">
                              <div class="d-flex flex-row flex-lg-column flex-xl-row align-items-center">
                                <i data-feather="users" class="icon-sm mr-sm-2 mr-lg-0 mr-xl-2 mb-md-1 mb-xl-0"></i>
                                <p class="d-none d-sm-block">İletişim Bilgileri</p>
                              </div>
                            </a>
                          </li>
                        </ul>
						
                        <div class="tab-content mt-3">
						
                        <div class="tab-pane fade show active" id="chats" role="tabpanel" aria-labelledby="chats-tab">
                          
						  <div>
									<div class="form-group">
												<label for="exampleInputText1">Site Adı</label>
			<input type="text" class="form-control" id="exampleInputText1"  name="site_title" value="<?=$goster['site_title']?>">
									</div>
											
									<?php
									if($izin['en']==0){
									?>
									<div class="form-group">
										<label for="exampleInputText1">Site Adı <?=$isimler['en']?></label>
			<input type="text" class="form-control" id="exampleInputText1"  name="site_title_en" value="<?=$goster['site_title_en']?>">
									</div>
									<?php }?>	


									<?php
									if($izin['ar']==0){
									?>
									<div class="form-group">
										<label for="exampleInputText1">Site Adı <?=$isimler['ar']?></label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_title_ar" value="<?=$goster['site_title_ar']?>">
									</div>
									<?php }?>
									
									<?php
									if($izin['ru']==0){
									?>
									<div class="form-group">
										<label for="exampleInputText1">Site Adı <?=$isimler['ru']?></label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_title_ru" value="<?=$goster['site_title_ru']?>">
									</div>
									<?php }?>
									
									<?php
									if($izin['de']==0){
									?>
									<div class="form-group">
										<label for="exampleInputText1">Site Adı <?=$isimler['de']?></label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_title_de" value="<?=$goster['site_title_de']?>">
									</div>
									<?php }?>
									
									
									<?php
									if($izin['it']==0){
									?>
									<div class="form-group">
										<label for="exampleInputText1">Site Adı <?=$isimler['it']?></label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_title_it" value="<?=$goster['site_title_it']?>">
									</div>
									<?php }?>

                                    
                                    <div class="form-group">
										<label for="exampleInputText1">Site Meta</label>
		<input type="text" class="form-control" id="exampleInputText1"  name="site_meta" value="<?=$goster['site_meta']?>">
									</div>
                                    
									<?php
									if($izin['en']==0){
									?>
									 <div class="form-group">
										<label for="exampleInputText1">Site Meta <?=$isimler['en']?></label>
		<input type="text" class="form-control" id="exampleInputText1"  name="site_meta_en" value="<?=$goster['site_meta_en']?>">
									</div>
									<?php }?>
									
									<?php
									if($izin['ar']==0){
									?>
									 <div class="form-group">
										<label for="exampleInputText1">Site Meta <?=$isimler['ar']?></label>
		<input type="text" class="form-control" id="exampleInputText1"  name="site_meta_ar" value="<?=$goster['site_meta_ar']?>">
									</div>
									<?php }?>
									
									<?php
									if($izin['ru']==0){
									?>
									 <div class="form-group">
										<label for="exampleInputText1">Site Meta <?=$isimler['ru']?></label>
		<input type="text" class="form-control" id="exampleInputText1"  name="site_meta_ru" value="<?=$goster['site_meta_ru']?>">
									</div>
									<?php }?>
									
									<?php
									if($izin['de']==0){
									?>
									 <div class="form-group">
										<label for="exampleInputText1">Site Meta <?=$isimler['de']?></label>
		<input type="text" class="form-control" id="exampleInputText1"  name="site_meta_de" value="<?=$goster['site_meta_de']?>">
									</div>
									<?php }?>
									
									<?php
									if($izin['it']==0){
									?>
									 <div class="form-group">
										<label for="exampleInputText1">Site Meta <?=$isimler['it']?></label>
		<input type="text" class="form-control" id="exampleInputText1"  name="site_meta_it" value="<?=$goster['site_meta_it']?>">
									</div>
									<?php }?>
									
									
									
                                    <div class="form-group">
										<label for="exampleInputText1">Site Description</label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_description" value="<?=$goster['site_description']?>">
									</div>
									
									
									<?php
									if($izin['en']==0){
									?>
                                      <div class="form-group">
										<label for="exampleInputText1">Site Description <?=$isimler['en']?></label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_description_en" value="<?=$goster['site_description_en']?>">
									</div>
									
									<?php }?>
									
									<?php
									if($izin['ar']==0){
									?>
                                      <div class="form-group">
										<label for="exampleInputText1">Site Description <?=$isimler['ar']?></label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_description_ar" value="<?=$goster['site_description_ar']?>">
									</div>
									
									<?php }?>
									
									<?php
									if($izin['ru']==0){
									?>
                                      <div class="form-group">
										<label for="exampleInputText1">Site Description <?=$isimler['ru']?></label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_description_ru" value="<?=$goster['site_description_ru']?>">
									</div>
									
									<?php }?>
									
									<?php
									if($izin['de']==0){
									?>
                                      <div class="form-group">
										<label for="exampleInputText1">Site Description <?=$isimler['de']?></label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_description_de" value="<?=$goster['site_description_de']?>">
									</div>
									
									<?php }?>
									
									<?php
									if($izin['it']==0){
									?>
                                      <div class="form-group">
										<label for="exampleInputText1">Site Description <?=$isimler['it']?></label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_description_it" value="<?=$goster['site_description_it']?>">
									</div>
									
									<?php }?>
									
									
									
									
									   <div class="form-group">
										<label for="exampleInputText1">Site Renk 1</label>
	<input type="color" class="form-control" id="exampleInputText1"  name="renk1" value="<?=$goster['renk1']?>">
									</div>
									
									
										
									   <div class="form-group">
										<label for="exampleInputText1">Site Renk 2</label>
	<input type="color" class="form-control" id="exampleInputText1"  name="renk2" value="<?=$goster['renk2']?>">
									</div>
									
									
										
									   <div class="form-group">
										<label for="exampleInputText1">Site Renk 3</label>
	<input type="color" class="form-control" id="exampleInputText1"  name="renk3" value="<?=$goster['renk3']?>">
									</div>
									
									
									  <div class="form-group">
										<label for="exampleInputText1">Site Renk 4</label>
										Sondaki 0.8 Değeri Opaklık Değeridir.
	<input type="text" class="form-control" id="exampleInputText1"  name="renk4" value="<?=$goster['renk4']?>">
									</div>
									
									
									
									
									
									
									
									
                <div class="row">				
					<div class="col-md-4 stretch-card">
						<div class="card">
							<div class="card-body">
								<h6 class="card-title">Dark Logo</h6>
								
								<input type="file" id="myDropify" class="border" name="logo"  data-default-file="lib/images/logo/<?=$goster['logo']?>" />
							</div>
						</div>
					</div>
                    
                    <div class="col-md-4 stretch-card">
						<div class="card">
							<div class="card-body">
								<h6 class="card-title">Light Logo</h6>
								
								<input type="file" id="myDropify1" class="border" name="footer_logo"   data-default-file="lib/images/logo/<?=$goster['footer_logo']?>" />
							</div>
						</div>
					</div>
                    
                    <div class="col-md-4 stretch-card">
						<div class="card">
							<div class="card-body">
								<h6 class="card-title">Favicon</h6>
								
								<input type="file" id="myDropify2" class="border" name="favicon"  data-default-file="lib/images/logo/<?=$goster['favicon']?>"  />
							</div>
						</div>
					</div>
				</div>
                
              

                                    
					
                                    
                                    
                                    
                                     
                            </div>
                          </div>
                          
                        <div class="tab-pane fade" id="smtp" role="tabpanel" aria-labelledby="chats-tab">
                            <div>									
									
								<div class="form-group">
										<label for="exampleInputText1">Site Mail</label>
			<input type="text" class="form-control" id="exampleInputText1"  name="site_mail" value="<?=$goster['site_mail']?>">
								</div>	
                                    
                                <div class="form-group">
										<label for="exampleInputText1">Site Mail Şifre</label>
				<input type="text" class="form-control" id="exampleInputText1" name="site_mail_sifre" value="<?=$goster['site_mail_sifre']?>">
								</div>	
                                    
                                <div class="form-group">
										<label for="exampleInputText1">Site Mail Host</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="site_mail_host" value="<?=$goster['site_mail_host']?>">
								</div>	
                                    
                                <div class="form-group">
										<label for="exampleInputText1">Site Mail Port</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="site_mail_port" value="<?=$goster['site_mail_port']?>">
								</div>	
                                    
                                <div class="form-group">
										<label for="exampleInputText1">Gönderilen Mail  </label>
				<input type="text" class="form-control" id="exampleInputText1"  name="gonderen_mail" value="<?=$goster['gonderen_mail']?>">
								</div>	
                                    
                            </div>
                          </div>
                          
                          
						<div class="tab-pane fade" id="calls" role="tabpanel" aria-labelledby="calls-tab">
							
							<div class="form-group">
										<label for="exampleInputText1">Facebook</label>
				<input type="text" class="form-control" id="exampleInputText1" name="facebook" value="<?=$goster['facebook']?>">
							</div>	
                                    
                            <div class="form-group">
										<label for="exampleInputText1">İnstagram</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="instagram" value="<?=$goster['instagram']?>">
							</div>	
                                    
                            <div class="form-group">
										<label for="exampleInputText1">Twitter</label>
				<input type="text" class="form-control" id="exampleInputText1" name="twitter" value="<?=$goster['twitter']?>">
							</div>	
                                    
                            <div class="form-group">
										<label for="exampleInputText1">Google</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="google" value="<?=$goster['google']?>">
							</div>	
                                    
                            <div class="form-group">
										<label for="exampleInputText1">Linkedin</label>
				<input type="text" class="form-control" id="exampleInputText1" name="linkedin" value="<?=$goster['linkedin']?>">
							</div>	
                                                   
                            <div class="form-group">
										<label for="exampleInputText1">Youtube</label>
					<input type="text" class="form-control" id="exampleInputText1"  name="youtube" value="<?=$goster['youtube']?>">
							</div>	
                
                        </div>
                        
						<div class="tab-pane fade" id="contacts" role="tabpanel" aria-labelledby="contacts-tab">
                           
						   
						<?php
						if($post['id']==1){
						?>   
						<div class="form-group">
						<label for="exampleInputText1">Site Ana Dil:</label>
						<input type="text" class="form-control" id="exampleInputText1"  name="anadil" value="<?=$goster['anadil']?>">
						</div>	
						<div class="form-group">
						<label for="exampleInputText1">Site Yayınlanma Tarihi:</label>
						<input type="text" class="form-control" id="exampleInputText1"  name="baslangic" value="<?=$goster['baslangic']?>">
						</div>	
						<div class="form-group">
						<label for="exampleInputText1">Yayın Bitiş Tarihi:</label>
						<input type="text" class="form-control" id="exampleInputText1"  name="bitis" value="<?=$goster['bitis']?>">
						</div>	
						<?php }?>


                        <div class="form-group">
										<label for="exampleInputText1">Telefon Numarası 1</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="firma_telefon1" value="<?=$goster['firma_telefon1']?>">
						</div>	
                                    
                        <div class="form-group">
										<label for="exampleInputText1">Telefon Numarası 2</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="firma_telefon2" value="<?=$goster['firma_telefon2']?>">
						</div>	
                                    
                        <div class="form-group">
										<label for="exampleInputText1">Telefon Numarası 3</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="firma_telefon3" value="<?=$goster['firma_telefon3']?>">
						</div>	
                                    
                        <div class="form-group">
										<label for="exampleInputText1">Telefon Numarası 4</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="firma_telefon4" value="<?=$goster['firma_telefon4']?>">
						</div>	
                                    
                        <div class="form-group">
										<label for="exampleInputText1">Firma Email 1</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="firma_email1" value="<?=$goster['firma_email1']?>">
						</div>	
                                    
						<div class="form-group">
							<label for="exampleInputText1">Firma Email 2</label>
				<input type="text" class="form-control" id="exampleInputText1" name="firma_email2" value="<?=$goster['firma_email2']?>">
						</div>	
                                               
						<div class="form-group">
							<label for="exampleInputText1">Firma Adres 1</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="firma_adres1" value="<?=$goster['firma_adres1']?>">
						</div>	
                                    
						<div class="form-group">
							<label for="exampleInputText1">Firma Adres 2</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="firma_adres2" value="<?=$goster['firma_adres2']?>">
						</div>	
                                     
						<div class="form-group">
							<label for="exampleInputText1"> Whatsapp</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="whatsapp" value="<?=$goster['whatsapp']?>">
						</div>
                                     
						<div class="form-group">
							<label for="exampleInputText1">Firma Fax</label>
				<input type="text" class="form-control" id="exampleInputText1"  name="firma_fax" value="<?=$goster['firma_fax']?>">
						</div>	
                                    
                                     
						<div class="form-group">
							<label for="exampleInputText1">Footer Copyright <?=$isimler['tr']?></label>
				<input type="text" class="form-control" id="exampleInputText1"  name="footer_copyright" value="<?=$goster['footer_copyright']?>">
						</div>	
                                    
						<?php
						if($izin['en']==0){
						?>
						<div class="form-group">
							<label for="exampleInputText1">Footer Copyright <?=$isimler['en']?></label>
				<input type="text" class="form-control" id="exampleInputText1"  name="footer_copyright_en" value="<?=$goster['footer_copyright_en']?>">
						</div>	
						<?php }?>
						
						<?php
						if($izin['ar']==0){
						?>
						<div class="form-group">
							<label for="exampleInputText1">Footer Copyright <?=$isimler['ar']?></label>
				<input type="text" class="form-control" id="exampleInputText1"  name="footer_copyright_ar" value="<?=$goster['footer_copyright_ar']?>">
						</div>	
						<?php }?>
						
						<?php
						if($izin['ru']==0){
						?>
						<div class="form-group">
							<label for="exampleInputText1">Footer Copyright <?=$isimler['ru']?></label>
				<input type="text" class="form-control" id="exampleInputText1"  name="footer_copyright_ru" value="<?=$goster['footer_copyright_ru']?>">
						</div>	
						<?php }?>
						
						<?php
						if($izin['de']==0){
						?>
						<div class="form-group">
							<label for="exampleInputText1">Footer Copyright <?=$isimler['de']?></label>
				<input type="text" class="form-control" id="exampleInputText1"  name="footer_copyright_de" value="<?=$goster['footer_copyright_de']?>">
						</div>	
						<?php }?>
						
						<?php
						if($izin['it']==0){
						?>
						<div class="form-group">
							<label for="exampleInputText1">Footer Copyright <?=$isimler['it']?></label>
				<input type="text" class="form-control" id="exampleInputText1"  name="footer_copyright_it" value="<?=$goster['footer_copyright_it']?>">
						</div>	
						<?php }?>
						
						<div class="form-group">
							<label for="exampleInputText1">Google Maps 1</label>
				<textarea class="form-control" name="google_maps" rows="10" cols="40"><?=$goster['google_maps']?></textarea>
						</div>	
                                    				
						<div class="form-group">
							<label for="exampleInputText1">Google Maps 2</label>
				<textarea class="form-control" name="google_maps2" rows="10" cols="40"><?=$goster['google_maps2']?></textarea>
						</div>	

						<div class="form-group">
							<label for="exampleInputText1">Head </label>
				<textarea class="form-control" name="head" rows="10" cols="40"><?=$goster['head']?></textarea>
						</div>	
                                    
                                    
                        </div>
                    
						</div>
                      
					</div>       
                                   
									<button class="btn btn-primary" type="submit" name="kaydet">Ayarları Kaydet</button>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<?php include("include/footer.php");?>
		</div>
	</div>
	
	
	<script src="assets/vendors/core/core.js"></script>
	<script src="assets/vendors/jquery-validation/jquery.validate.min.js"></script>
	<script src="assets/vendors/bootstrap-maxlength/bootstrap-maxlength.min.js"></script>
	<script src="assets/vendors/inputmask/jquery.inputmask.min.js"></script>
	<script src="assets/vendors/select2/select2.min.js"></script>
	<script src="assets/vendors/typeahead.js/typeahead.bundle.min.js"></script>
	<script src="assets/vendors/jquery-tags-input/jquery.tagsinput.min.js"></script>
	<script src="assets/vendors/dropzone/dropzone.min.js"></script>
	<script src="assets/vendors/dropify/dist/dropify.min.js"></script>
	<script src="assets/vendors/bootstrap-colorpicker/bootstrap-colorpicker.min.js"></script>
	<script src="assets/vendors/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
	<script src="assets/vendors/moment/moment.min.js"></script>
	<script src="assets/vendors/tempusdominus-bootstrap-4/tempusdominus-bootstrap-4.js"></script>
	<script src="assets/vendors/feather-icons/feather.min.js"></script>
	<script src="assets/js/template.js"></script>
	<script src="assets/vendors/tinymce/tinymce.min.js"></script>
	<script src="assets/js/form-validation.js"></script>
	<script src="assets/js/bootstrap-maxlength.js"></script>
	<script src="assets/js/inputmask.js"></script>
	<script src="assets/js/select2.js"></script>
	<script src="assets/js/typeahead.js"></script>
	<script src="assets/js/tags-input.js"></script>
	<script src="assets/js/dropzone.js"></script>
	<script src="assets/js/dropify.js"></script>
	<script src="assets/js/bootstrap-colorpicker.js"></script>
	<script src="assets/js/datepicker.js"></script>
	<script src="assets/js/timepicker.js"></script>
	<script src="assets/js/tinymce.js"></script>
	<script src="assets/vendors/sweetalert2/sweetalert2.min.js"></script>
	<script src="assets/js/sweet-alert.js"></script>
</body>
</html>