summaryrefslogblamecommitdiffstats
path: root/utils/musarca.php
blob: ee7527fe5e208e4313b2a762a7b33e0322b27073 (plain) (tree)





















                                                                      
<?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');
?>