* Fix regression in authentication hook auto-creation on login
[mediawiki.git] / includes / ExternalStoreHttp.php
blobdaf62cc4459bd75af24bfc8d0c09ee5c48517730
1 <?php
2 /**
4 * @package MediaWiki
6 * Example class for HTTP accessable external objects
8 */
10 class ExternalStoreHttp {
11 /* Fetch data from given URL */
12 function fetchFromURL($url) {
13 ini_set( "allow_url_fopen", true );
14 $ret = file_get_contents( $url );
15 ini_set( "allow_url_fopen", false );
16 return $ret;
19 /* XXX: may require other methods, for store, delete,
20 * whatever, for initial ext storage