3 require_once( "QueryPage.php" );
5 class AncientPagesPage
extends QueryPage
{
11 function isExpensive() {
12 return parent
::isExpensive() ;
17 $use_index=$wgIsMySQL?
"USE INDEX (cur_timestamp)":"";
19 "SELECT 'Ancientpages' as type,
20 cur_namespace as namespace,
22 UNIX_TIMESTAMP(cur_timestamp) as value
24 WHERE cur_namespace=0 AND cur_is_redirect=0";
27 function sortDescending() {
31 function formatResult( $skin, $result ) {
34 $d = $wgLang->timeanddate( wfUnix2Timestamp( $result->value
), true );
35 $link = $skin->makeKnownLink( $result->title
, "" );
36 return "{$link} ({$d})";
40 function wfSpecialAncientpages()
42 list( $limit, $offset ) = wfCheckLimits();
44 $app = new AncientPagesPage();
46 $app->doQuery( $offset, $limit );