📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
esnafbul.demodesign.com.tr
/
includes
📝
header.php
← Geri Dön
<?php include 'includes/session.php'; ?> <?php if ($bakim['durum'] == 1 ) { header("Location:$ayar[site_url]bakimdayiz"); } ?> <?php $headerayar=$db->prepare("SELECT * from header_ayar where id='1'"); $headerayar->execute(); $head = $headerayar->fetch(PDO::FETCH_ASSOC); $headerlimit = $head['header_limit']; ?> <?php $sosyalcon=$db->prepare("SELECT * from sosyal order by sira asc"); $sosyalcon->execute(); $sosyalcon2=$db->prepare("SELECT * from sosyal order by sira asc"); $sosyalcon2->execute(); $sosyalmobile=$db->prepare("SELECT * from sosyal order by sira asc"); $sosyalmobile->execute(); ?> <?php $headermainmenu=$db->prepare("SELECT * from header_menu where ust_id='0' and durum='1' and dil='$_SESSION[dil]' order by sira asc limit $headerlimit"); $headermainmenu->execute(); ?> <?php $telmetin = $ayar['site_tel']; $telsonuc = str_replace(' ', '', $telmetin); $gsmmetin = $ayar['site_gsm']; $gsmsonuc = str_replace(' ', '', $gsmmetin); $whtmetin = $ayar['site_whatsapp']; $whtsonuc1 = str_replace('90', '+90 ', $whtmetin); $whtsonuc2 = str_replace(' ', '', $whtmetin); $fixedmenu = $db->prepare("select * from sabit_header where id=:id "); $fixedmenu->execute(array( 'id' => '1', )); $fx = $fixedmenu->fetch(PDO::FETCH_ASSOC); ?> <?php $hashOlusturrandom = rand(0,(int) 9999999999999);?> <?php $uyesor=$db->prepare("SELECT * FROM uyeler where id=:id"); $uyesor->execute(array('id' => $_SESSION['id'])); $uyecek=$uyesor->fetch(PDO::FETCH_ASSOC); ?> <!DOCTYPE html> <html lang="<?=$current_lang['kisa_ad']?>"> <head> <meta charset="utf-8"> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <base href="<?php echo"$ayar[site_url]"?>"> <link rel="preconnect" href="https://fonts.googleapis.com/"> <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"> <link rel="stylesheet" href="tema/css/fonts/material-icon.css"> <link rel="stylesheet" href="tema/css/fonts/fontawesome.css"> <link rel="stylesheet" href="tema/css/fonts/ff-1.css"> <link rel="stylesheet" href="../unpkg.com/leaflet%401.9.3/dist/leaflet.css" integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI=" crossorigin=""> <link rel="stylesheet" href="tema/css/plugins.css"> <link rel="stylesheet" href="tema/css/style.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="assets/node_modules/sweetalert/sweetalert.min.js"></script> <link href="assets/node_modules/sweetalert/sweetalert.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" integrity="sha512-5A8nwdMOWrSz20fDsjczgUidUBR8liPYU+WymTZP1lmY9G6Oc7HlZv156XqnsgNUzTyMefFTcsFH/tnJE/+xBg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <style> @media (max-width: 767px) { .mo { display: none !important; } } @media (min-width: 767px) { .ma { display: none !important; } } </style> <link rel="shortcut icon" href="<?php echo $ayar['site_url'] ?>images/<?php echo $ayar['site_favicon']; ?>"> <?php echo $ayar['analytics_code'] ?> <?php echo $ayar['yandex_code'] ?> </head> <body> <!-- preloader --> <div class="preloader"> <div class="preloader__img"> <img src="<?php echo $ayar['site_url'] ?>images/<?php echo $ayar['site_favicon']; ?>" alt="image"> </div> </div> <!-- preloader End --> <img src="tema/img/primary-hero-el-1.png" alt="image" class="img-fluid primary-hero__el primary-hero__el-1"> <img src="tema/img/primary-hero-el-2.png" alt="image" class="img-fluid primary-hero__el primary-hero__el-2"> <!-- Header Top --> <div class="py-5 border-bottom header-top"> <div class="container"> <div class="row"> <div class="col-12"> <ul class="list list-row flex-wrap gap-3 align-items-center justify-content-between"> <li> <a href="<?php echo $ayar['site_url'] ?>" class="link d-inline-block"> <img src="images/logo/<?php echo $ayar['site_logo'] ?>" alt="logo" class="logo d-xl-none"> <img style="height: 90px" src="images/logo/<?php echo $ayar['site_logo'] ?>" alt="logo" class="logo d-none d-xl-inline-block"> </a> </li> <li> <ul class="list list-row flex-wrap align-items-center list-divider"> <li> <div class="d-flex align-items-center gap-5"> <div class="w-10 h-10 rounded-circle bg-primary-300 d-grid place-content-center flex-shrink-0"> <span class="material-symbols-outlined mat-icon fs-24 clr-neutral-0 fw-300"> phone_in_talk </span> </div> <div class="d-none d-lg-block"> <span class="fs-12 d-block"> Destek Hattı </span> <a href="tel:<?php echo $ayar['site_tel'] ?>" class="link d-block clr-neutral-700 :clr-primary-300"> <?php echo $ayar['site_tel'] ?> </a> </div> </div> </li> <li> <div class="d-flex align-items-center gap-5"> <div class="w-10 h-10 rounded-circle bg-secondary-300 d-grid place-content-center flex-shrink-0"> <span class="material-symbols-outlined mat-icon fs-24 clr-neutral-700 fw-300"> mark_as_unread </span> </div> <div class="d-none d-lg-block"> <span class="fs-12 d-block"> E-Posta </span> <a href="mailto:<?php echo $ayar['site_mail'] ?>" class="link d-block clr-neutral-700 :clr-primary-300"> <?php echo $ayar['site_mail'] ?> </a> </div> </div> </li> <li> <div class="d-flex align-items-center gap-5"> <div class="w-10 h-10 rounded-circle bg-tertiary-300 d-grid place-content-center flex-shrink-0"> <span class="material-symbols-outlined mat-icon fs-24 clr-neutral-700 fw-300"> pin_drop </span> </div> <div class="d-none d-lg-block"> <span class="fs-12 d-block"> Adres </span> <span class="d-block"> <?=$ayar['adres_bilgisi']?> </span> </div> </div> </li> </ul> </li> <li class="d-none d-md-block"> <?php if (empty($_SESSION['oturum'])){?> <a href="giris" class="link btn bg-primary-300 :bg-primary-300 clr-neutral-0 :clr-neutral-0 fw-600 py-4 px-8 rounded-pill"><i class="fa fa-plus"></i> Firma Ekle </a> <?php }?> <?php $uyefirmasayisi = $db->prepare("select * from uyefirma where uye_id='$uyecek[id]'"); $uyefirmasayisi->execute(); if ($uyecek['firmalimit'] > $uyefirmasayisi->rowCount()){?> <a href="uyefirmaekle" class="link btn bg-primary-300 :bg-primary-300 clr-neutral-0 :clr-neutral-0 fw-600 py-4 px-8 rounded-pill"><i class="fa fa-plus"></i> Firma Ekle </a> <?php }?> </li> </ul> </div> </div> </div> </div> <!-- /Header Top --> <!-- Header --> <header class="header header--sticky border-bottom"> <div class="container"> <div class="row"> <div class="col-12"> <nav class="menu d-lg-flex justify-content-lg-between align-items-lg-center"> <div class="menu-mobile-nav d-flex align-items-center justify-content-between py-3 py-lg-0 order-lg-2"> <button class="menu-toggle w-10 h-10 p-0 border-0 lh-1 bg-primary-50 clr-primary-500 transition :clr-primary-50 :bg-primary-500 rounded-1 flex-shrink-0 order-2 order-lg-1 d-lg-none"> <span class="material-symbols-outlined mat-icon fs-28"> menu </span> </button> <?php if (!empty($_SESSION['oturum'])){?> <ul class="list list-row gap-4 flex-wrap align-items-center order-1"> <li> <div class="dropdown"> <?php $mesaj=$db->prepare("select * from firmamesaj where uye_id='$uyecek[id]' and durum='1'"); $mesaj->execute(); ?> <a href="#" class="link d-grid place-content-center w-10 h-10 rounded-circle bg-primary-5p clr-neutral-500" data-bs-toggle="dropdown" data-bs-offset="0,16"> <span class="material-symbols-rounded mat-icon position-relative"> notifications <?php if($mesaj->rowCount()>0) {?> <span class="d-inline-block position-absolute top-0 end-0 w-2 h-2 rounded-circle bg-primary-300"></span> <?php }?> </span> </a> <div class="dropdown-menu dropdown-menu-xl-end p-0 border border-neutral-30"> <div class="p-4 p-xxl-6 max-width" style="width: 350px"> <h5 class="mb-4">Bildirimler</h5> <ul class="list gap-2"> <?php $refsor=$db->prepare("select * from firmamesaj where uye_id='$uyecek[id]' order by id DESC LIMIT 3"); $refsor->execute(); if ($refsor->rowCount()){ while ($blog=$refsor->fetch(PDO::FETCH_ASSOC)) { $firmasor=$db->prepare("SELECT * FROM uyefirma where id=:id"); $firmasor->execute(array('id' => $blog['firma_id'])); $firmacek=$firmasor->fetch(PDO::FETCH_ASSOC); ?> <li <?php if($blog['durum'] == 1) {?>style="background-color: #ecfffc"<?php }?>> <a href="mesaj/<?php echo seo($blog['id'])?>" class="link d-flex gap-4 dropdown-item px-0 px-md-4"> <div class="flex-grow-1 white-space-normal notifications-content"> <h6 class="mb-0"><?php echo $blog['isim'] ?></h6> <p><?php echo substr($blog['mesaj'],0,64);?>...</p> <span class="d-block fs-12 clr-neutral-100"> <?php echo date_tr('j F Y l H:i:s ', ''.$blog['tarih'].''); ?> </span> </div> </a> </li> <?php }?> <?php }else{?> <div class="col-xl-12 col-lg-12"> <p>Henüz iletişime geçen olmadı</p> </div> <?php }?> </ul> </div> </div> </div> </li> <li> <div class="dropdown"> <a href="#" class="link d-inline-block" data-bs-toggle="dropdown" data-bs-offset="0,16"> <?php if ($uyecek['gorsel'] == NULL || $uyecek['gorsel'] == ""){?> <img src="images/profil/bos.jpg" class="img-fluid w-10 h-10 rounded-circle objec-fit-cover"> <?php } else {?> <img src="images/profil/<?=$uyecek['gorsel']?>" class="img-fluid w-10 h-10 rounded-circle objec-fit-cover"> <?php }?> </a> <div class="dropdown-menu dropdown-menu-end p-0 border border-neutral-30"> <div class="p-6"> <div class="d-flex align-items-center gap-4 max-width"> <?php if ($uyecek['gorsel'] == NULL || $uyecek['gorsel'] == ""){?> <img src="images/profil/bos.jpg" class="img-fluid w-12 h-12 rounded-circle object-fit-cover flex-shrink-0"> <?php } else {?> <img src="images/profil/<?=$uyecek['gorsel']?>" class="img-fluid w-12 h-12 rounded-circle object-fit-cover flex-shrink-0"> <?php }?> <div class="flex-grow-1"> <h5 class="mb-0"><?=$uyecek['isim']?></h5> <span class="d-block fs-14"> Hoşgeldiniz </span> </div> </div> <div class="hr-dashed mt-4 mb-2"></div> <ul class="list"> <li> <a href="panelim" class="link d-flex align-items-center gap-3 clr-neutral-400 dropdown-item px-2"> <span class="material-symbols-outlined mat-icon fs-28 flex-shrink-0"> grid_view </span> <span class="d-block fs-14 fw-medium flex-grow-1"> Panelim </span> </a> </li> <li> <a href="profilduzenle" class="link d-flex align-items-center gap-3 clr-neutral-400 dropdown-item px-2"> <span class="material-symbols-outlined mat-icon fs-28 flex-shrink-0"> person </span> <span class="d-block fs-14 fw-medium flex-grow-1"> Profili Düzenle </span> </a> </li> <li> <a href="uyefirmalar" class="link d-flex align-items-center gap-3 clr-neutral-400 dropdown-item px-2"> <span class="material-symbols-outlined mat-icon fs-28 flex-shrink-0"> tune </span> <span class="d-block fs-14 fw-medium flex-grow-1"> Firmalarım </span> </a> </li> <li> <a href="mesajlar" class="link d-flex align-items-center gap-3 clr-neutral-400 dropdown-item px-2"> <span class="material-symbols-outlined mat-icon fs-28 flex-shrink-0"> notifications </span> <span class="d-block fs-14 fw-medium flex-grow-1"> Gelen Mesajlar </span> </a> </li> </ul> <div class="hr-dashed my-2"></div> <ul class="list"> <li> <a href="cikis.php" class="link d-flex align-items-center gap-3 clr-neutral-400 dropdown-item px-2"> <span class="material-symbols-outlined mat-icon fs-28 flex-shrink-0"> exit_to_app </span> <span class="d-block fs-14 fw-medium flex-grow-1"> Çıkış Yap </span> </a> </li> </ul> </div> </div> </div> </li> </ul> <?php }?> </div> <ul class="list list-lg-row menu-nav order-lg-1"> <?php $mobil_menu_cek = $db->prepare("select * from header_menu where durum='1' and dil='$_SESSION[dil]' and ust_id='0' order by sira asc "); $mobil_menu_cek->execute(); ?> <?php foreach ($mobil_menu_cek as $mobilmenurow) { ?> <li class="menu-list"><a class="link menu-link <?php $mobil_altmenu_cek = $db->prepare("select * from header_menu where ust_id='$mobilmenurow[id]' and durum='1' order by id desc limit 1"); $mobil_altmenu_cek->execute(); while($mobilaltrow = $mobil_altmenu_cek->fetch(PDO::FETCH_ASSOC)) { ?>has-sub<?php } ?>" href="<?=$mobilmenurow['url']?>"><?=$mobilmenurow['baslik']?></a> <?php $headeraltmenu=$db->prepare("select * from header_menu where ust_id='$mobilmenurow[id]' and durum='1' and dil='$_SESSION[dil]' order by id desc limit 1"); $headeraltmenu->execute(); while ($alt = $headeraltmenu->fetch(PDO::FETCH_ASSOC)){ ?> <ul class="list menu-sub"> <?php $headeraltmenu=$db->prepare("select * from header_menu where ust_id='$mobilmenurow[id]' and durum='1' and dil='$_SESSION[dil]' order by sira asc "); $headeraltmenu->execute(); while ($alt = $headeraltmenu->fetch(PDO::FETCH_ASSOC)){ ?> <li class="menu-sub-list"><a class="link menu-sub-link" href="<?=$alt['url']?>"><?=$alt['baslik']?></a> <?php $headeraltmenu2=$db->prepare("select * from header_menu where ust_id='$alt[id]' and durum='1' and dil='$_SESSION[dil]' order by id desc limit 1 "); $headeraltmenu2->execute(); while ($alt2 = $headeraltmenu2->fetch(PDO::FETCH_ASSOC)){ ?> <ul class="list menu-sub"> <?php $headeraltmenu2=$db->prepare("select * from header_menu where ust_id='$alt[id]' and durum='1' and dil='$_SESSION[dil]' order by sira asc "); $headeraltmenu2->execute(); while ($alt2 = $headeraltmenu2->fetch(PDO::FETCH_ASSOC)){ ?> <li><a class="link menu-sub-link" href="<?php if($alt2['url'] ==!null) {?><?php echo $alt2['url'] ?><?php } else {?>javascript:(void);<?php }?>"><?php echo $alt2['baslik'] ?></a></li> <?php }?> </ul> <?php }?> </li> <?php }?> </ul> <?php }?> </li> <?php }?> </ul> </nav> </div> </div> </div> </header> <!-- /Header -->
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula