Home  |  Linux  | Mysql  | PHP  | XML
From:Philip Olson Date:Mon May 26 12:41:14 2008
Subject:cvs: docweb /include lib_general.inc.php
philip		Mon May 26 18:41:14 2008 UTC

  Modified files:              
    /docweb/include	lib_general.inc.php 
  Log:
  remove get_bugs_rss() to soon replace with get_bugs_count()
  
  
http://cvs.php.net/viewvc.cgi/docweb/include/lib_general.inc.php?r1=1.57&r2=1.58&diff_format=u
Index: docweb/include/lib_general.inc.php
diff -u docweb/include/lib_general.inc.php:1.57 docweb/include/lib_general.inc.php:1.58
--- docweb/include/lib_general.inc.php:1.57	Sat Mar 22 18:44:38 2008
+++ docweb/include/lib_general.inc.php	Mon May 26 18:41:14 2008
@@ -18,7 +18,7 @@
 |                   Gabor Hojtsy <goba@php.net>                        |
 |                   Sean Coates <sean@php.net>                         |
 +----------------------------------------------------------------------+
-$Id: lib_general.inc.php,v 1.57 2008/03/22 18:44:38 bjori Exp $
+$Id: lib_general.inc.php,v 1.58 2008/05/26 18:41:14 philip Exp $
 */
 
 require_once dirname(__FILE__) . '/lib_auth.inc.php';
@@ -250,59 +250,3 @@
         array('links' => $links, 'Language' => &$GLOBALS['Language'])
     );
 }
-
-function get_bugs_rss($project=SITE)
-{
-    // set up proper RSS URLs
-    switch ($project)
-    {
-        case 'php':
-            $RSS_URL = 'http://bugs.php.net/rss/search.php?boolean=0'
-                      .'&limit=All&order_by=status&direction=ASC&cmd=display'
-                      .'&status=Open&bug_type%5B%5D=Documentation+problem'
-                      .'&bug_age=0';
-            $link    = 'http://bugs.php.net/search.php?boolean=0'
-                      .'&amp;limit=All&amp;order_by=status&amp;direction=ASC&amp;cmd=display'
-                      .'&amp;status=Open&amp;bug_type%5B%5D=Documentation+problem'
-                      .'&amp;bug_age=0';
-            break;
-        
-        case 'phd':
-            $RSS_URL = 'http://bugs.php.net/rss/search.php?boolean=0'
-                      .'&limit=All&order_by=status&direction=ASC&cmd=display'
-                      .'&status=Open&bug_type%5B%5D=Doc+Build+problem'
-                      .'&bug_age=0';
-            $link    = 'http://bugs.php.net/search.php?boolean=0'
-                      .'&amp;limit=All&amp;order_by=status&amp;direction=ASC&amp;cmd=display'
-                      .'&amp;status=Open&amp;bug_type%5B%5D=Doc+Build+problem'
-                      .'&amp;bug_age=0';
-            break;
-            
-        default:
-            return false;
-    }
-
-    // local cache
-    $localFile = FILES_DIR . "bugs_{$project}.rss";
-
-    if (!(is_readable($localFile) &&
-        (filemtime($localFile) > time() - RSS_STALE_CACHE_BUGS))) {
-        // cache miss: download (& cache) rss
-        $fp = fopen($localFile, 'w');
-        fwrite($fp, @file_get_contents($RSS_URL));
-        fclose($fp);
-    }
-
-    require_once "XML/RSS.php";
-
-    $RSS = new XML_RSS($localFile);
-    $RSS->parse();
-    $items = $RSS->getItems();      
-    return array(
-        'count' => count($items),
-        'link'  => $link,
-        'items' => $items,
-    );
-}
-
-?>


Navigate in group php.doc.web at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants