Hallo allemaal,
Ik zit even met een vraagje betreft dit stukje code
PHP
<?php
include("_include-config.php");
if(isset($_COOKIE['login'],$_COOKIE['validate'])) {
setcookie("login", $_COOKIE['login'], time()+60*60*2, "/", $config['cookie']);
setcookie("validate", $_COOKIE['validate'], time()+60*60*2, "/", $config['cookie']);
}
if(isset($_GET['v']) && ($_GET['v'] == 1 || $_GET['v'] == 2 || $_GET['v'] == 3)) {
setcookie("v", $_GET['v'], time()+24*60*60*365, "/", $config['cookie']);
$_COOKIE['v'] = $_GET['v'];
header("location: index.php");
exit;
}
$header = 'http://www.crime-crime.com/images/headers/1.jpg';
$layout = ($_COOKIE['v'] == 1) ? 1 : 2;
$layout = ($_COOKIE['v'] == 3) ? 3 : $layout;
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$css_file = (preg_match('/Firefox/', $user_agent)) ? "index{$layout}_ff.css" : "index{$layout}.css";
?>
Toon Meer
Waarom is
Niet
Zou iemand mij dat kunnen uit leggen bedankt