diff options
author | nobody <nobody@localhost> | 2005-04-29 04:26:52 +0000 |
---|---|---|
committer | nobody <nobody@localhost> | 2005-04-29 04:26:52 +0000 |
commit | 1974eb2c22e134eb78aba052bc8df1b192d989b7 (patch) | |
tree | 5bafd667000bdea7d0c5c68d4a918c500835fd42 | |
parent | e479bf0b26351125158eff8f36387936484cb3c9 (diff) |
This commit was manufactured by cvs2svn to create tag 'REL1_4_3'.1.4.3
-rw-r--r-- | includes/ExternalStore.php | 44 | ||||
-rw-r--r-- | includes/ExternalStoreHttp.php | 23 |
2 files changed, 0 insertions, 67 deletions
diff --git a/includes/ExternalStore.php b/includes/ExternalStore.php deleted file mode 100644 index 78e1b84d6e48..000000000000 --- a/includes/ExternalStore.php +++ /dev/null @@ -1,44 +0,0 @@ -<?php -/** - * - * @package MediaWiki - * - * Constructor class for data kept in external repositories - * - * External repositories might be populated by maintenance/async - * scripts, thus partial moving of data may be possible, as well - * as possibility to have any storage format (i.e. for archives) - * - */ - -class ExternalStore { - /* Fetch data from given URL */ - function fetchFromURL($url) { - global $wgExternalStores; - - if (!$wgExternalStores) - return false; - - @list($proto,$path)=explode('://',$url,2); - /* Bad URL */ - if ($path=="") - return false; - /* Protocol not enabled */ - if (!in_array( $proto, $wgExternalStores )) - return false; - - $class='ExternalStore'.ucfirst($proto); - /* Preloaded modules might exist, especially ones serving multiple protocols */ - if (!class_exists($class)) { - if (!include_once($class.'.php')) - return false; - } - $store=new $class(); - return $store->fetchFromURL($url); - } - - /* XXX: may require other methods, for store, delete, - * whatever, for initial ext storage - */ -} -?> diff --git a/includes/ExternalStoreHttp.php b/includes/ExternalStoreHttp.php deleted file mode 100644 index d7c1cc818d8e..000000000000 --- a/includes/ExternalStoreHttp.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php -/** - * - * @package MediaWiki - * - * Example class for HTTP accessable external objects - * - */ - -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; - } - - /* XXX: may require other methods, for store, delete, - * whatever, for initial ext storage - */ -} -?> |