<?php
+# Not a valid entry point, skip unless MEDIAWIKI is defined
+if (defined('MEDIAWIKI')) {
$wgExtensionFunctions[] = "wfShowProcesslist";
function wfShowProcesslist() {
-
-require_once( 'includes/SpecialPage.php' );
+global $IP;
+require_once( "$IP/includes/SpecialPage.php" );
class ShowProcesslistPage extends UnlistedSpecialPage
{
SpecialPage::addPage( new ShowProcesslistPage );
} # End of extension function
+} # End of invocation guard
?>
# Make an HTML table showing all the wikis on the site
-
+# Not a valid entry point, skip unless MEDIAWIKI is defined
+if (defined('MEDIAWIKI')) {
+
$wgExtensionFunctions[] = "wfSiteMatrix";
function wfSiteMatrix() {
+global $IP;
+require_once( "$IP/includes/SpecialPage.php" );
+
class SiteMatrixPage extends SpecialPage
{
function SiteMatrixPage() {
$wgMessageCache->addMessage( "sitematrix", "List of Wikimedia wikis" );
} # End of extension function
+} # End of invocation protection
?>
# Given a string in UTF-8, it converts it to HTML entities suitable for
# an ISO 8859-1 web page.
+# Not a valid entry point, skip unless MEDIAWIKI is defined
+if (defined('MEDIAWIKI')) {
$wgExtensionFunctions[] = "wfUnicodeConverter";
function wfUnicodeConverter() {
-
-require_once( "includes/SpecialPage.php" );
+global $IP;
+require_once( "$IP/includes/SpecialPage.php" );
class UnicodeConverter extends SpecialPage
{
$wgMessageCache->addMessage( "unicodeconverter", "Unicode Converter" );
} # End of extension function
+} # End of invocation guard
?>