<?
-global $IP;
-include_once( "$IP/FulltextStoplist.php" );
-include_once( "$IP/CacheManager.php" );
+include_once( "FulltextStoplist.php" );
+include_once( "CacheManager.php" );
define( "DB_READ", -1 );
define( "DB_WRITE", -2 );
$wgTotalViews = -1;
$wgTotalEdits = -1;
-global $IP;
-include_once( "$IP/DatabaseFunctions.php" );
-include_once( "$IP/UpdateClasses.php" );
-include_once( "$IP/LogPage.php" );
+include_once( "DatabaseFunctions.php" );
+include_once( "UpdateClasses.php" );
+include_once( "LogPage.php" );
/*
* Compatibility functions
# setting up a few globals.
#
-global $IP;
-
if( !isset( $wgProfiling ) )
$wgProfiling = false;
if ( $wgProfiling ) {
- include_once( "$IP/Profiling.php" );
+ include_once( "Profiling.php" );
} else {
function wfProfileIn( $fn ) {}
function wfProfileOut( $fn = "" ) {}
# Only files which are used on every invocation should be included here
# Otherwise, include them conditionally [TS]
-include_once( "$IP/GlobalFunctions.php" );
-include_once( "$IP/Namespace.php" );
-include_once( "$IP/Skin.php" );
-include_once( "$IP/OutputPage.php" );
-include_once( "$IP/User.php" );
-include_once( "$IP/LinkCache.php" );
-include_once( "$IP/Title.php" );
-include_once( "$IP/Article.php" );
-include_once( "$IP/MagicWord.php" );
-include_once( "$IP/MemCachedClient.inc.php" );
-include_once( "$IP/Block.php" );
-include_once( "$IP/SearchEngine.php" );
-include_once( "$IP/DifferenceEngine.php" );
+include_once( "GlobalFunctions.php" );
+include_once( "Namespace.php" );
+include_once( "Skin.php" );
+include_once( "OutputPage.php" );
+include_once( "User.php" );
+include_once( "LinkCache.php" );
+include_once( "Title.php" );
+include_once( "Article.php" );
+include_once( "MagicWord.php" );
+include_once( "MemCachedClient.inc.php" );
+include_once( "Block.php" );
+include_once( "SearchEngine.php" );
+include_once( "DifferenceEngine.php" );
wfProfileOut( "$fname-includes" );
wfProfileIn( "$fname-memcached" );
wfProfileOut( "$fname-memcached" );
wfProfileIn( "$fname-misc" );
-include_once( "$IP/Language.php" );
+include_once( "Language.php" );
$wgOut = new OutputPage();
wfDebug( "\n\n" );
$wgLangClass = "Language" . ucfirst( $wgLanguageCode );
if( ! class_exists( $wgLangClass ) ) {
- include_once( "$IP/LanguageUtf8.php" );
+ include_once( "LanguageUtf8.php" );
$wgLangClass = "LanguageUtf8";
}
$wgLang = new $wgLangClass();
if( !$wgCommandLineMode ) {
if( $wgSessionsInMemcached ) {
- include_once( "$IP/MemcachedSessions.php" );
+ include_once( "MemcachedSessions.php" );
}
session_set_cookie_params( 0, $wgCookiePath, $wgCookieDomain );
session_cache_limiter( "private, must-revalidate" );
<?
-global $IP;
-include_once( "$IP/SpecialRecentchanges.php" );
+include_once( "SpecialRecentchanges.php" );
function wfSpecialRecentchangeslinked( $par = NULL )
{
<?
# See deferred.doc
-global $IP;
-include_once( "$IP/UserUpdate.php" );
-include_once( "$IP/ViewCountUpdate.php" );
-include_once( "$IP/SiteStatsUpdate.php" );
-include_once( "$IP/LinksUpdate.php" );
-include_once( "$IP/SearchUpdate.php" );
-include_once( "$IP/UserTalkUpdate.php" );
+include_once( "UserUpdate.php" );
+include_once( "ViewCountUpdate.php" );
+include_once( "SiteStatsUpdate.php" );
+include_once( "LinksUpdate.php" );
+include_once( "SearchUpdate.php" );
+include_once( "UserTalkUpdate.php" );
?>
}
}
-global $IP;
-include_once( "{$IP}/Language" . ucfirst( $wgLanguageCode ) . ".php" );
+include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );
?>
<?
-global $IP;
-include_once("{$IP}/LanguageUtf8.php");
+include_once("LanguageUtf8.php");
# NOTE: To turn off "Current Events" in the sidebar,
# set "currentevents" => "-"
<?
-include_once("$IP/LanguageUtf8.php");
+include_once("LanguageUtf8.php");
# Tu môžete meniť názvy "namespaces" (no proste, rôznych častí encyklopédie),
# ale čísla nechajte tak, ako sú! Program to tak vyžaduje...
$wikiLowerChars = $wgMemc->get( $key2 = "$wgDBname:utf8:lower" );
if(($wikiUpperChars === false) || ($wikiLowerChars === false)) {
- include_once("$IP/Utf8Case.php");
+ include_once( "Utf8Case.php" );
$wgMemc->set( $key1, $wikiUpperChars );
$wgMemc->set( $key2, $wikiLowerChars );
}
<?
-global $IP;
include( "./LocalSettings.php" );
-include( "$IP/Setup.php" );
+include( "Setup.php" );
header( "Content-type: text/xml; charset={$wgInputEncoding}" );
print "<";
print "?xml version=\"1.0\" encoding=\"utf-8\"?";
session_register( "wsUserPassword" );
session_register( "wsUploadFiles" );
-global $IP;
+unset( $IP );
+ini_set( "allow_url_fopen", 0 ); # For security...
include_once( "./LocalSettings.php" );
-include_once( "$IP/Setup.php" );
+
+$include_path = ini_get( "include_path" );
+# Windows requires ';' as separator, ':' for Unix
+if( strchr( $include_path, ";" ) ) $sep = ";"; else $sep = ":";
+ini_set( "include_path", $IP . $sep . ini_get( "include_path" ) );
+
+include_once( "Setup.php" );
wfProfileIn( "main-misc-setup" );
OutputPage::setEncodings(); # Not really used yet
switch( $wgTitle->getNamespace() ) {
case 6:
- include_once( "$IP/ImagePage.php" );
+ include_once( "ImagePage.php" );
$wgArticle = new ImagePage( $wgTitle );
break;
default:
break;
case "edit":
case "submit":
- include_once( "$IP/EditPage.php" );
+ include_once( "EditPage.php" );
$editor = new EditPage( $wgArticle );
$editor->$action();
break;