Added missing GPLv2 headers in some places.
Also made file documentation more consistent. Change-Id: I30e124514396f110a572467b94ca06cefd5f7b46
This commit is contained in:
parent
11b67f0093
commit
f27ff698fb
15 changed files with 290 additions and 31 deletions
24
api.php
24
api.php
|
|
@ -1,9 +1,16 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* API for MediaWiki 1.8+
|
||||
* This file is the entry point for all API queries.
|
||||
*
|
||||
* Copyright (C) 2006 Yuri Astrakhan <Firstname><Lastname>@gmail.com
|
||||
* It begins by checking whether the API is enabled on this wiki; if not,
|
||||
* it informs the user that s/he should set $wgEnableAPI to true and exits.
|
||||
* Otherwise, it constructs a new ApiMain using the parameter passed to it
|
||||
* as an argument in the URL ('?action=') and with write-enabled set to the
|
||||
* value of $wgEnableWriteAPI as specified in LocalSettings.php.
|
||||
* It then invokes "execute()" on the ApiMain object instance, which
|
||||
* produces output in the format sepecified in the URL.
|
||||
*
|
||||
* Copyright © 2006 Yuri Astrakhan <Firstname><Lastname>@gmail.com
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -23,17 +30,6 @@
|
|||
* @file
|
||||
*/
|
||||
|
||||
/**
|
||||
* This file is the entry point for all API queries. It begins by checking
|
||||
* whether the API is enabled on this wiki; if not, it informs the user that
|
||||
* s/he should set $wgEnableAPI to true and exits. Otherwise, it constructs
|
||||
* a new ApiMain using the parameter passed to it as an argument in the URL
|
||||
* ('?action=') and with write-enabled set to the value of $wgEnableWriteAPI
|
||||
* as specified in LocalSettings.php. It then invokes "execute()" on the
|
||||
* ApiMain object instance, which produces output in the format sepecified
|
||||
* in the URL.
|
||||
*/
|
||||
|
||||
// So extensions (and other code) can check whether they're running in API mode
|
||||
define( 'MW_API', true );
|
||||
|
||||
|
|
|
|||
25
api.php5
25
api.php5
|
|
@ -1 +1,24 @@
|
|||
<?php require 'api.php';
|
||||
<?php
|
||||
/**
|
||||
* Version of api.php to used in web server requiring .php5 extension
|
||||
* to execute scripts with PHP5 egine.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
*/
|
||||
|
||||
require 'api.php';
|
||||
|
|
|
|||
19
img_auth.php
19
img_auth.php
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Image authorisation script
|
||||
*
|
||||
|
|
@ -22,9 +21,23 @@
|
|||
*
|
||||
* Your server needs to support PATH_INFO; CGI-based configurations usually don't.
|
||||
*
|
||||
* @file
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
**/
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
*/
|
||||
|
||||
define( 'MW_NO_OUTPUT_COMPRESSION', 1 );
|
||||
if ( isset( $_SERVER['MW_COMPILED'] ) ) {
|
||||
|
|
|
|||
|
|
@ -1 +1,24 @@
|
|||
<?php require './img_auth.php';
|
||||
<?php
|
||||
/**
|
||||
* Version of img_auth.php to used in web server requiring .php5 extension
|
||||
* to execute scripts with PHP5 egine.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
*/
|
||||
|
||||
require './img_auth.php';
|
||||
|
|
|
|||
25
index.php5
25
index.php5
|
|
@ -1 +1,24 @@
|
|||
<?php require './index.php';
|
||||
<?php
|
||||
/**
|
||||
* Version of index.php to used in web server requiring .php5 extension
|
||||
* to execute scripts with PHP5 egine.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
*/
|
||||
|
||||
require './index.php';
|
||||
|
|
|
|||
1
load.php
1
load.php
|
|
@ -20,7 +20,6 @@
|
|||
* @file
|
||||
* @author Roan Kattouw
|
||||
* @author Trevor Parscal
|
||||
*
|
||||
*/
|
||||
|
||||
// Bail if PHP is too low
|
||||
|
|
|
|||
25
load.php5
25
load.php5
|
|
@ -1 +1,24 @@
|
|||
<?php require './load.php';
|
||||
<?php
|
||||
/**
|
||||
* Version of load.php to used in web server requiring .php5 extension
|
||||
* to execute scripts with PHP5 egine.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
*/
|
||||
|
||||
require './load.php';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,21 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Generate an OpenSearch description file
|
||||
* Generate an OpenSearch description file.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1 +1,24 @@
|
|||
<?php require './opensearch_desc.php';
|
||||
<?php
|
||||
/**
|
||||
* Version of opensearch_desc.php to used in web server requiring .php5 extension
|
||||
* to execute scripts with PHP5 egine.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
*/
|
||||
|
||||
require './opensearch_desc.php';
|
||||
|
|
|
|||
17
redirect.php
17
redirect.php
|
|
@ -1,11 +1,26 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Script that redirects to the article passed in the "wpDropdown" parameter.
|
||||
* This is used by the nostalgia skin for the special pages drop-down
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
*/
|
||||
|
||||
if ( isset( $_SERVER['MW_COMPILED'] ) ) {
|
||||
require ( 'phase3/includes/WebStart.php' );
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -1 +1,24 @@
|
|||
<?php require './redirect.php';
|
||||
<?php
|
||||
/**
|
||||
* Version of redirect.php to used in web server requiring .php5 extension
|
||||
* to execute scripts with PHP5 egine.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
*/
|
||||
|
||||
require './redirect.php';
|
||||
|
|
|
|||
17
thumb.php
17
thumb.php
|
|
@ -1,11 +1,26 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* PHP script to stream out an image thumbnail.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
* @ingroup Media
|
||||
*/
|
||||
|
||||
define( 'MW_NO_OUTPUT_COMPRESSION', 1 );
|
||||
if ( isset( $_SERVER['MW_COMPILED'] ) ) {
|
||||
require( 'core/includes/WebStart.php' );
|
||||
|
|
|
|||
26
thumb.php5
26
thumb.php5
|
|
@ -1 +1,25 @@
|
|||
<?php require './thumb.php';
|
||||
<?php
|
||||
/**
|
||||
* Version of thumb.php to used in web server requiring .php5 extension
|
||||
* to execute scripts with PHP5 egine.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
* @ingroup Media
|
||||
*/
|
||||
|
||||
require './thumb.php';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,27 @@
|
|||
<?php
|
||||
/**
|
||||
* PHP script to be used as 404 handler to create and stream out a
|
||||
* not yet existing image thumbnail.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
* @ingroup Media
|
||||
*/
|
||||
|
||||
# Valid web server entry point
|
||||
define( 'THUMB_HANDLER', true );
|
||||
|
||||
# Execute thumb.php, having set THUMB_HANDLER so that
|
||||
|
|
|
|||
|
|
@ -1 +1,25 @@
|
|||
<?php require './thumb_handler.php';
|
||||
<?php
|
||||
/**
|
||||
* Version of thumb_handler.php to used in web server requiring .php5 extension
|
||||
* to execute scripts with PHP5 egine.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* http://www.gnu.org/copyleft/gpl.html
|
||||
*
|
||||
* @file
|
||||
* @ingroup Media
|
||||
*/
|
||||
|
||||
require './thumb_handler.php';
|
||||
|
|
|
|||
Loading…
Reference in a new issue