summaryrefslogtreecommitdiffstats
path: root/utils/musarca.php
blob: ee7527fe5e208e4313b2a762a7b33e0322b27073 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

/**********************************************
 * 
 * v .htaccess moraš dodati
 * 
 * /cookie_da => utils/musarca.php?c=1
 * /cookie_ne => utils/musarca.php?c=0
 * 
 */


if ($_GET['c']=="1") {
	// setcookie,...
	setcookie ('AllowCookie', '1', time()+(3600*24*365*10), '/');
}
else {
	// setcookie....
	setcookie ('AllowCookie', '0', time()+(3600*24*365*10), '/');
}
header ('location: /index.php');
?>