From 4e405da5e7bcfab50dfea35ca5525c3e535da4ce Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 5 Mar 2004 11:33:03 +0000 Subject: [PATCH] recent.phtml is obsoleted by Feed.php/QueryPage.php --- rdf/recent.phtml | 76 ------------------------------------------------ 1 file changed, 76 deletions(-) delete mode 100644 rdf/recent.phtml diff --git a/rdf/recent.phtml b/rdf/recent.phtml deleted file mode 100644 index f96ad2c647..0000000000 --- a/rdf/recent.phtml +++ /dev/null @@ -1,76 +0,0 @@ -"; - -if( $style == "new" ) { - $addl = " - " . wfMsg( "newpages"); -} else { - $addl = ""; -} - -?> - - - - -<?php echo iconv($wgInputEncoding, "utf-8", wfMsg("sitetitle") . $addl ) ?> - - - - - -#Wikipedia -#... -#http://wikipedia.org/ -# - -if(isset($limit)) { - if( $limit < 1) $limit = 1; - if( $tlimit > 500) $limit = 500; -} -if(!isset($limit)) $limit = 10; - -if($style == 'new') { - # 10 newest articles -$sql = "SELECT rc_title as cur_title, rc_comment as cur_comment FROM recentchanges,cur -WHERE rc_cur_id=cur_id AND rc_new=1 AND rc_namespace=0 AND cur_is_redirect=0 -AND LENGTH(cur_text) > 75 -ORDER BY rc_timestamp DESC LIMIT {$limit}"; -} else { - # 10 most recently edit articles that aren't frickin tiny -$sql = "SELECT rc_title as cur_title,rc_comment as cur_comment FROM recentchanges,cur -WHERE rc_cur_id=cur_id AND rc_namespace=0 AND rc_this_oldid=0 AND cur_is_redirect=0 -AND LENGTH(cur_text) > 150 -ORDER BY rc_timestamp DESC LIMIT {$limit}"; -} -$res = wfQuery( $sql ); - -while( $row = wfFetchObject( $res ) ) { - $title = htmlspecialchars( - iconv($wgInputEncoding, "utf-8", - str_replace( "_", " ", $row->cur_title ) ) ); - $url = wfFullUrl( wfUrlencode( $row->cur_title ) ); - $description = "" . iconv($wgInputEncoding, "utf-8", - htmlspecialchars( $row->cur_comment )) . ""; - echo " - -{$title} -{$url} -{$description} - -"; -} - -# -#Search Wikipedia -#Search Wikipedia articles -#query -#http://www.wikipedia.org/w/wiki.phtml?search= -# -?> - - \ No newline at end of file -- 2.20.1