CC-3336: Refactor schedule API used by pypo

-initial commit
This commit is contained in:
Martin Konecny 2012-02-22 17:29:49 -05:00
parent d8f7cce56e
commit 322d1bfa99
2 changed files with 104 additions and 82 deletions

View file

@ -276,12 +276,14 @@ class ApiController extends Zend_Controller_Action
$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;
}
* */
PEAR::setErrorHandling(PEAR_ERROR_RETURN);