Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Pligg Cookie Check Redirect

By: a guest on Feb 2nd, 2012  |  syntax: PHP  |  size: 0.35 KB  |  hits: 346  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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=http://pligg.com/demo/">';
  7.                         exit;
  8.                 }else{
  9.                         // echo "No cookie was found.. Continue loading page";
  10.                 }      
  11.         {/php}
  12. {/if}