CC-1799 : Live Studio Playout from media library (pytagsfs)

set up daemontools process for the media monitor script.
This commit is contained in:
Naomi 2011-04-25 12:49:01 -04:00 committed by martin
parent de9136c718
commit 52efc79f8c
13 changed files with 317 additions and 9 deletions

View file

@ -316,5 +316,18 @@ class ApiController extends Zend_Controller_Action
$this->view->id = $file->getId();
}
public function reloadMetadataAction() {
global $CC_CONFIG;
$api_key = $this->_getParam('api_key');
if (!in_array($api_key, $CC_CONFIG["apiKey"]))
{
header('HTTP/1.0 401 Unauthorized');
print 'You are not allowed to access this resource.';
exit;
}
}
}