-api_key autogeneration and usage implemented

This commit is contained in:
martin 2011-02-22 16:16:37 -05:00
parent 92545b53a6
commit 8ad5d23ee6
7 changed files with 63 additions and 33 deletions

View file

@ -432,6 +432,8 @@ class Schedule {
return array();
}
global $CC_CONFIG;
$date = new Application_Model_DateHelper;
$timeNow = $date->getDate();
return array("env"=>APPLICATION_ENV,
@ -442,7 +444,8 @@ class Schedule {
"currentShow"=>Show_DAL::GetCurrentShow($timeNow),
"nextShow"=>Show_DAL::GetNextShow($timeNow),
"timezone"=> date("T"),
"timezoneOffset"=> date("Z"));
"timezoneOffset"=> date("Z"),
"apiKey"=>$CC_CONFIG['apiKey'][0]);
}
/**