Pligg Cookie Check Redirect

a guest Feb 2nd, 2012 398 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {if $pagename eq 'index'}
  2.         {php}
  3.                 if(!isset($_COOKIE['PliggWelcome'])){
  4.                         setcookie("PliggWelcome", "visited");
  5.                         // Change this line to point to your welcome page...
  6.                         echo '<meta http-equiv="REFRESH" content="0;url=">';
  7.                         exit;
  8.                 }else{
  9.                         // echo "No cookie was found.. Continue loading page";
  10.                 }      
  11.         {/php}
  12. {/if}
RAW Paste Data
Want to get better at PHP?
Learn to code PHP in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!