2b3cb924103f9cfae1c652787aae3ca63eb6bfc5
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 * http://www.gnu.org/copyleft/gpl.html
21 * Querypage that lists the most wanted files - implements Special:Wantedfiles
24 * @ingroup SpecialPage
26 * @author Soxred93 <soxred93@gmail.com>
27 * @copyright Copyright © 2008, Soxred93
28 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
30 class WantedFilesPage
extends WantedQueryPage
{
37 $dbr = wfGetDB( DB_SLAVE
);
38 list( $imagelinks, $page ) = $dbr->tableNamesN( 'imagelinks', 'page' );
39 $name = $dbr->addQuotes( $this->getName() );
44 " . NS_FILE
. " as namespace,
48 LEFT JOIN $page ON il_to = page_title AND page_namespace = ". NS_FILE
."
49 WHERE page_title IS NULL
58 function wfSpecialWantedFiles() {
59 list( $limit, $offset ) = wfCheckLimits();
61 $wpp = new WantedFilesPage();
63 $wpp->doQuery( $offset, $limit );