* td background set to White to avoid header border shining through
[mediawiki.git] / includes / SpecialAncientpages.php
blob13c97b4c331ae06d80c12779d93445f2fce1c64b
1 <?php
3 include_once( "QueryPage.php" );
5 class AncientPagesPage extends QueryPage {
7 function getName() {
8 return "Ancientpages";
11 function isExpensive() {
12 return parent::isExpensive() ;
15 function getSQL( $offset, $limit ) {
16 return "SELECT cur_title, cur_timestamp " .
17 "FROM cur USE INDEX (cur_timestamp) " .
18 "WHERE cur_namespace=0 AND cur_is_redirect=0 " .
19 " ORDER BY cur_timestamp LIMIT {$offset}, {$limit}";
22 function formatResult( $skin, $result ) {
23 global $wgLang;
25 $d = $wgLang->timeanddate( $result->cur_timestamp, true );
26 $link = $skin->makeKnownLink( $result->cur_title, "" );
27 return "{$link} ({$d})";
31 function wfSpecialAncientpages()
33 list( $limit, $offset ) = wfCheckLimits();
35 $app = new AncientPagesPage();
37 $app->doQuery( $offset, $limit );