* Add createpage and createtalk permission keys, allowing a quick
[mediawiki.git] / includes / ExternalStoreHttp.php
blobd7c1cc818d8e1b93d925b190829e050bc2daa78a
1 <?php
2 /**
3 *
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