SAAS-505: Extract Amazon_S3 class and have it inherit from a general 'cloud backend' class

This commit is contained in:
drigato 2014-12-01 21:05:46 -05:00
parent 432245b18e
commit 7c0a25be7f
7 changed files with 194 additions and 133 deletions

View file

@ -29,6 +29,7 @@ class Config {
$cloudStorageConfig = isset($_SERVER['CLOUD_STORAGE_CONF']) ? $_SERVER['CLOUD_STORAGE_CONF'] : "/etc/airtime-saas/cloud_storage.conf";
$cloudStorageValues = parse_ini_file($cloudStorageConfig, true);
$currentStorageBackend = $cloudStorageValues['current_backend']['storage_backend'];
$CC_CONFIG['current_backend'] = $cloudStorageValues['current_backend']['storage_backend'];
$CC_CONFIG['storage_backend'] = $cloudStorageValues[$currentStorageBackend];
$values = parse_ini_file($filename, true);