class ExternalStoreHttp {
/* Fetch data from given URL */
function fetchFromURL($url) {
- ini_set( "allow_url_fopen", true );
$ret = file_get_contents( $url );
- ini_set( "allow_url_fopen", false );
return $ret;
}
$wgRUstart = array();
}
unset( $IP );
-@ini_set( 'allow_url_fopen', 0 ); # For security
# Valid web server entry point, enable includes.
# Please don't move this line to includes/Defines.php. This line essentially
if( function_exists( 'file_get_contents' ) ) {
$errorLevel = error_reporting();
error_reporting( $errorLevel & !E_WARNING );
-
- ini_set( 'allow_url_fopen', '1' );
+
$s = file_get_contents( $testUrl );
error_reporting( $errorLevel );