-<?
+<?php
# This file should be copied to AdminSettings.php, and modified
# to reflect local settings. Unlike LocalSettings.php, it is
# not copied to the installation directory for security reasons;
-<?
+<?php
# Local settings work like this: the file LocalSettings.sample
# should be copied to LocalSettings.php in the source directory
# and edited for your local file system settings and software
-<?
+<?php
# This file is copied to the install directory so that
# later update scripts will be able to use it to determine
# what they need to update. The version number here must
-<?
+<?php
# Class representing a Wikipedia article and history.
# See design.doc for an overview.
-<?
+<?php
# Blocks and bans object
#
#TODO: This could be used everywhere, but it isn't.
-<?
+<?php
# Object for fast lookup of IP blocks
# Represents a memcached value, and in some sense, the entire ipblocks table
-<?
+<?php
# Handles talking to the file cache, putting stuff in and taking it back out.
# Mostly called from Article.php, also from DatabaseFunctions.php for the
-<?
+<?php
include_once( "FulltextStoplist.php" );
include_once( "CacheManager.php" );
-<?
+<?php
# Backwards compatibility wrapper for Database.php
-<?
+<?php
define("DF_ALL", -1);
define("DF_NONE", 0);
define("DF_MDY", 1);
-<?
+<?php
# DO NOT EDIT THIS FILE!
# To customize your installation, edit "LocalSettings.php".
# Note that since all these string interpolations are expanded
-<?
+<?php
# See diff.doc
class DifferenceEngine {
-<?
+<?php
# Splitting edit page/HTML interface from Article...
# The actual database and text munging is still in Article,
-<?
+<?php
# This is the MySQL fulltext search stoplist, copied from the
# source file "myisam/ft_static.c" in the MySQL source distribution.
-<?
+<?php
# Global functions used everywhere
$wgNumberOfArticles = -1; # Unset
-<?
+<?php
/*
Special handling for image description pages
-<?
+<?php
# Cache for article titles and ids linked from one source
# These are used in incrementalSetup()
-<?
+<?php
# See deferred.doc
class LinksUpdate {
-<?
+<?php
# Database load balancing object
class LoadBalancer {
-<?
+<?php
# Class to simplify the use of log pages
class LogPage {
-<?
+<?php
# This class encapsulates "magic words" such as #redirect, __NOTOC__, etc.
# Usage:
-<?
+<?php
function linkToMathImage ( $tex, $outputhash )
{
-<?
+<?php
/*
This file gets included if $wgSessionsInMemcache is set in the config.
-<?
+<?php
# Message cache
# Performs various useful MediaWiki namespace-related functions
-<?
+<?php
# This is a utility class with only static functions
# for dealing with namespaces that encodes all the
# "magic" behaviors of them based on index. The textual
-<?
+<?php
# See design.doc
if($wgUseTeX) include_once( "Math.php" );
-<?
+<?php
# This file is only included if profiling is enabled
function wfProfileIn( $functionname )
{
-<?
+<?php
include_once ( "LogPage.php" ) ;
-<?
+<?php
# Utility class for creating new RC entries
define( "RC_EDIT", 0);
-<?
+<?php
# See search.doc
class SearchEngine {
-<?
+<?php
# See deferred.doc
class SearchUpdate {
-<?
+<?php
# The main wiki script and things like database
# conversion and maintenance scripts all share a
# common setup of including lots of classes and
-<?
+<?php
# See deferred.doc
class SiteStatsUpdate {
-<?
+<?php
# See skin.doc
# These are the INTERNAL names, which get mapped
-<?
+<?php
# See skin.doc
class SkinCologneBlue extends Skin {
-<?
+<?php
# See skin.doc
class SkinFramed extends Skin {
-<?
+<?php
# See skin.doc
class SkinNostalgia extends Skin {
-<?
+<?php
include_once( "Smarty.class.php" );
-<?
+<?php
# See skin.doc
class SkinStandard extends Skin {
-<?
+<?php
function wfSpecialAllpages( $par=NULL )
{
-<?
+<?php
include_once( "QueryPage.php" );
-<?
+<?php
function wfSpecialAsksql()
{
-<?
+<?php
function wfSpecialBlockip()
{
-<?
+<?php
# ISBNs in wiki pages will create links to this page, with
# the ISBN passed in via the query string.
-<?
+<?php
function wfSpecialCategories()
{
-<?
+<?php
function wfSpecialContributions( $par = "" )
{
-<?
+<?php
include_once( "QueryPage.php" );
-<?
+<?php
function wfSpecialDebug()
{
-<?
+<?php
function wfSpecialEmailuser()
{
-<?
+<?php
function wfSpecialExport( $page = "" ) {
global $wgOut, $wgLang;
-<?
+<?php
function wfSpecialImagelist()
{
-<?
+<?php
function wfSpecialIpblocklist()
{
-<?
+<?php
function wfSpecialListusers()
{
-<?
+<?php
function wfSpecialLockdb()
{
-<?
+<?php
include_once( "QueryPage.php" );
-<?
+<?php
include_once( "QueryPage.php" );
-<?
+<?php
function sns()
{
-<?
+<?php
include_once( "LinksUpdate.php" );
function wfSpecialMakesysop()
-<?
+<?php
include_once( "LinksUpdate.php" );
function wfSpecialMovepage()
-<?
+<?php
# Suggestion from mailing list: lists pages in order
# least recently reviewed.
#
-<?
+<?php
include_once( "QueryPage.php" );
-<?
+<?php
include_once( "QueryPage.php" );
-<?
+<?php
+
function wfSpecialPreferences()
{
global $wgUser, $wgOut, $wgUseDynamicDates, $action;
-<?
+<?php
function wfSpecialRandompage()
{
-<?
+<?php
function wfSpecialRecentchanges( $par )
{
-<?
+<?php
include_once( "SpecialRecentchanges.php" );
function wfSpecialRecentchangeslinked( $par = NULL )
-<?
+<?php
include_once("QueryPage.php");
-<?
+<?php
function wfSpecialSpecialpages()
{
-<?
+<?php
function wfSpecialStatistics()
{
-<?
+<?php
function wfSpecialUndelete( $par )
{
-<?
+<?php
function wfSpecialUnlockdb()
{
-<?
+<?php
function wfSpecialUnusedimages()
{
-<?
+<?php
function wfSpecialUpload()
{
-<?
+<?php
function wfSpecialUserlogin()
{
-<?
+<?php
function wfSpecialUserlogout()
{
-<?
+<?php
function wfSpecialVersion()
{
-<?
+<?php
function wfSpecialVote()
{
-<?
+<?php
include_once ( "QueryPage.php" ) ;
-<?
+<?php
include_once( "SpecialRecentchanges.php" );
include_once( "WatchedItem.php" );
-<?
+<?php
function wfSpecialWhatlinkshere($par = NULL)
{
-<?
+<?php
# See deferred.doc
class SquidUpdate {
-<?
+<?php
# See title.doc
/* private static */ $title_interwiki_cache = array();
-<?
+<?php
# See deferred.doc
include_once( "UserUpdate.php" );
include_once( "ViewCountUpdate.php" );
-<?
+<?php
# See user.doc
include_once( "WatchedItem.php" );
-<?
+<?php
# See deferred.doc
class UserTalkUpdate {
-<?
+<?php
# See deferred.doc
class UserUpdate {
-<?
+<?php
# Simple 1:1 upper/lowercase switching arrays for utf-8 text
# Won't get context-sensitive things yet
-<?
+<?php
# See deferred.doc
class ViewCountUpdate {
-<?
+<?php
class WatchedItem {
-<?
+<?php
# Script to kill a MySQL thread after a specified timeout
-<?
+<?php
function install_version_checks() {
if( !function_exists( "version_compare" ) ) {
-<?
+<?php
# Install software and create new empty database.
#
-<?
+<?php
#--------------------------------------------------------------------------
# Constants
#--------------------------------------------------------------------------
-<?
+<?php
# See language.doc
include_once("LanguageUtf8.php");
-<?
+<?php
#--------------------------------------------------------------------------
# Language-specific text
#--------------------------------------------------------------------------
-<?
+<?php
# The names of the namespaces can be set here, but the numbers
# are magical, so don't change or move them! The Namespace class
-<?
+<?php
# See language.doc
-<?
+<?php
# NOTE: To turn off "Current Events" in the sidebar,
# set "currentevents" => "-"
-<?
+<?php
# See Language.php for notes.
if($wgMetaNamespace === FALSE)
-<?
+<?php
# See language.doc
class LanguageEn extends Language {
-<?
+<?php
include("LanguageUtf8.php");
$wgInputEncoding = "utf-8";
$wgOutputEncoding = "utf-8";
-<?
+<?php
# The names of the namespaces can be set here, but the numbers
# are magical, so don't change or move them! The Namespace class
-<?
+<?php
# FIXME: use $wgSitename, $wgMetaNamespace instead of hard-coded Wikipedia
-<?
+<?php
# NOTE: To turn off "Current Events" in the sidebar,
# set "currentevents" => "-"
-<?
+<?php
include_once("LanguageUtf8.php");
-<?
+<?php
include( "LanguageUtf8.php" );
-<?
+<?php
include_once("LanguageUtf8.php");
-<?
+<?php
# NOTE: To turn off "Current Events" in the sidebar,
# set "currentevents" => "-"
-<?
+<?php
# NOTE: To turn off "Current Events" in the sidebar,
# set "currentevents" => "-"
-<?
+<?php
global $IP;
include_once( "LanguageUtf8.php" );
-<?
+<?php
# See language.doc
include_once( "LanguageUtf8.php" );
-<?
+<?php
/* WARNING: This file is still in ISO-8859-1. */
-<?
+<?php
# NOTE: To turn off "Current Events" in the sidebar,
# set "currentevents" => "-"
-<?
+<?php
include_once( "LanguageUtf8.php" );
-<?
+<?php
include_once("LanguageUtf8.php");
# NOTE: To turn off "Current Events" in the sidebar,
-<?
+<?php
include_once("LanguageUtf8.php");
-<?
+<?php
include_once( "LanguageUtf8.php" );
-<?
+<?php
include_once("LanguageUtf8.php");
-<?
+<?php
include_once("LanguageUtf8.php");
-<?
+<?php
include( "LanguageUtf8.php" );
-<?
+<?php
// NOTE: To turn off "Current Events" in the sidebar,
// set "currentevents" => "-"
-<?
+<?php
include_once( "LanguageUtf8.php" );
-<?
+<?php
$wgInputEncoding = "utf-8";
$wgOutputEncoding = "utf-8";
-<?
+<?php
include_once( "LanguageUtf8.php" );
# NOTE: To turn off "Current Events" in the sidebar,
-<?
+<?php
# This script is included from update.php and install.php. Do not run it
# by itself.
-<?
+<?php
print "This script is obsolete!";
print "It is retained in the source here in case some of its
-<?
+<?php
# Rebuild recent changes table.
-<?
+<?php
# Convert watchlists to new format
global $IP;
-<?
+<?php
# Check to see if all messages have been translated into
# the selected language. To run this script, you must have
-<?
+<?php
# Check to see if all messages have been translated into
# the selected language. To run this script, you must have
-<?
+<?php
# Checks translation of all language files
-<?
+<?php
# Creating a new empty database; either this or the conversion
# script from the old format needs to be run, but not both.
-<?
+<?php
# Rebuild search index table from scratch. This takes several
# hours, depending on the database size and server configuration.
-<?
+<?php
$wgCommandLineMode = true;
$fmB = chr(2);
-<?
+<?php
$wgCommandLineMode = true;
$sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":";
-<?
+<?php
# Rebuild link tracking tables from scratch. This takes several
# hours, depending on the database size and server configuration.
-<?
+<?php
# Functions for rebuilding the link tracking tables; must
# be included within a script that also includes the Setup.
-<?
+<?php
# Rebuild link tracking tables from scratch. This takes several
# hours, depending on the database size and server configuration.
-<?
+<?php
# Rebuild recent changes table.
#
-<?
+<?php
# Rebuild link tracking tables from scratch. This takes several
# hours, depending on the database size and server configuration.
-<?
+<?php
# Rebuild the fulltext search indexes. This may take a while
# depending on the database size and server configuration.
-<?
+<?php
# Rebuild search index table from scratch. This takes several
# hours, depending on the database size and server configuration.
-<?
+<?php
# Remove spurious brokenlinks
-<?
+<?php
include_once( "./LocalSettings.php" );
global $wpDropdown, $wgArticlePath;
$url = str_replace( "$1", $wpDropdown, $wgArticlePath );
-<?
+<?php
include( "./LocalSettings.php" );
include( "Setup.php" );
header( "Content-type: text/xml; charset={$wgInputEncoding}" );
-<?
+<?php
# Update already-installed software
#
-<?
+<?php
# Main wiki script; see design.doc
#
$wgRequestTime = microtime();