Ejemplo n.º 1
0
 public function ajax_view_feed_details()
 {
     // show feed details - if not logged in, check signature
     if ($this->requestAction() == 'wpla_feed_details') {
         $feed = WPLA_AmazonFeed::getFeed($_REQUEST['id']);
         if (!$feed) {
             die('unknown feed');
         }
         $signature = md5($feed->id . get_option('wpla_instance'));
         if ($_REQUEST['sig'] != $signature) {
             die('invalid signature');
         }
         $this->showFeedDetails($feed->id);
         exit;
     }
 }