OpenPastebin

[ normal view ]

Syntax: php

   #4939 Posted by Bassetts 2008-02-02 17:58:51 ( view diff)
Formated by GeSHi
  1. <?php
  2. if ($_GET["subscribed"] = true)
  3. {
  4. echo 'true';
  5. setcookie("dropshock_subscriber", "subscribed", time()+60*60*24*30*3, $url['path'] . '/');
  6. }
  7. if (!isset($_COOKIE['dropshock_subscriber']) and !isset($_COOKIE['promptclosed']))
  8. {
  9. echo '<div id="subscribe_prompt"><a href="/feed" style="border-bottom: none; vertical-align: middle; position: relative;top: 2px; margin-right: 4px"><img src="/blog/images/icon_feeds_black.gif" alt="" width="16" height="16" /></a>Subscribe to Dropshock via <a href="/feed">RSS</a> and be notified of new stuff automatically.<a href="javascript:void(0)" class="subscribe_close" onclick="setCookie(\'promptclosed\', \'closed\', now, \'/\', HOST, \'\');document.getElementById(\'subscribe_prompt\').style.display=\'none\'">Close this message</a></div>';
  10. }
  11. ?>
Parsed in 0.06121206 seconds
Email this post Email  ::  Print Print   
:: Download   Download Text File4939.txt   Download Gziped text File4939.txt.gz   Download HTML File4939.html   Download PDF File4939.pdf
:: Print into    Print into HTML FileHTML document   Print into PDF FilePDF document