tableName( 'page' ); $revision = $db->tableName( 'revision' ); $epoch = $db->unixTimestamp( 'rev_timestamp' ); return "SELECT 'Ancientpages' as type, page_namespace as namespace, page_title as title, $epoch as value FROM $page, $revision WHERE page_namespace=".NS_MAIN." AND page_is_redirect=0 AND page_latest=rev_id"; } function sortDescending() { return false; } function formatResult( $skin, $result ) { global $wgLang, $wgContLang; $d = $wgLang->timeanddate( wfTimestamp( TS_MW, $result->value ), true ); $title = Title::makeTitle( $result->namespace, $result->title ); $link = $skin->linkKnown( $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) ); return wfSpecialList($link, htmlspecialchars($d) ); } } function wfSpecialAncientpages() { list( $limit, $offset ) = wfCheckLimits(); $app = new AncientPagesPage(); $app->doQuery( $offset, $limit ); }