-syntax error fix for liquidsoap + other small changes

This commit is contained in:
martin 2011-03-06 15:18:40 -05:00
parent c2903c4198
commit 75167bb576
2 changed files with 3 additions and 4 deletions

View file

@ -18,7 +18,6 @@ if (isset($arr["DOCUMENT_ROOT"]) && ($arr["DOCUMENT_ROOT"] != "") ) {
createAPIKey();
require_once(dirname(__FILE__).'/../application/configs/conf.php');
//require_once(dirname(__FILE__).'/../application/models/GreenBox.php');
require_once(dirname(__FILE__).'/installInit.php');
@ -36,8 +35,8 @@ function rand_string($len=20, $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789')
function createAPIKey(){
$api_key = rand_string();
updateINIKeyValues('../build/airtime.conf', 'api_key', $api_key);
updateINIKeyValues('../pypo/config.cfg', 'api_key', "'$api_key'");
updateINIKeyValues(__DIR__.'/../build/airtime.conf', 'api_key', $api_key);
updateINIKeyValues(__DIR__.'/../pypo/config.cfg', 'api_key', "'$api_key'");
}
function checkIfRoot(){

View file

@ -42,7 +42,7 @@ def add_skip_command(s)
def skip(_)
l = list.hd(server.execute("queue.queue"))
l = string.split(separator=" ",l)
list.iter(fun (rid) -> ignore(server.execute(queue.ignore #{rid}")), l)
list.iter(fun (rid) -> ignore(server.execute("queue.ignore #{rid}")), l)
source.skip(s)
"Done!"