5 * @subpackage SpecialPage
11 require_once( 'QueryPage.php' );
16 * @subpackage SpecialPage
18 class AncientPagesPage
extends QueryPage
{
21 return "Ancientpages";
24 function isExpensive() {
25 return parent
::isExpensive() ;
29 $db =& wfGetDB( DB_SLAVE
);
30 $cur = $db->tableName( 'cur' );
31 $use_index = $db->useIndexClause( 'cur_timestamp' );
33 "SELECT 'Ancientpages' as type,
34 cur_namespace as namespace,
36 cur_timestamp as value
38 WHERE cur_namespace=0 AND cur_is_redirect=0";
41 function sortDescending() {
45 function formatResult( $skin, $result ) {
46 global $wgLang, $wgContLang;
48 $d = $wgLang->timeanddate( wfTimestamp( TS_MW
, $result->value
), true );
49 $link = $skin->makeKnownLink( $result->title
, $wgContLang->convert( $result->title
) );
50 return "{$link} ({$d})";
54 function wfSpecialAncientpages() {
55 list( $limit, $offset ) = wfCheckLimits();
57 $app = new AncientPagesPage();
59 $app->doQuery( $offset, $limit );