* Don't start a new scope with if defined 'MEDIAWIKI...
<?php
+if ( ! defined( 'MEDIAWIKI' ) )
+ die();
+
/**
* @package MediaWiki
*/
-/**
- * This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
- */
-if( defined( 'MEDIAWIKI' ) ) {
-
-
/**
* Image gallery
*
}
} //class
-
-
-
-
-} // defined( 'MEDIAWIKI' )
?>
<?php
+if ( ! defined( 'MEDIAWIKI' ) )
+ die();
/**
* Provide things related to namespaces
* @package MediaWiki
*/
-/**
- * This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
- */
-if( defined( 'MEDIAWIKI' ) ) {
-
-
/**
* Definitions of the NS_ constants are in Defines.php
* @private
}
}
}
-
-}
?>
<?php
+if ( ! defined( 'MEDIAWIKI' ) )
+ die();
/**
* Functions for dealing with proxies
* @package MediaWiki
*/
-if ( !defined( 'MEDIAWIKI' ) ) {
- die();
-}
-
/** Work out the IP address based on various globals */
function wfGetIP() {
global $wgSquidServers, $wgSquidServersNoPurge, $wgIP;
<?php
+if ( ! defined( 'MEDIAWIKI' ) )
+ die();
/**
*
* @subpackage Skins
*/
-/**
- * This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
- */
-if( defined( "MEDIAWIKI" ) ) {
-
# See skin.txt
require_once( 'Linker.php' );
require_once( 'Image.php' );
return $bar;
}
}
-
-}
?>
<?php
+if ( ! defined( 'MEDIAWIKI' ) )
+ die();
# 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
* @subpackage Skins
*/
-/**
- * This is not a valid entry point, perform no further processing unless
- * MEDIAWIKI is defined
- */
-if( defined( 'MEDIAWIKI' ) ) {
-
require_once 'GlobalFunctions.php';
require_once 'SkinTemplate.php';
} // end of if( class_exists( 'PHPTAL' ) )
} // end of if( class_exists( 'PEAR' ) )
-} // end of if( defined( 'MEDIAWIKI' ) )
?>
<?php
+if ( ! defined( 'MEDIAWIKI' ) )
+ die();
+
# 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
* @subpackage Skins
*/
-/**
- * This is not a valid entry point, perform no further processing unless
- * MEDIAWIKI is defined
- */
-if( defined( 'MEDIAWIKI' ) ) {
-
require_once 'GlobalFunctions.php';
/**
return ($msg != '-') && ($msg != ''); # ????
}
}
-
-} // end of if( defined( 'MEDIAWIKI' ) )
?>