Merge branch 'saas' into saas-embed-player
This commit is contained in:
commit
40d6249229
28 changed files with 321 additions and 9900 deletions
|
@ -55,7 +55,8 @@ $ccAcl->allow('G', 'index')
|
|||
->allow('G', 'upgrade')
|
||||
->allow('G', 'provisioning')
|
||||
->allow('G', 'downgrade')
|
||||
->allow('G', 'rest:show-image')
|
||||
->allow('G', 'rest:show-image', 'get')
|
||||
->allow('H', 'rest:show-image')
|
||||
->allow('G', 'rest:media', 'get')
|
||||
->allow('H', 'rest:media')
|
||||
->allow('H', 'preference', 'is-import-in-progress')
|
||||
|
|
|
@ -8,14 +8,17 @@
|
|||
|
||||
class Config {
|
||||
private static $CC_CONFIG = null;
|
||||
private static $rootDir;
|
||||
public static function loadConfig() {
|
||||
|
||||
self::$rootDir = __DIR__."/../..";
|
||||
$CC_CONFIG = array(
|
||||
/* ================================================ storage configuration */
|
||||
|
||||
'soundcloud-client-id' => '2CLCxcSXYzx7QhhPVHN4A',
|
||||
'soundcloud-client-secret' => 'pZ7beWmF06epXLHVUP1ufOg2oEnIt9XhE8l8xt0bBs',
|
||||
|
||||
"rootDir" => __DIR__."/../.."
|
||||
"rootDir" => self::$rootDir
|
||||
);
|
||||
|
||||
//In the unit testing environment, we always want to use our local airtime.conf in airtime_mvc/application/test:
|
||||
|
@ -89,7 +92,8 @@ class Config {
|
|||
public static function setAirtimeVersion() {
|
||||
$airtime_version = Application_Model_Preference::GetAirtimeVersion();
|
||||
$uniqueid = Application_Model_Preference::GetUniqueId();
|
||||
self::$CC_CONFIG['airtime_version'] = md5($airtime_version.$uniqueid);
|
||||
$buildVersion = file_get_contents(self::$rootDir."/../VERSION");
|
||||
self::$CC_CONFIG['airtime_version'] = md5($airtime_version.$buildVersion);
|
||||
}
|
||||
|
||||
public static function getConfig() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue