OpenPastebin

[ normal view ]

Syntax: php

   #4936 Posted by Bassetts 2008-02-02 17:34:38 ( view diff)
Formated by GeSHi
  1. <?php
  2. if ($_GET["subscribed"] = true)
  3. {
  4. setcookie("dropshock_subscriber", "subscribed", 0, $url['path'] . '/');
  5. }
  6. if (!isset($_COOKIE['dropshock_subscriber']) and !isset($_COOKIE['promptclosed']))
  7. {
  8. 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>
  9.  
  10. </div>'
  11. }
  12. ?>
Parsed in 0.05587912 seconds
Email this post Email  ::  Print Print   
:: Download   Download Text File4936.txt   Download Gziped text File4936.txt.gz   Download HTML File4936.html   Download PDF File4936.pdf
:: Print into    Print into HTML FileHTML document   Print into PDF FilePDF document