public function __getConfig() { $total = $this->server->count(); if ($total['total'] < 1) { $this->errorOutput('REDIRECT TO ' . APP_UNIQUEID . ' program_record_server'); } parent::__getConfig(); }
public function __getConfig() { $total = $this->mRecordConfig->count(''); if ($total['total'] < 1) { $this->errorOutput('REDIRECT TO ' . APP_UNIQUEID . ' record_config'); } parent::__getConfig(); }
public function __getConfig() { //获取mediaserver的里面视频类型的配置 if ($this->settings['App_mediaserver']) { $curl = new curl($this->settings['App_mediaserver']['host'], $this->settings['App_mediaserver']['dir']); $curl->setReturnFormat('json'); $curl->setCurlTimeOut(10); //设置curl超时时间10秒 $curl->initPostData(); $curl->addRequestData('a', 'settings'); $m_config = $curl->request('configuare.php'); } if ($m_config && is_array($m_config) && $m_config['base']['video_type']['allow_type']) { $video_type = $m_config['base']['video_type']['allow_type']; } else { $video_type = $this->default_type; } $video_type_arr = explode(',', $video_type); $flash_video_type = ''; foreach ($video_type_arr as $k => $v) { $flash_video_type .= '*' . $v . ';'; } $video_types = str_replace('.', '', $video_type); $this->settings['flash_video_type'] = $flash_video_type; $this->settings['video_type'] = $video_types; //增加第三方对接云配置输出 $this->settings['video_cloud'] = array('open' => $m_config['base']['video_cloud'], 'title' => $m_config['base']['video_cloud_title']); parent::__getConfig(); }