PluginProbe
CryptX / 3.2.3
CryptX v3.2.3
4.2.1 4.2.0 4.1.1 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.9 2.0 2.1 2.2 2.3 2.3.1 2.3.2 2.3.3 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 All 93 releases
cryptx / ajax / news.php

news.php in CryptX 3.2.3, at ajax/news.php

28 lines 903 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( file_exists(ABSPATH . WPINC . '/rss.php') ) {
4 @require_once (ABSPATH . WPINC . '/rss.php');
5 // It's Wordpress 2.x. since it has been loaded successfully
6 } elseif (file_exists(ABSPATH . WPINC . '/rss-functions.php')) {
7 @require_once (ABSPATH . WPINC . '/rss-functions.php');
8 // In Wordpress < 2.1
9 } else {
10 die (__('Error in file: ' . __FILE__ . ' on line: ' . __LINE__ . '.<br />The Wordpress file "rss-functions.php" or "rss.php" could not be included.'));
11 }
12
13 $rss = fetch_rss('http://weber-nrw.de/category/wordpress/plugins/cryptx/feed/');
14 $displayitems = 3;
15
16 if ( $rss && ! is_wp_error($rss) ) {
17 $items = $rss->items;
18 if(count($items) < $displayitems) $displayitems = count($items);
19 $display = 0;
20 echo '<ol>';
21 while($display < $displayitems){
22 echo '<li><a href="'.$items[$display]['link'].'">'.$items[$display]['title'].'</a></li>';
23 $display++;
24 }
25 echo '</ol>';
26 }
27 exit;
28 ?>