diff --git a/application/configs/conf.php b/application/configs/conf.php index a7cc48c6f..52f9ae72f 100644 --- a/application/configs/conf.php +++ b/application/configs/conf.php @@ -6,7 +6,7 @@ * /etc/airtime/recorder.cfg */ -define('AIRTIME_VERSION', '1.7.0-alpha'); +define('AIRTIME_VERSION', '1.7.0-beta'); define('AIRTIME_COPYRIGHT_DATE', '2010-2011'); define('AIRTIME_REST_VERSION', '1.1'); @@ -16,13 +16,13 @@ $values = load_airtime_config(); $CC_CONFIG = array( // Name of the web server user - 'webServerUser' => $values['general']['webServerUser'], + 'webServerUser' => $values['general']['web_server_user'], 'rabbitmq' => $values['rabbitmq'], - 'baseFilesDir' => $values['general']['baseFilesDir'], + 'baseFilesDir' => $values['general']['base_files_dir'], // main directory for storing binary media files - 'storageDir' => $values['general']['baseFilesDir']."/stor", + 'storageDir' => $values['general']['base_files_dir']."/stor", // Database config 'dsn' => array( diff --git a/build/airtime.conf b/build/airtime.conf index 4cb119e33..9135f09e4 100644 --- a/build/airtime.conf +++ b/build/airtime.conf @@ -13,8 +13,9 @@ vhost = / [general] api_key = AAA -webServerUser = www-data -baseFilesDir = x +web_server_user = www-data +airtime_dir = x +base_files_dir = x [soundcloud] connection_retries = 3 diff --git a/install/include/AirtimeIni.php b/install/include/AirtimeIni.php index 33e7f772e..7f199e81a 100644 --- a/install/include/AirtimeIni.php +++ b/install/include/AirtimeIni.php @@ -161,7 +161,8 @@ class AirtimeIni{ { $api_key = AirtimeIni::GenerateRandomString(); AirtimeIni::UpdateIniValue('/etc/airtime/airtime.conf', 'api_key', $api_key); - AirtimeIni::UpdateIniValue('/etc/airtime/airtime.conf', 'baseFilesDir', realpath(__DIR__.'/../../').'/files'); + AirtimeIni::UpdateIniValue('/etc/airtime/airtime.conf', 'base_files_dir', realpath(__DIR__.'/../../').'/files'); + AirtimeIni::UpdateIniValue('/etc/airtime/airtime.conf', 'airtime_dir', realpath(__DIR__.'/../../')); AirtimeIni::UpdateIniValue('/etc/airtime/pypo.cfg', 'api_key', "'$api_key'"); AirtimeIni::UpdateIniValue('/etc/airtime/recorder.cfg', 'api_key', "'$api_key'"); AirtimeIni::UpdateIniValue(__DIR__.'/../../build/build.properties', 'project.home', realpath(__dir__.'/../../')); diff --git a/install/include/AirtimeInstall.php b/install/include/AirtimeInstall.php index 6f9ce0ef5..bd3a568c2 100644 --- a/install/include/AirtimeInstall.php +++ b/install/include/AirtimeInstall.php @@ -167,10 +167,14 @@ class AirtimeInstall { $dir = realpath(__DIR__."/../../utils/airtime-clean-storage"); exec("ln -s $dir /usr/bin/airtime-clean-storage"); + + $dir = realpath(__DIR__."/../../utils/airtime-update-db-settings"); + exec("ln -s $dir /usr/bin/airtime-update-db-settings"); } public static function RemoveSymlinks(){ exec("rm -f /usr/bin/airtime-import"); exec("rm -f /usr/bin/airtime-clean-storage"); + exec("rm -f /usr/bin/airtime-update-db-settings"); } } diff --git a/plugins/jquery.showinfo.js b/plugins/jquery.showinfo.js index c6eba4959..ece622458 100644 --- a/plugins/jquery.showinfo.js +++ b/plugins/jquery.showinfo.js @@ -76,8 +76,7 @@ var defaults = { updatePeriod: 5, //seconds sourceDomain: "http://localhost/", //where to get show status from - audioStreamSource: "http://localhost:8000/airtime.mp3", //where to get audio stream from - text: {listenLive:"Listen WADR Live", onAirNow:"On Air Now", offline:"Offline", current:"Current", next:"Next"} + text: {onAirNow:"On Air Now", offline:"Offline", current:"Current", next:"Next"} }; var options = $.extend(defaults, options); options.sourceDomain = addEndingBackslash(options.sourceDomain); @@ -113,7 +112,6 @@ } obj.empty(); - obj.append(""+options.text.listenLive+""); obj.append("

"+showStatus+" >>

"); obj.append("