📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv8.demodesign.com.tr
/
includes
📝
head.php
← Geri Dön
<?php // +------------------------------------------------------------------------+ // | @author Ercan Agkaya (Themerig) // | @author_url 1: https://www.themerig.com // | @author_url 2: https://codecanyon.net/user/themerig // | @author_email: support@themerig.com // +------------------------------------------------------------------------+ // | Techno Cms - E-Commerce Script // | Copyright (c) 2018 Techno CMS. All rights reserved. // +------------------------------------------------------------------------+ if(!file_exists("db/db.php")) { header("Location: install"); } include('db/func.php'); include('db/db.php'); include('db/visitors.php'); ini_set("error_reporting", E_ALL); $base = dirname($_SERVER['PHP_SELF']); $val = explode("/",$base); if (@$val[4] != "") { $vas = "/" . $val[1] . "/" . $val[2] . "/" . $val[3] . "/" . $val[4] . "/"; } else if (@$val[3] != "") { $vas = "/" . $val[1] . "/" . $val[2] . "/" . $val[3] . "/"; } else if (@$val[2] != "") { $vas = "/" . $val[1] . "/" . $val[2] . "/"; } else if (@$val[1] != "") { $vas = "/" . $val[1] . "/"; } else { $vas = ""; } if(empty($_COOKIE['COOKIE_KEY'])) { setcookie('COOKIE_KEY', rand(1,9999999), time() +86400, '/'); } if (!empty($_COOKIE['COOKIE_KEY'])) { $cookie = $_COOKIE['COOKIE_KEY']; } else { $cookie = ''; header("Location: ".$vas.""); } $cookie_users = $db -> query("SELECT * FROM cookie_users WHERE rand_id = '".$cookie."'")->fetch(); if (empty($cookie_users['lang'] )) { if (!empty($settings['lang'])) { require("lang/".$settings["lang"].".php"); } else { require("lang/en.php"); } } else { require("lang/".$cookie_users["lang"].".php"); } $time = time(); if (!empty($cookie)) { if (empty($cookie_users)) { $query = $db->prepare("INSERT INTO cookie_users SET rand_id = ?, date = ?"); $insert = $query->execute(array("".$cookie."", "".$time."")); } else { if (!empty($_SESSION['session'])) { $query = $db->prepare("UPDATE cookie_users SET up_date = :udat, user_id = :uid WHERE rand_id = :ids"); $update = $query->execute(array("udat" => "".$time."","uid" => "".$users['id']."","ids" => "".$cookie."")); } else { $query = $db->prepare("UPDATE cookie_users SET up_date = :udat WHERE rand_id = :ids"); $update = $query->execute(array("udat" => "".$time."","ids" => "".$cookie."")); } } } if ($settings['h_url'] == "on") { if(!$_SERVER['HTTPS']) { $url = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; header("Location: $url"); } } $ayars = $db->query("SELECT * FROM general_settings WHERE id = 1 ", PDO::FETCH_ASSOC); if ($ayars->rowCount()) { foreach ($ayars as $ayars) { } } if (empty($_GET['title'])) { if (!empty($_SERVER['REQUEST_URI'])) { $a = seo($_SERVER['REQUEST_URI']); $c = array("php","=","?","and","&","-",$val[1],@$val[2],@$val[3]); $b = array(""," "," "," "," "," ","","",""); $te = str_replace($c, $b, $a); if ($te == "") { if ($settings['home_title'] != "" && $settings['url_ay'] != "" && $settings['home_subj'] != "") { $title = "".$settings['home_title']." ".$settings['url_ay']." ".$settings['home_subj'].""; } else { $title = "".ucfirst($te).""; } } else if ($te == " index ") { if ($settings['home_title'] != "" && $settings['url_ay'] != "" && $settings['home_subj'] != "") { $title = "".$settings['home_title']." ".$settings['url_ay']." ".$settings['home_subj'].""; } else { $title = "".ucfirst($te).""; } } else { $title = "".$settings['home_title']." ".$settings['url_ay']." ".ucwords($te).""; $header_title = "".ucfirst($te).""; $keywords = $header_title; } } else { $title = ''; $header_title = ""; $keywords = ""; } } else { $a = seo($_GET['title']); $c = array("php","=","?","and","&","-",$val[1],@$val[2],@$val[3]); $b = array(""," "," "," "," "," ","","",""); $te = str_replace($c, $b, $a); $title = "".ucfirst($te)." ".$settings['url_ay']." ".$settings['home_title'].""; $header_title = "".$te.""; } if (empty($_GET['id'])) { $a = seo($_SERVER['SCRIPT_NAME']); $c = array("php","=","?","and","&","-",$val[1],@$val[2],@$val[3]); $b = array(""," "," "," "," ","","","",""); $te = str_replace($c, $b, $a); if ($te == "index") { $description = $settings['home_meta_desc']; $keywords = $settings['home_meta_keywords']; $_duct = "0"; } else { $description = ""; $_duct = "1"; } } else { if(!filter_var($_GET["id"], FILTER_VALIDATE_INT)) { header("Location: ".$vas.""); } else { if ($_GET['id'] != "") { $i_t_m_ = $db->query("SELECT * FROM items WHERE id = '".$_GET['id']."'")->fetch(PDO::FETCH_ASSOC); $adr = $i_t_m_['description']; $limit = 230; $text = strlen($adr); $description = substr($adr,0,$limit); $_duct = "1"; } else { $_duct = "1"; } } } ?> <!DOCTYPE html> <!--[if IE 8 ]><html class="ie" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"><!--<![endif]--> <head> <base href="https://<?=$_SERVER["HTTP_HOST"].$vas?>"> <!-- Basic Page Needs --> <meta charset="UTF-8"> <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]--> <meta name="author" content="ParsTech"> <!-- Mobile Specific Metas --> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <!-- Boostrap style --> <link rel="stylesheet" type="text/css" href="stylesheets/bootstrap.min.css"> <!-- Theme style --> <link rel="stylesheet" type="text/css" href="stylesheets/style.css"> <!-- Reponsive --> <link rel="stylesheet" type="text/css" href="stylesheets/responsive.css"> <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> <style> body { font-family: \'Poppins\', sans-serif; } </style> <link rel="shortcut icon" href="favicon/favicon.png"> <?php if($seo!=1){ ?> <title><?=ucfirst($title)?></title> <meta name="description" content="<?=@$description?>"> <meta name="keywords" content="<?=@$keywords?>"> <?php } ?> </head> <?php if ($_duct == "1") { echo'<body class="header_sticky">'; } else { echo'<body class="header_sticky background">'; } echo' <style> .loading-effect-2 { width:500px; height:500px; margin-top: -250px; margin-left: -250px; } </style> <div class="boxed" style="z-index: 99999 !important;"> <div class="overlay"></div> <!-- Preloader --> <div class="preloader"> <div class="clear-loading loading-effect-2"> <img src="images/icons/loaderr.gif"/> </div> </div>';
💾 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