示例#1
0
 public function kmcRedirectAction()
 {
     $partnerId = $this->_getParam('partner_id');
     $userId = $this->_getParam('user_id');
     $client = Kaltura_ClientHelper::getClient();
     $ks = $client->systemPartner->getAdminSession($partnerId, $userId);
     $url = null;
     $settings = Zend_Registry::get('config')->settings;
     if ($settings->kmcUrl) {
         $url = $settings->kmcUrl;
     } else {
         $url = Kaltura_ClientHelper::getServiceUrl();
         $url .= '/index.php/kmc/extlogin';
     }
     $url .= '?ks=' . $ks . '&partner_id=' . $partnerId;
     $this->getResponse()->setRedirect($url);
 }
示例#2
0
 public function kcwEditorAction()
 {
     $request = $this->getRequest();
     $this->view->kcwEditorVersion = "v1.2.0";
     $this->view->kcwBaseUrl = Kaltura_ClientHelper::getServiceUrl() . '/flash/kcweditor/';
     $this->_helper->layout->setLayout('layout_empty');
 }