summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobody <nobody@localhost>2005-05-04 11:51:30 +0000
committernobody <nobody@localhost>2005-05-04 11:51:30 +0000
commitbec27173104003ac32e94d6a2d8351487ee996a4 (patch)
tree108b46f0c4b92ab44da85f78eb05e17a6b8acb8b
parentb3b2ceb7d4b7170cb75a99a7519ebdedba85e997 (diff)
This commit was manufactured by cvs2svn to create tag 'REL1_4_4'.1.4.4
-rw-r--r--includes/ExternalStore.php44
-rw-r--r--includes/ExternalStoreHttp.php23
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
- */
-}
-?>