<?php
$secure = true; // if you only want to receive the cookie over HTTPS
$httponly = true; // prevent JavaScript access to session cookie
$samesite = 'lax';
$maxlifetime=12000;
if(PHP_VERSION_ID < 70300) {
session_set_cookie_params($maxlifetime, '/; samesite='.$samesite, $_SERVER['HTTP_HOST'], $secure, $httponly);
} else {
session_set_cookie_params([
'lifetime' => $maxlifetime,
'path' => '/',
'domain' => $_SERVER['HTTP_HOST'],
'secure' => $secure,
'httponly' => $httponly,
'samesite' => $samesite
]);
}
?>
<?php
require_once "user_class.php";
session_start();
require_once "ellenor.php";
require_once "user_Json.php";
require_once "jatek_Json.php";
require_once "jatekstat_Json.php";
$url="";
$leiras="";
$cim="nem találhato Játék";
if(isset($_GET["id"])){
if(jatek_keres($_GET["id"], $jatek_json,true)!=null){
$url=jatek_keres($_GET["id"], $jatek_json,true)->jatek_url;
//$leiras=$_SESSION['root_url'].jatek_keres($_GET["id"], $jatek_json,true)->;
$cim=jatek_keres($_GET["id"], $jatek_json,true)->cim;
jatekos_add($_GET["id"]);
}
?>
<!DOCTYPE html>
<html lang="hu">
<head>
<meta charset="utf-8">
<title>Játék: <?php echo $cim?></title>
<link href="../css/op/print.css" rel="stylesheet" type="text/css" media="print">
<link rel="shortcut icon" sizes="256x256" href="kep.php?id=0" >
<style>
body{
width:100%;
height:100%;
margin:0;
}
iframe{
width:100%;
height:95%;
margin:0;
position: absolute;
}
a{
display: inline-block;
padding: 8px;
color:yellow;
text-decoration: none;
text-align: center;
overflow: hidden;
transition: 0.2s;
background-color: #660000;
bottom:0.5%;
position: fixed;
border: 4px yellow;
z-index: 1;
}
#leiras{
border-radius:50%;
right:1%;
}
</style>
</head>
<body>
<iframe src="<?php echo $url;?>" frameborder="0"></iframe>
<a href="../jatek_leiras.php?id=<?php echo $_GET["id"];?>" id="leiras">i</a>
<a href="../jatek_list.php" style="left:1%;">játékok</a>
</body>
</html>
<?php }?>