HOME SHELL

NULLCOMMUNITY
 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 / kurumsal9.snrsoft.com.tr /

Server Ip : 172.67.216.244




Filename/home/cuneytsener53/kurumsal9.snrsoft.com.tr/directs.php
Size2.83 kb
Permissionrw-r--r--
Owner
Create time02-Mar-2025 05:46
Last modified10-Oct-2022 14:01
Last accessed04-Apr-2025 02:04
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
require_once 'header.php';

// $_GET['seo_url'] page query
$pageAsk=$db->prepare("SELECT * FROM posts WHERE post_type=:post_type AND seo_url=:seo_url");
$pageAsk->execute(array(
'post_type' => 'post_page',
'seo_url' => $_GET['seo_url']
));
$pagesCount=$pageAsk->rowCount();

// $_GET['seo_url'] post query
$postAsk=$db->prepare("SELECT * FROM posts WHERE post_type=:post_type AND seo_url=:seo_url");
$postAsk->execute(array(
'post_type' => 'post_post',
'seo_url' => $_GET['seo_url']
));
$postCount=$postAsk->rowCount();

// $_GET['seo_url'] services query
$servicesAsk=$db->prepare("SELECT * FROM posts WHERE post_type=:post_type AND seo_url=:seo_url");
$servicesAsk->execute(array(
'post_type' => 'post_services',
'seo_url' => $_GET['seo_url']
));
$servicesCount=$servicesAsk->rowCount();

// $_GET['seo_url'] product query
$productAsk=$db->prepare("SELECT * FROM posts WHERE post_type=:post_type AND seo_url=:seo_url");
$productAsk->execute(array(
'post_type' => 'post_products',
'seo_url' => $_GET['seo_url']
));
$productCount=$productAsk->rowCount();

// $_GET['seo_url'] project query
$projectAsk=$db->prepare("SELECT * FROM posts WHERE post_type=:post_type AND seo_url=:seo_url");
$projectAsk->execute(array(
'post_type' => 'post_projects',
'seo_url' => $_GET['seo_url']
));
$projectCount=$projectAsk->rowCount();

// $_GET['seo_url'] project query
$noticeAsk=$db->prepare("SELECT * FROM posts WHERE post_type=:post_type AND seo_url=:seo_url");
$noticeAsk->execute(array(
'post_type' => 'post_notices',
'seo_url' => $_GET['seo_url']
));
$noticeCount=$noticeAsk->rowCount();

// $_GET['seo_url'] project query
$galleryAsk=$db->prepare("SELECT * FROM posts WHERE post_type=:post_type AND seo_url=:seo_url");
$galleryAsk->execute(array(
'post_type' => 'post_Gallery',
'seo_url' => $_GET['seo_url']
));
$galleryCount=$galleryAsk->rowCount();

// $_GET['seo_url'] categories query
$categoriesAsk=$db->prepare("SELECT * FROM categories WHERE seo_url=:seo_url");
$categoriesAsk->execute(array(
'seo_url' => $_GET['seo_url']
));
$categoriesCount=$categoriesAsk->rowCount();

if ($pagesCount){
require_once 'pages.php';
}elseif($postCount){
require_once 'postspage.php';
}elseif($categoriesCount){
require_once 'categoriespage.php';
}elseif($servicesCount){
require_once 'servicespage.php';
}elseif($productCount){
require_once 'productspage.php';
}elseif($projectCount){
require_once 'projectspage.php';
}elseif($noticeCount){
require_once 'announcementspage.php';
}elseif($galleryCount){
require_once 'gallerypage.php';
}else{
header("Location: 404.php");
}
require_once 'footer.php';
?>