
Pligg Cookie Check Redirect
By: a guest on
Feb 2nd, 2012 | syntax:
PHP | size: 0.35 KB | hits: 288 | expires: Never
{if $pagename eq 'index'}
{php}
if(!isset($_COOKIE['PliggWelcome'])){
setcookie("PliggWelcome", "visited");
// Change this line to point to your welcome page...
echo '<meta http-equiv="REFRESH" content="0;url=http://pligg.com/demo/">';
exit;
}else{
// echo "No cookie was found.. Continue loading page";
}
{/php}
{/if}