<?php include 'sets.php';?>
<?php
if ($_REQUEST['section']) { 
$section = $mysqli->real_escape_string(stripslashes($_REQUEST['section']));
$result = $mysqli->query("SELECT * FROM sections WHERE page='$section' AND lang_id=$lang");
$row = $result->fetch_array(); 
$id=$row['insert_id'];
$parent=$row['parent'];
$page=$row['page'];
$category=$row['name'];
$category = strip_tags($category);
$title=$row['title'];
$description=$row['description'];
$keywords=$row['keywords'];
$cattext=$row['text'];
$sitecompany=$category;
$siteactivity=$title;
$catimage="0";
$secimage=$row['image'];
$photopath="sections/";
$photovar="section_id";
}
$pid=$id;

if (!$id OR $pageurl!="$page.") {
header ("Location: .");
exit;
}

$title1="$title";
if ($description=='') { 
$description1="$category - $siteactivity";
} else {
$description1="$description";	
}
$keywords1="$title, $category, $category $titleactivity";
?>
<!DOCTYPE html>
<html lang="<?php echo $langname ?>">
<head>
<meta charset="utf-8">
<title><?php echo $title1 ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="<?php echo $description1 ?>">
<meta name="keywords" content="<?php echo $keywords1 ?>">
<?php include 'codes.php';?>
</head>
<body>
<?php include 'menunav.php';?>
<div class="container">
<?php if ($menu1==1) { ?><?php include 'menu1.php';?><?php }?>
<div class="contentstyle">
<div class="pages"><div class="content"><h1><?php echo $category ?></h1></div></div>
<div class="content">
<div class="padbottom20"><?php echo $cattext ?></div>
<?php if ($id) {?>
<?php include 'includes/sectionin.php';?>
<?php } ?>
</div></div>
<?php if ($menu2==1) { ?><?php include 'menu2.php';?><?php }?>
</div>
<?php include 'menudown.php';?>
</body>
</html>