3 require_once( "QueryPage.php" );
5 class AncientPagesPage
extends QueryPage
{
11 function isExpensive() {
12 return parent
::isExpensive() ;
17 "SELECT 'Ancientpages' as type,
18 cur_namespace as namespace,
20 UNIX_TIMESTAMP(cur_timestamp) as value
21 FROM cur USE INDEX (cur_timestamp)
22 WHERE cur_namespace=0 AND cur_is_redirect=0";
25 function sortDescending() {
29 function formatResult( $skin, $result ) {
32 $d = $wgLang->timeanddate( wfUnix2Timestamp( $result->value
), true );
33 $link = $skin->makeKnownLink( $result->title
, "" );
34 return "{$link} ({$d})";
38 function wfSpecialAncientpages()
40 list( $limit, $offset ) = wfCheckLimits();
42 $app = new AncientPagesPage();
44 $app->doQuery( $offset, $limit );