Index: branches/license-work/phase3/includes/AutoLoader.php |
— | — | @@ -637,6 +637,7 @@ |
638 | 638 | 'SpecialExport' => 'includes/specials/SpecialExport.php', |
639 | 639 | 'SpecialFilepath' => 'includes/specials/SpecialFilepath.php', |
640 | 640 | 'SpecialImport' => 'includes/specials/SpecialImport.php', |
| 641 | + 'SpecialLicenseManager' => 'includes/specials/SpecialLicenseManager.php', |
641 | 642 | 'SpecialListGroupRights' => 'includes/specials/SpecialListgrouprights.php', |
642 | 643 | 'SpecialLockdb' => 'includes/specials/SpecialLockdb.php', |
643 | 644 | 'SpecialLog' => 'includes/specials/SpecialLog.php', |
Index: branches/license-work/phase3/includes/DefaultSettings.php |
— | — | @@ -4841,6 +4841,7 @@ |
4842 | 4842 | 'MIMEsearch' => 'media', |
4843 | 4843 | 'FileDuplicateSearch' => 'media', |
4844 | 4844 | 'Filepath' => 'media', |
| 4845 | + 'LicenseManager' => 'media', |
4845 | 4846 | |
4846 | 4847 | 'Listusers' => 'users', |
4847 | 4848 | 'Activeusers' => 'users', |
Index: branches/license-work/phase3/includes/specials/SpecialLicenseManager.php |
— | — | @@ -0,0 +1,43 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Implements Special:LicenseManager |
| 5 | + * |
| 6 | + * Copyright © 2011 Roan Kattouw |
| 7 | + * |
| 8 | + * This program is free software; you can redistribute it and/or modify |
| 9 | + * it under the terms of the GNU General Public License as published by |
| 10 | + * the Free Software Foundation; either version 2 of the License, or |
| 11 | + * (at your option) any later version. |
| 12 | + * |
| 13 | + * This program is distributed in the hope that it will be useful, |
| 14 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | + * GNU General Public License for more details. |
| 17 | + * |
| 18 | + * You should have received a copy of the GNU General Public License along |
| 19 | + * with this program; if not, write to the Free Software Foundation, Inc., |
| 20 | + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 21 | + * http://www.gnu.org/copyleft/gpl.html |
| 22 | + * |
| 23 | + * @file |
| 24 | + * @ingroup SpecialPage |
| 25 | + */ |
| 26 | + |
| 27 | +/** |
| 28 | + * This class is used to list and edit licenses |
| 29 | + * |
| 30 | + * @ingroup SpecialPage |
| 31 | + */ |
| 32 | +class SpecialLicenseManager extends SpecialPage { |
| 33 | + |
| 34 | + function __construct() { |
| 35 | + parent::__construct( 'LicenseManager' ); |
| 36 | + } |
| 37 | + |
| 38 | + function execute( $par ) { |
| 39 | + global $wgRequest, $wgOut; |
| 40 | + |
| 41 | + $this->setHeaders(); |
| 42 | + // TODO |
| 43 | + } |
| 44 | +} |
Property changes on: branches/license-work/phase3/includes/specials/SpecialLicenseManager.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 45 | + native |
Index: branches/license-work/phase3/includes/SpecialPage.php |
— | — | @@ -151,6 +151,7 @@ |
152 | 152 | 'FileDuplicateSearch' => 'FileDuplicateSearchPage', |
153 | 153 | 'Upload' => 'SpecialUpload', |
154 | 154 | 'UploadStash' => 'SpecialUploadStash', |
| 155 | + 'LicenseManager' => 'SpecialLicenseManager', |
155 | 156 | |
156 | 157 | # Wiki data and tools |
157 | 158 | 'Statistics' => 'SpecialStatistics', |
Index: branches/license-work/phase3/languages/messages/MessagesQqq.php |
— | — | @@ -2063,6 +2063,9 @@ |
2064 | 2064 | |
2065 | 2065 | 'fewestrevisions' => 'Name of a special page displayed in [[Special:SpecialPages]].', |
2066 | 2066 | |
| 2067 | +# License manager |
| 2068 | +'licensemanager' => 'Name of a special page displayed in [[Special:SpecialPages]].', |
| 2069 | + |
2067 | 2070 | # Miscellaneous special pages |
2068 | 2071 | 'nbytes' => 'Message used on the history page of a wiki page. Each version of a page consist of a number of bytes. $1 is the number of bytes that the page uses. Uses plural as configured for a language based on $1.', |
2069 | 2072 | 'ncategories' => "Used in the special page '[[Special:MostCategories]]' in brackets after each entry on the list signifying how many categories a page is part of. $1 is the number of categories.", |
Index: branches/license-work/phase3/languages/messages/MessagesEn.php |
— | — | @@ -464,6 +464,7 @@ |
465 | 465 | 'ComparePages' => array( 'ComparePages' ), |
466 | 466 | 'Badtitle' => array( 'Badtitle' ), |
467 | 467 | 'DisableAccount' => array( 'DisableAccount' ), |
| 468 | + 'LicenseManager' => array( 'LicenseManager' ), |
468 | 469 | ); |
469 | 470 | |
470 | 471 | /** |
— | — | @@ -2450,6 +2451,9 @@ |
2451 | 2452 | 'fewestrevisions' => 'Pages with the fewest revisions', |
2452 | 2453 | 'fewestrevisions-summary' => '', # do not translate or duplicate this message to other languages |
2453 | 2454 | |
| 2455 | +# LicenseManager |
| 2456 | +'licensemanager' => 'License manager', |
| 2457 | + |
2454 | 2458 | # Miscellaneous special pages |
2455 | 2459 | 'nbytes' => '$1 {{PLURAL:$1|byte|bytes}}', |
2456 | 2460 | 'ncategories' => '$1 {{PLURAL:$1|category|categories}}', |