(60*60*24)) : //get cool feedburner count $feed = get_option('crybook_feed_uri'); $whaturl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=$feed"; //Initialize the Curl session $ch = curl_init(); //Set curl to return the data instead of printing it to the browser. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Set the URL curl_setopt($ch, CURLOPT_URL, $whaturl); //Execute the fetch $data = curl_exec($ch); //Close the connection curl_close($ch); $xml = new SimpleXMLElement($data); $fb = $xml->feed->entry['circulation']; if(!$fb) : $fb = 0; endif; $id = $xml->feed['id']; update_option("crybook_feed_count", "" .$fb." reader".($fb > 1 ? "s" : "")); update_option('crybook_feed_id', $id.""); //end get cool feedburner count update_option("crybook_feed_lastupdate", $now.""); endif; } function crybook() { if(isset($_POST['submitted']) and $_POST['submitted'] == 'yes') : update_option("crybook_feed_uri", stripslashes($_POST['feed_uri'])); update_option("crybook_aside_cat", stripslashes($_POST['aside_cat'])); update_option("crybook_about_site", stripslashes($_POST['about_site'])); if(isset($_POST['feed_update']) and $_POST['feed_update'] == 'yes') : update_option("crybook_feed_lastupdate", "0"); endif; if(isset($_POST['feed_enable']) and $_POST['feed_enable'] == 'yes') : update_option("crybook_feed_enable", "yes"); else : update_option("crybook_feed_enable", "no"); endif; echo "
Your settings have been saved.
thank you for using our WordPress Themes. If you need any support, feel free to post it up in our fourm you can get some wordpress tips at themetation.com.
%s'), get_comment_author_link()) ?>