<?php require_once __DIR__ . '/includes/all.php'; $vars = set_vars($_GET, array("type", "id")); if (!$vars) { header("Location: /index.php"); exit; } $cookies = new Cookies(); $user = $cookies->user_from_cookie(); if ($user === 0) { header("Location: /index.php"); exit; } $cookies->renew_cookie($user->id); $user_id = $user->data["uid"]; $menu = new Menu($_GET["type"], $_GET["id"]); ?> <!DOCTYPE HTML> <html> <head> <title> </title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="viewport" content="initial-scale=1"> <meta name="description" content="" /> <meta name="keywords" content="" /> <!--[if lte IE 8]><script src="css/ie/html5shiv.js"></script><![endif]--> <script src="js/jquery.min.js"></script> <script src="js/jquery.scrolly.min.js"></script> <script src="js/skel.min.js"></script> <!-- <script src="js/jquery.cookie.js"></script>-->