From 343cd8274dbd658a44fd54011ee0d032a7543a01 Mon Sep 17 00:00:00 2001 From: Yuchen Wang Date: Fri, 9 Dec 2011 11:25:50 -0500 Subject: [PATCH] SAAS-57: Add LiveChat to Airtime Pro Forgot to remove the code from ApiController... --- .../application/controllers/ApiController.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index 09ba08f9c..e538d3147 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -757,24 +757,6 @@ class ApiController extends Zend_Controller_Action $this->view->status = $status; } - - /** - * Get the client id assigned by WHMCS from database - */ - public function liveChatAction() { - $this->view->layout()->disableLayout(); - $this->_helper->viewRenderer->setNoRender(true); - - if(is_null(Zend_Auth::getInstance()->getStorage()->read())) { - header('HTTP/1.0 401 Unauthorized'); - print 'You are not allowed to access this resource.'; - return; - } - - $this->view->liveChat = array( - "client_id"=>Application_Model_Preference::GetClientId() - ); - } public function registerComponentAction(){ $request = $this->getRequest();