3 require_once( "QueryPage.php" );
5 class AncientPagesPage
extends QueryPage
{
11 function isExpensive() {
12 return parent
::isExpensive() ;
16 $db =& wfGetDB( DB_SLAVE
);
17 $cur = $db->tableName( 'cur' );
18 $use_index = $db->useIndexClause( 'cur_timestamp' );
20 "SELECT 'Ancientpages' as type,
21 cur_namespace as namespace,
23 UNIX_TIMESTAMP(cur_timestamp) as value
25 WHERE cur_namespace=0 AND cur_is_redirect=0";
28 function sortDescending() {
32 function formatResult( $skin, $result ) {
35 $d = $wgLang->timeanddate( wfUnix2Timestamp( $result->value
), true );
36 $link = $skin->makeKnownLink( $result->title
, "" );
37 return "{$link} ({$d})";
41 function wfSpecialAncientpages()
43 list( $limit, $offset ) = wfCheckLimits();
45 $app = new AncientPagesPage();
47 $app->doQuery( $offset, $limit );