$wgVersion = "1.2.0beta";
-$wgSitename = "Wikipedia";
+$wgSitename = "MediaWiki"; # Please customize!
$wgMetaNamespace = FALSE; # will be same as you set $wgSitename
$wgServer = "http://" . getenv( "SERVER_NAME" );
$wgScriptPath = "/wiki";
-$wgScript = "{$wgScriptPath}/wiki.phtml";
-$wgRedirectScript = "{$wgScriptPath}/redirect.phtml";
+
+# Change this and the next two to use "phtml" for compatibility with old installations
+$wgScriptExtension = "php";
+$wgScript = "{$wgScriptPath}/wiki.{$wgScriptExtension}";
+$wgRedirectScript = "{$wgScriptPath}/redirect.{$wgScriptExtension}";
+
$wgStyleSheetPath = "{$wgScriptPath}/style";
$wgStyleSheetDirectory = "{$IP}/style";
$wgArticlePath = "{$wgScript}?title=$1";
$wgMathDirectory = "{$wgUploadDirectory}/math";
$wgTmpDirectory = "{$wgUploadDirectory}/tmp";
$wgEmergencyContact = "wikiadmin@" . getenv( "SERVER_NAME" );
-#$wgPasswordSender = "Wikipedia Mail <apache@www.wikipedia.org>";
-$wgPasswordSender = "Wikipedia Mail <apache@www.wikipedia.org>\r\nReply-To: webmaster@www.wikipedia.org";
+$wgPasswordSender = "Wikipedia Mail <apache@" . getenv( "SERVER_NAME" ) . ">";
# MySQL settings
#
}
function copyfile( $sdir, $name, $ddir, $perms = 0664 ) {
+ copyfileto( $sdir, $name, $ddir, $name, $perms );
+}
+
+function copyfileto( $sdir, $sname, $ddir, $dname, $perms = 0664 ) {
global $wgInstallOwner, $wgInstallGroup;
- $d = "{$ddir}/{$name}";
- if ( copy( "{$sdir}/{$name}", $d ) ) {
+ $d = "{$ddir}/{$dname}";
+ if ( copy( "{$sdir}/{$sname}", $d ) ) {
if ( isset( $wgInstallOwner ) ) { chown( $d, $wgInstallOwner ); }
if ( isset( $wgInstallGroup ) ) { chgrp( $d, $wgInstallGroup ); }
chmod( $d, $perms );
- # print "Copied \"{$name}\" to \"{$ddir}\".\n";
+ # print "Copied \"{$sname}\" to \"{$d}\".\n";
} else {
- print "Failed to copy file \"{$name}\" to \"{$ddir}\".\n";
+ print "Failed to copy file \"{$sname}\" to \"{$ddir}/{$dname}\".\n";
exit();
}
}
copyfile( ".", "LocalSettings.php", $IP );
copyfile( ".", "Version.php", $IP );
-copyfile( ".", "wiki.phtml", $IP );
-copyfile( ".", "redirect.phtml", $IP );
-copyfile( ".", "texvc.phtml", $IP );
+copyfileto( ".", "wiki.phtml", $IP, "wiki.$wgScriptExtension" );
+copyfileto( ".", "redirect.phtml", $IP, "redirect.$wgScriptExtension" );
copydirectory( "./includes", $IP );
copydirectory( "./stylesheets", $wgStyleSheetDirectory );
function do_update_files() {
global $IP, $wgStyleSheetDirectory, $wgUploadDirectory, $wgLanguageCode, $wgDebugLogFile;
+ global $wgScriptExtension;
print "Copying files... ";
- copyfile( ".", "wiki.phtml", $IP );
- copyfile( ".", "redirect.phtml", $IP );
- copyfile( ".", "texvc.phtml", $IP );
+ copyfileto( ".", "wiki.phtml", $IP, "wiki.$wgScriptExtension" );
+ copyfileto( ".", "redirect.phtml", $IP, "redirect.$wgScriptExtension" );
copydirectory( "./includes", $IP );
copydirectory( "./stylesheets", $wgStyleSheetDirectory );