コード例 #1
0
 public function __getConfig()
 {
     //获取mediaserver的里面视频类型的配置
     if ($this->settings['App_mediaserver']) {
         $curl = new curl($this->settings['App_mediaserver']['host'], $this->settings['App_mediaserver']['dir'] . 'admin/');
         $curl->setReturnFormat('json');
         $curl->initPostData();
         $curl->addRequestData('a', '__getConfig');
         $m_config = $curl->request('index.php');
     }
     if ($m_config && is_array($m_config)) {
         $video_type = $m_config[0]['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;
     parent::__getConfig();
 }
コード例 #2
0
ファイル: qingjia_sort_update.php プロジェクト: h3len/Project
 public function update()
 {
     if (empty($this->input['id'])) {
         $this->errorOutput(NO_ID);
     }
     if (empty($this->input['name'])) {
         $this->errorOutput(NO_NAME);
     }
     $id = intval($this->input['id']);
     $data = array('name' => trim($this->input['name']) ? trim($this->input['name']) : '', 'update_time' => TIMENOW);
     $check = $this->obj->checkName($data['name'], $id);
     if ($check) {
         $this->errorOutput(NAME_EXIST);
     }
     $material = array();
     $material = parent::upload_indexpic();
     if ($material) {
         $logo_info = array('host' => $material['host'], 'dir' => $material['dir'], 'filepath' => $material['filepath'], 'filename' => $material['filename']);
         $data['logo_info'] = serialize($logo_info);
         $data['logo_id'] = $material['id'];
     }
     $ret = $this->obj->update($data, $id);
     $this->addItem($ret);
     $this->output();
 }
コード例 #3
0
ファイル: mkpublish_plan.php プロジェクト: h3len/Project
 function __construct()
 {
     parent::__construct();
     include_once ROOT_PATH . 'lib/class/publishsys.class.php';
     $this->pub_sys = new publishsys();
     include CUR_CONF_PATH . 'lib/mkpublish.class.php';
     $this->obj = new mkpublish();
 }
コード例 #4
0
 public function displayEntries_change()
 {
     admin::$arrEntries = FBContestApplication::GetContestEntries();
     $arrAnswerFieldsObjects = FBContestApplication::GetContestFields(admin::$arrEntries[0]);
     self::$arrAnswerFields = array();
     foreach ($arrAnswerFieldsObjects as $intIndex => $objAnswerField) {
         self::$arrAnswerFields[$intIndex] = $objAnswerField->Name;
     }
     $this->strTemplate = $this->GetTemplateLoc('displayEntries');
 }
コード例 #5
0
ファイル: video_transcode.php プロジェクト: h3len/Project
{
    var $transcode;
    public function __construct()
    {
        parent::__construct();
        $arr = array();
        if ($this->input['host'] && $this->input['port']) {
            $arr = array('host' => $this->input['host'], 'port' => $this->input['port']);
        } else {
            if ($this->settings['transcode']) {
                $arr = $this->settings['transcode'];
            } else {
                $this->errorOutput(NO_SELECT_TRANSERVER);
            }
        }
コード例 #6
0
ファイル: bill_record_update.php プロジェクト: h3len/Project
 public function update()
 {
     if (empty($this->input['id'])) {
         $this->errorOutput(NO_ID);
     }
     if (!$this->user['user_id']) {
         $this->errorOutput(NO_LOGIN);
     }
     /*
     if(!$this->input['bill_id'])
     {
     	    	$this->errorOutput(NO_BILLID);
     }
     */
     if (intval($this->input['sort_id']) < 0) {
         $this->errorOutput(NO_SORT);
     }
     $id = intval($this->input['id']);
     $data = array('sort_id' => intval($this->input['sort_id']), 'cost' => intval($this->input['cost']), 'cost_capital' => hg_cny(intval($this->input['cost'])), 'remark' => trim($this->input['remark']), 'is_ticket' => intval($this->input['is_ticket']), 'cost_time' => strtotime(trim($this->input['cost_time'])), 'state' => intval($this->input['state']), 'update_time' => TIMENOW);
     if ($this->input['bill_id']) {
         include_once CUR_CONF_PATH . 'lib/bill.class.php';
         $this->bill = new bill();
         $checkbool = $this->bill->checkLocked($this->input['bill_id']);
         if ($checkbool) {
             $this->errorOutput(THIS_IS_LOCKED);
         }
     }
     $material = array();
     $material = parent::upload_indexpic();
     if ($material) {
         $logo_info = array('host' => $material['host'], 'dir' => $material['dir'], 'filepath' => $material['filepath'], 'filename' => $material['filename']);
         $data['img'] = serialize($logo_info);
         $data['material_id'] = $material['id'];
     }
     $old_info = $this->obj->detail($id);
     if ($old_info['state']) {
         $this->reTotalSort(0, $old_info['sort_id']);
     }
     $ret = $this->obj->update($data, $id);
     if ($ret['state']) {
         $this->reTotalSort($data['sort_id'], 0);
     }
     if (intval($this->input['bill_id'])) {
         $this->retotal(intval($this->input['bill_id']));
     }
     $this->addItem($ret);
     $this->output();
 }
コード例 #7
0
 public function update()
 {
     if (empty($this->input['id'])) {
         $this->errorOutput(NO_ID);
     }
     if (!$this->user['user_id']) {
         $this->errorOutput(NO_LOGIN);
     }
     if (intval($this->input['sort_id']) < 0) {
         $this->errorOutput(NO_SORT);
     }
     $id = intval($this->input['id']);
     $data = array('sort_id' => intval($this->input['sort_id']), 'remark' => trim($this->input['remark']), 'start_time' => strtotime(trim($this->input['start_time'])), 'end_time' => strtotime(trim($this->input['end_time'])), 'state' => intval($this->input['state']), 'update_time' => TIMENOW);
     $material = array();
     $material = parent::upload_indexpic();
     if ($material) {
         $logo_info = array('host' => $material['host'], 'dir' => $material['dir'], 'filepath' => $material['filepath'], 'filename' => $material['filename']);
         $data['img'] = serialize($logo_info);
         //$data['material_id'] = $material['id'];
     }
     //$old_info = $this->obj->detail($id);
     /***
     
         		if($old_info['state'])//原来是审核通过,不管是否换sort,旧的sort 先-1
         	{
         		$this->reTotalSort(0,$old_info['sort_id']);
         	}    **/
     $ret = $this->obj->update($data, $id);
     /***
       	if($ret['state'])//如果新的审核通过,不管是否换sort,当前的sort +1
       	{
       		$this->reTotalSort($data['sort_id'],0);
       	}
       	//if(intval($this->input['bill_id']))	
       	//{
       		//$this->retotal(intval($this->input['bill_id']));	
       	//}
       	**/
     //print_r($data);
     $this->addItem($ret);
     $this->output();
 }
コード例 #8
0
ファイル: topic_follow.php プロジェクト: h3len/Project
 public function __destruct()
 {
     parent::__destruct();
     unset($this->mUser);
 }
コード例 #9
0
ファイル: download.php プロジェクト: h3len/Project
 public function __construct()
 {
     parent::__construct();
 }
コード例 #10
0
ファイル: update_img.php プロジェクト: h3len/Project
 public function __construct()
 {
     parent::__construct();
     $this->material = new material();
 }
コード例 #11
0
ファイル: snapVideoPic.php プロジェクト: h3len/Project
 public function __construct()
 {
     parent::__construct();
     $this->snap = new SnapFromVideo();
     $this->material = new material();
 }
コード例 #12
0
ファイル: templates_update.php プロジェクト: h3len/Project
 function drag_order()
 {
     parent::drag_order('templates', 'order_id');
     $this->addItem('succss');
     $this->output();
 }
コード例 #13
0
ファイル: activity_apply.php プロジェクト: h3len/Project
 {
     parent::__construct();
     require_once '../lib/activity.class.php';
     $this->libactivity = new activityLib();
 }
コード例 #14
0
 public function __construct()
 {
     parent::__construct();
     $this->mode = new live_time_shift_mode();
 }
コード例 #15
0
 public function __construct()
 {
     parent::__construct();
     $this->mode = new TVPlayMode();
 }
コード例 #16
0
ファイル: CDN.php プロジェクト: h3len/Project
 public function __construct()
 {
     parent::__construct();
     $this->mPrmsMethods = array('show' => '查看');
     $this->obj = new Core();
 }
コード例 #17
0
ファイル: vod_load_flash.php プロジェクト: h3len/Project
 public function __destruct()
 {
     parent::__destruct();
 }
コード例 #18
0
ファイル: submitVideoByDir.php プロジェクト: h3len/Project
 public function __construct()
 {
     parent::__construct();
     $this->curl = new curl($this->settings['App_mediaserver']['host'], $this->settings['App_mediaserver']['dir'] . 'admin/');
 }