Merge branch 'master' of dev.sourcefabric.org:airtime

This commit is contained in:
martin 2011-02-28 13:27:26 -05:00
commit d47fc41082
2 changed files with 5 additions and 14 deletions

View file

@ -6,6 +6,7 @@ define('CAMPCASTER_COPYRIGHT_DATE', '2010');
global $CC_CONFIG;
$values = load_airtime_config();
$baseFilesDir = __DIR__.'/../../files';
$CC_CONFIG = array(
// Database config
@ -21,21 +22,11 @@ $CC_CONFIG = array(
'apiKey' => $values['api_key'],
'apiPath' => "/api/",
'apiPath' => '/api/',
'baseFilesDir' => __DIR__."/../../files",
'baseFilesDir' => $baseFilesDir,
// main directory for storing binary media files
'storageDir' => __DIR__.'/../../files/stor',
// directory for temporary files
'bufferDir' => __DIR__.'/../../files/stor/buffer',
// directory for incomplete transferred files
'transDir' => __DIR__.'/../../files/trans',
// directory for symlinks to accessed files
'accessDir' => __DIR__.'/../../files/access',
'cronDir' => __DIR__.'/../../files/cron',
'storageDir' => "$baseFilesDir/stor",
"rootDir" => __DIR__."/../..",
'pearPath' => dirname(__FILE__).'/../../library/pear',

View file

@ -73,7 +73,7 @@ echo " *** Directory Setup ***\n";
foreach (array('baseFilesDir', 'storageDir') as $d) {
$test = file_exists($CC_CONFIG[$d]);
if ( $test === FALSE ) {
@mkdir($CC_CONFIG[$d], 02775);
@mkdir($CC_CONFIG[$d], 02775, true);
if (file_exists($CC_CONFIG[$d])) {
$rp = realpath($CC_CONFIG[$d]);
echo " * Directory $rp created\n";