9 require_once( 'QueryPage.php' );
14 class AncientPagesPage
extends QueryPage
{
17 return "Ancientpages";
20 function isExpensive() {
21 return parent
::isExpensive() ;
25 $db =& wfGetDB( DB_SLAVE
);
26 $cur = $db->tableName( 'cur' );
27 $use_index = $db->useIndexClause( 'cur_timestamp' );
29 "SELECT 'Ancientpages' as type,
30 cur_namespace as namespace,
32 UNIX_TIMESTAMP(cur_timestamp) as value
34 WHERE cur_namespace=0 AND cur_is_redirect=0";
37 function sortDescending() {
41 function formatResult( $skin, $result ) {
44 $d = $wgLang->timeanddate( wfUnix2Timestamp( $result->value
), true );
45 $link = $skin->makeKnownLink( $result->title
, "" );
46 return "{$link} ({$d})";
50 function wfSpecialAncientpages() {
51 list( $limit, $offset ) = wfCheckLimits();
53 $app = new AncientPagesPage();
55 $app->doQuery( $offset, $limit );