From 9f5d06527c649911ba4dcbe1c42df728d76faabe Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 16 Dec 2010 19:15:12 +0000 Subject: [PATCH] Part of bug 26280: added license headers to PHP files in maintenance --- maintenance/7zip.inc | 18 +++++++++ maintenance/Maintenance.php | 30 +++++++-------- maintenance/archives/upgradeLogging.php | 15 ++++++++ maintenance/backupPrefetch.inc | 18 +++++++++ maintenance/benchmarks/Benchmarker.php | 23 +++++++++-- maintenance/benchmarks/bench_HTTP_HTTPS.php | 18 +++++++++ maintenance/benchmarks/bench_wfIsWindows.php | 18 +++++++++ maintenance/commandLine.inc | 22 ++++++++++- maintenance/dumpInterwiki.php | 15 ++++++++ maintenance/eval.php | 15 ++++++++ maintenance/fuzz-tester.php | 28 +++++++++++--- maintenance/importImages.inc | 16 +++++++- maintenance/importImages.php | 15 ++++++++ maintenance/importTextFile.php | 15 ++++++++ maintenance/importUseModWiki.php | 16 +++++++- maintenance/install-utils.inc | 15 ++++++++ maintenance/lag.php | 17 ++++++++- maintenance/language/StatOutputs.php | 15 ++++++++ maintenance/language/checkDupeMessages.php | 18 ++++++++- maintenance/language/checkExtensions.php | 15 ++++++++ maintenance/language/checkLanguage.inc | 21 ++++++++++ maintenance/language/checkLanguage.php | 15 ++++++++ maintenance/language/function-list.php | 15 ++++++++ .../language/generateNormalizerData.php | 21 ++++++++++ maintenance/language/languages.inc | 15 ++++++++ maintenance/language/messageTypes.inc | 15 ++++++++ maintenance/language/messages.inc | 15 ++++++++ maintenance/language/rebuildLanguage.php | 15 ++++++++ maintenance/language/transstat.php | 15 ++++++++ maintenance/language/validate.php | 17 +++++++++ maintenance/language/writeMessagesArray.inc | 15 ++++++++ maintenance/mcc.php | 15 ++++++++ maintenance/mergeMessageFileList.php | 22 +++++++++++ maintenance/minify.php | 18 +++++++++ maintenance/mwdocgen.php | 14 +++++++ maintenance/ourusers.php | 15 ++++++++ maintenance/populateCategory.php | 17 +++++++++ maintenance/preprocessorFuzzTest.php | 17 +++++++++ maintenance/protect.php | 2 + maintenance/purgeOldText.inc | 15 ++++++++ maintenance/rebuildInterwiki.php | 15 ++++++++ maintenance/refreshLinks.php | 2 + maintenance/sqlite.inc | 21 ++++++++++ maintenance/storage/checkStorage.php | 15 ++++++++ maintenance/storage/compressOld.inc | 17 +++++++++ maintenance/storage/compressOld.php | 15 ++++++++ maintenance/storage/fixBug20757.php | 21 ++++++++++ maintenance/storage/moveToExternal.php | 15 ++++++++ maintenance/storage/recompressTracked.php | 22 +++++++++++ maintenance/storage/resolveStubs.php | 18 +++++++++ maintenance/storage/storageTypeStats.php | 19 ++++++++++ maintenance/storage/testCompression.php | 20 ++++++++++ maintenance/storage/trackBlobs.php | 22 +++++++++++ maintenance/undelete.php | 15 ++++++++ maintenance/update.php | 15 ++++++++ maintenance/updateCollation.php | 19 ++++++++++ maintenance/upgrade1_5.php | 15 ++++++++ maintenance/userDupes.inc | 38 ++++++++++--------- maintenance/userOptions.inc | 17 +++++++++ maintenance/userOptions.php | 15 ++++++++ maintenance/waitForSlave.php | 2 + 61 files changed, 986 insertions(+), 48 deletions(-) diff --git a/maintenance/7zip.inc b/maintenance/7zip.inc index 4ac480ed0f..6bb06668c2 100644 --- a/maintenance/7zip.inc +++ b/maintenance/7zip.inc @@ -2,6 +2,24 @@ /** * 7z stream wrapper * + * Copyright © 2005 Brion Vibber + * http://www.mediawiki.org/ + * + * 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 Maintenance */ diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 5e615e6f9f..d048b7b20c 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -1,5 +1,20 @@ * @since 1.16 * @ingroup Maintenance diff --git a/maintenance/archives/upgradeLogging.php b/maintenance/archives/upgradeLogging.php index 54a82c0922..2ceb6c4f4e 100644 --- a/maintenance/archives/upgradeLogging.php +++ b/maintenance/archives/upgradeLogging.php @@ -2,6 +2,21 @@ /** * Replication-safe online upgrade script for log_id/log_deleted * + * 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 MaintenanceArchive */ diff --git a/maintenance/backupPrefetch.inc b/maintenance/backupPrefetch.inc index b7dab79245..b693eb0d6f 100644 --- a/maintenance/backupPrefetch.inc +++ b/maintenance/backupPrefetch.inc @@ -2,6 +2,24 @@ /** * Helper class for the --prefetch option of dumpTextPass.php * + * Copyright © 2005 Brion Vibber + * http://www.mediawiki.org/ + * + * 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 Maintenance */ diff --git a/maintenance/benchmarks/Benchmarker.php b/maintenance/benchmarks/Benchmarker.php index 66789ea4b9..57fb8759bf 100644 --- a/maintenance/benchmarks/Benchmarker.php +++ b/maintenance/benchmarks/Benchmarker.php @@ -1,14 +1,29 @@ diff --git a/maintenance/importImages.php b/maintenance/importImages.php index befbe64de6..ff1e3e559c 100644 --- a/maintenance/importImages.php +++ b/maintenance/importImages.php @@ -11,6 +11,21 @@ * - fetch metadata from source wiki for each file to import. * - commit the fetched metadata to the destination wiki while submitting. * + * 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 Maintenance * @author Rob Church diff --git a/maintenance/importTextFile.php b/maintenance/importTextFile.php index 3b77eb5f4a..b78ae03917 100644 --- a/maintenance/importTextFile.php +++ b/maintenance/importTextFile.php @@ -4,6 +4,21 @@ * Maintenance script allows creating or editing pages using * the contents of a text 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 * @ingroup Maintenance * @author Rob Church diff --git a/maintenance/importUseModWiki.php b/maintenance/importUseModWiki.php index bff4cd02b1..2709b58c17 100644 --- a/maintenance/importUseModWiki.php +++ b/maintenance/importUseModWiki.php @@ -1,5 +1,4 @@ @@ -21,6 +20,21 @@ * schema changes. * 2005-03-14 * + * 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 + * * @todo document * @file * @ingroup Maintenance diff --git a/maintenance/install-utils.inc b/maintenance/install-utils.inc index 93ca0b5838..85740a8a3b 100644 --- a/maintenance/install-utils.inc +++ b/maintenance/install-utils.inc @@ -3,6 +3,21 @@ * This file contains ancient db-related functions that have been deprecated. Do * not use them. Please find the appropriate replacements. * + * 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 */ diff --git a/maintenance/lag.php b/maintenance/lag.php index 3bd94f0803..df1cf70971 100644 --- a/maintenance/lag.php +++ b/maintenance/lag.php @@ -1,8 +1,23 @@ diff --git a/maintenance/language/checkDupeMessages.php b/maintenance/language/checkDupeMessages.php index ea9d5fb7f6..5c79fe11d4 100644 --- a/maintenance/language/checkDupeMessages.php +++ b/maintenance/language/checkDupeMessages.php @@ -1,6 +1,22 @@ diff --git a/maintenance/rebuildInterwiki.php b/maintenance/rebuildInterwiki.php index 6732db2874..5180a20aff 100644 --- a/maintenance/rebuildInterwiki.php +++ b/maintenance/rebuildInterwiki.php @@ -3,6 +3,21 @@ * Rebuild interwiki table using the file on meta and the language list * Wikimedia specific! * + * 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 * @todo document * @ingroup Maintenance diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index d481a5bb99..34fcbfbdf9 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -1,5 +1,7 @@ the old_id to start from * --extdb store specified revisions in an external cluster (untested) * + * 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 Maintenance ExternalStorage */ diff --git a/maintenance/storage/fixBug20757.php b/maintenance/storage/fixBug20757.php index f820528b87..958294955e 100644 --- a/maintenance/storage/fixBug20757.php +++ b/maintenance/storage/fixBug20757.php @@ -1,4 +1,25 @@ -# http://www.mediawiki.org/ -# -# 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 - /** + * Helper class for update.php and upgrade1_5.php. + * + * Copyright © 2005 Brion Vibber + * http://www.mediawiki.org/ + * + * 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 Maintenance */ diff --git a/maintenance/userOptions.inc b/maintenance/userOptions.inc index deb12bc8c3..6edef9d9ee 100644 --- a/maintenance/userOptions.inc +++ b/maintenance/userOptions.inc @@ -1,5 +1,22 @@ diff --git a/maintenance/waitForSlave.php b/maintenance/waitForSlave.php index a8d8915afd..40a4bd7dc0 100644 --- a/maintenance/waitForSlave.php +++ b/maintenance/waitForSlave.php @@ -1,5 +1,7 @@