Esempio n. 1
0
 public function mana()
 {
     $status = $_REQUEST['status'];
     if ($status) {
         $where['status'] = $status;
     }
     if (isset($_GET['cid'])) {
         $where['cid'] = $_GET['cid'];
     }
     $special['type'] = !empty($_GET['type']) ? $_GET['type'] : C('web_admin_ordertype');
     $special['order'] = !empty($_GET['order']) ? $_GET['order'] : 'desc';
     $order = $special['type'] . ' ' . $special['order'];
     //分页开始
     $special_count = $this->SelfDB->where($where)->count('id');
     $special_page = !empty($_GET['p']) ? intval($_GET['p']) : 1;
     $special_page = get_cms_page_max($special_count, C('web_admin_pagenum'), $special_page);
     $special_url = U('Admin-Self/Mana', array('status' => $status, 'type' => $video['type'], 'order' => $video['order'], 'p' => ''), false, false);
     $listpages = get_cms_page($special_count, C('web_admin_pagenum'), $special_page, $special_url, '篇专辑');
     $list = $this->SelfDB->where($where)->order('id DESC')->limit(C('web_admin_pagenum'))->page($special_page)->select();
     //var_dump(C('web_admin_pagenum'));
     $_SESSION['special_reurl'] = $special_url . $special_page;
     foreach ($list as $key => $val) {
         $list[$key]['countvideo'] = !empty($val['mids']) ? count(explode(',', $val['mids'])) : 0;
         $list[$key]['countinfo'] = !empty($val['aids']) ? count(explode(',', $val['aids'])) : 0;
         $list[$key]['specialurl'] = get_read_url('special', $list[$key]['id']);
         $list[$key]['cname'] = $this->getType($list[$key]['cid']);
     }
     $this->assign($listpages);
     $this->assign('order', $order);
     $this->assign('list_special', $list);
     $this->assign('list_type', $this->getType(NULL));
     //var_dump($this->getType(NULL));
     $this->display('views/admin/self_show.html');
 }
 /**
  * 影片重名检测
  * @param  int $len
  * @return array
  */
 function RepeatCheck($Get)
 {
     $len = $Get['len'];
     //先查询$len内不同影片的title
     $arr = $this->VideoDB->field('title')->Group("Left(title,{$len})")->Having('count(*)>1')->select();
     foreach ($arr as $key => $val) {
         $arrTitle[] .= $val['title'];
     }
     //$where['status']=array('neq',-1);
     $where = $this->SearchCon($Get);
     $where["left(title, {$len})"] = array('in', $arrTitle);
     $video_count = $this->VideoDB->where($where)->count('id');
     $video_page = !empty($_GET['p']) ? intval($_GET['p']) : 1;
     $video_page = get_cms_page_max($video_count, C('web_admin_pagenum'), $video_page);
     $video_url = U('Admin-Datacheck/VideoCheck', array('check_sub' => 'ok', 'len' => urlencode($len), 'p' => ''), false, false);
     $pagelist = get_cms_page($video_count, C('web_admin_pagenum'), $video_page, $video_url, '部影片');
     $_SESSION['video_repurl'] = $video_url . $video_page;
     //order by
     $video['type'] = !empty($_GET['type']) ? $_GET['type'] : 'title';
     $video['order'] = !empty($_GET['order']) ? $_GET['order'] : 'desc';
     $order = $video["type"] . ' ' . $video['order'];
     $VResult = $this->VideoDB->field('id,title,cid,serial,addtime,hits,stars,status,picurl')->where($where)->order($order)->limit(C('web_admin_pagenum'))->page($video_page)->select();
     foreach ($VResult as $key => $val) {
         $VResult[$key]['cname'] = get_channel_name($VResult[$key]['cid']);
         $VResult[$key]['channelurl'] = U('Admin-Video/Show', array('cid' => $VResult[$key]['cid']), false, false);
         $VResult[$key]['videourl'] = get_read_url('video', $VResult[$key]['id'], $VResult[$key]['cid']);
         $VResult[$key]['stararr'] = get_star_arr($VResult[$key]['stars']);
     }
     return array('vresult' => $VResult, 'pagelist' => $pagelist, 'len' => $len, 'order' => $order, 'cid' => $Get['cid']);
 }
Esempio n. 3
0
 public function show()
 {
     $where = array();
     $cid = $_REQUEST['cid'];
     $keyword = urldecode(trim($_REQUEST['keyword']));
     if ($cid) {
         if (get_channel_son($cid)) {
             $where['cid'] = $cid;
         } else {
             $where['cid'] = get_channel_sqlin($cid);
         }
     }
     if ($keyword) {
         $search['title'] = array('like', '%' . $keyword . '%');
         $map = $search;
         $map['_logic'] = 'or';
         $where['_complex'] = $map;
     }
     $info['type'] = !empty($_GET['type']) ? $_GET['type'] : C('web_admin_ordertype');
     $info['order'] = !empty($_GET['order']) ? $_GET['order'] : 'desc';
     $order = $info["type"] . ' ' . $info['order'];
     //分页开始
     $news_count = $this->InfoDB->where($where)->count('id');
     $news_page = !empty($_GET['p']) ? intval($_GET['p']) : 1;
     $news_page = get_cms_page_max($news_count, C('web_admin_pagenum'), $news_page);
     $news_url = U('Admin-Info/Show', array('cid' => $cid, 'type' => $info['type'], 'order' => $info['order'], 'keyword' => urlencode($keyword), 'p' => ''), false, false);
     $listpages = get_cms_page($news_count, C('web_admin_pagenum'), $news_page, $news_url, '条文章');
     $_SESSION['info_reurl'] = $news_url . $news_page;
     //查询数据
     $list = $this->InfoDB->where($where)->order($order)->limit(C('web_admin_pagenum'))->page($news_page)->select();
     if (empty($list)) {
         if ($cid || $keyword) {
             $this->assign("jumpUrl", C('cms_admin') . '?s=Admin/Info/Show');
             $this->error('没有查询到您所筛选的文章资讯,请重新选择条件!');
         } else {
             $this->assign("jumpUrl", C('cms_admin') . '?s=Admin/Info/Add');
             $this->error('还没有任何资讯,请先添加!');
         }
     }
     foreach ($list as $key => $val) {
         $list[$key]['cname'] = get_channel_name($list[$key]['cid']);
         $list[$key]['channelurl'] = U('Admin-Info/Show', array('cid' => $list[$key]['cid']), false, false);
         $list[$key]['infourl'] = get_read_url('info', $list[$key]['id'], $list[$key]['cid'], $list[$key]['jumpurl']);
         $list[$key]['stararr'] = get_star_arr($list[$key]['stars']);
     }
     $this->assign($listpages);
     $this->assign('order', $order);
     $this->assign('cid', $cid);
     $this->assign('keyword', $keyword);
     $this->assign('list_channel_info', F('_gxcms/channelinfo'));
     $this->assign('list_info', $list);
     $this->display('views/admin/info_show.html');
 }
Esempio n. 4
0
 public function lists()
 {
     $id = !empty($_GET['id']) ? trim($_GET['id']) : 'rss';
     $limit = !empty($_GET['limit']) ? intval($_GET['limit']) : 20;
     $rs = M("Video");
     $list = $rs->order('addtime desc')->limit($limit)->select();
     foreach ($list as $key => $val) {
         $list[$key]['readurl'] = get_read_url('video', $val['id'], $val['cid']);
         $list[$key]['playurl'] = get_play_url($val['id'], $val['cid'], 1);
     }
     $this->assign('listmap', $list);
     $this->display('./views/xml/' . $id . '.html', 'utf-8', 'text/xml');
 }
Esempio n. 5
0
function get_tag_gxsearch($tag)
{
    $table = !empty($tag['name']) ? trim($tag['name']) : 'video';
    $field = !empty($tag['field']) ? trim($tag['field']) : '*';
    $limit = !empty($tag['limit']) ? trim($tag['limit']) : '10';
    $order = !empty($tag['order']) ? trim($tag['order']) . ' desc' : 'addtime desc';
    //从动态配置文件取值;
    $page = C('bdsearch_page');
    $where = C('bdsearch_where');
    $rs = M($table);
    $list = $rs->field($field)->where($where)->limit($limit)->page($page)->order($order)->select();
    if (empty($list)) {
        C($table . 'empty', true);
    }
    foreach ($list as $key => $val) {
        $list[$key]['showname'] = get_channel_name($list[$key]['cid']);
        $list[$key]['showurl'] = get_show_url($table, array('id' => $list[$key]['cid']), 1);
        $list[$key]['readurl'] = get_read_url($table, $list[$key]['id'], $list[$key]['cid'], $list[$key]['jumpurl']);
        $list[$key]['playerurl'] = get_play_url($list[$key]['id'], $list[$key]['cid'], 1);
        $list[$key]['picurl'] = get_img_url($list[$key]['picurl'], $list[$key]['content']);
        $list[$key]['picurl-s'] = get_img_url_s($list[$key]['picurl'], $list[$key]['content']);
    }
    //dump($rs->getLastSql());
    return $list;
}
Esempio n. 6
0
 public function show()
 {
     //get params
     $where = array();
     $cid = $_REQUEST['cid'];
     $status = $_REQUEST['status'];
     $serial = $_REQUEST['serial'];
     $picurl = $_REQUEST['picurl'];
     $keyword = urldecode(trim($_REQUEST['keyword']));
     //search condition
     if ($cid) {
         if (get_channel_son($cid)) {
             $where['cid'] = $cid;
         } else {
             $where['cid'] = get_channel_sqlin($cid);
         }
     }
     if ($status || $status === '0') {
         $where['status'] = array('eq', intval($status));
     }
     if ($serial) {
         $where['serial'] = array('neq', 0);
     }
     if ($picurl) {
         $where['Left(picurl,7)'] = array('eq', 'fail://');
     }
     if ($keyword) {
         $search['title'] = array('like', '%' . $keyword . '%');
         $search['intro'] = array('like', '%' . $keyword . '%');
         $search['actor'] = array('like', '%' . $keyword . '%');
         $search['director'] = array('like', '%' . $keyword . '%');
         $search['_logic'] = 'or';
         $where['_complex'] = $search;
     }
     //
     $video['type'] = !empty($_GET['type']) ? $_GET['type'] : C('web_admin_ordertype');
     $video['order'] = !empty($_GET['order']) ? $_GET['order'] : 'desc';
     $order = $video["type"] . ' ' . $video['order'];
     //
     $video_count = $this->VideoDB->where($where)->count('id');
     $video_page = !empty($_GET['p']) ? intval($_GET['p']) : 1;
     $video_page = get_cms_page_max($video_count, C('web_admin_pagenum'), $video_page);
     $video_url = U('Admin-Video/Show', array('cid' => $cid, 'status' => $status, 'serial' => $serial, 'picurl' => $picurl, 'type' => $video['type'], 'order' => $video['order'], 'keyword' => urlencode($keyword), 'p' => ''), false, false);
     $listpages = get_cms_page($video_count, C('web_admin_pagenum'), $video_page, $video_url, '部影片');
     $_SESSION['video_reurl'] = $video_url . $video_page;
     //
     $list = $this->VideoDB->where($where)->order($order)->limit(C('web_admin_pagenum'))->page($video_page)->select();
     if (empty($list)) {
         if ($status || $serial || $cid || $keyword) {
             $this->assign("jumpUrl", C('cms_admin') . '?s=Admin/Video/Show');
             $this->error('没有查询到您所筛选的影片信息,请重新选择条件!');
         } else {
             $this->assign("jumpUrl", C('cms_admin') . '?s=Admin/Video/Add');
             if (empty($picurl)) {
                 $this->error('还没有任何影片,请先添加一部影片!');
             }
         }
     }
     foreach ($list as $key => $val) {
         $list[$key]['cname'] = get_channel_name($list[$key]['cid']);
         $list[$key]['channelurl'] = U('Admin-Video/Show', array('cid' => $list[$key]['cid']), false, false);
         $list[$key]['videourl'] = get_read_url('video', $list[$key]['id'], $list[$key]['cid']);
         $list[$key]['stararr'] = get_star_arr($list[$key]['stars']);
     }
     //dump($this->VideoDB->getLastSql());
     $this->assign($listpages);
     $this->assign('order', $order);
     $this->assign('cid', $cid);
     $this->assign('keyword', $keyword);
     $this->assign('list_channel_video', F('_gxcms/channelvideo'));
     $this->assign('list_video', $list);
     $this->display('views/admin/video_show.html');
 }
Esempio n. 7
0
 public function searchSuggest()
 {
     $url = get_url_where();
     $search['title'] = array('like', '%' . $url['wd'] . '%');
     $rs = M('Video');
     $result = $rs->where($search)->field('id,cid,title')->limit('10')->select();
     $count = 0;
     if ($result) {
         $count = count($result);
         foreach ($result as &$v) {
             $v['oldtitle'] = $v['title'];
             $v['title'] = str_replace($url['wd'], '<font color="#FF0000">' . $url['wd'] . '</font>', $v['title']);
             $v['readurl'] = get_read_url('video', $v['id'], $v['cid'], $v['jumpurl']);
             $v['tname'] = get_channel_name($v['cid']);
         }
     }
     die(json_encode(array('result' => $result, 'c' => $count)));
 }
Esempio n. 8
0
 public function tags_video_read($array, $playarr = false)
 {
     $playerlist = C('player_list');
     //多播放器分类
     $play_wbf = explode('$$$$$$', $array['vodplay']);
     //得到默认的播放参数
     $playfirst = $play_wbf[0];
     $startk = 0;
     foreach ($playerlist as $k => $v) {
         if ($playfirst == $k) {
             break;
         }
         $startk++;
     }
     $channel = list_search(F('_gxcms/channel'), 'id=' . $array['cid']);
     $array['keyword'] = $array['keywords'];
     unset($array['keywords']);
     $array['playurl_first'] = get_play_url($array['id'], $array['cid'], 1, $startk);
     $array['readurl'] = get_read_url('video', $array['id'], $array['cid'], $array['jumpurl']);
     $array['picurlsmall'] = get_img_url_s($array['picurl']);
     $array['picurl'] = get_img_url($array['picurl']);
     $array['playlist'] = $this->playlistwbf($array['playurl'], $array['id'], $array['cid'], $startk);
     $array['downlist'] = $this->playlist($array['downurl'], $array['id'], $array['cid']);
     $array['count'] = $array['playlist'][0]['playcount'];
     $array['countdown'] = $array['downlist'][0]['playcount'];
     $array['inserthits'] = get_tag_hits('video', 'insert', $array);
     $array['navtitle'] = '<a href="' . C('web_path') . '">首页</a> &gt; ';
     if ($channel[0]['pid']) {
         $array['navtitle'] .= '<a href="' . $channel[0]['showurl_p'] . '">' . $channel[0]['cname_p'] . '</a> &gt; ';
     }
     $array['navtitle'] .= '<a href="' . $channel[0]['showurl'] . '">' . $channel[0]['cname'] . '</a> &gt;<span> ' . $array['title'] . '</span>';
     //新加的
     $vodurl = explode('$$$$$$', $array['playurl']);
     foreach ($play_wbf as $sid => $val) {
         $sidd = 0;
         $mm = 0;
         foreach ($playerlist as $k2 => $v2) {
             if ($k2 == $val) {
                 $sidd = $mm;
                 break;
             }
             $mm++;
         }
         //$sid = $sidd;
         $ppplay[$sid] = array('servername' => $playerlist[$val], 'playername' => $playerlist[$val], 'playname' => $val, 'son' => $this->playlistwbf($vodurl[$sid], $array['id'], $array['cid'], $sidd, 'asc'), 'sondesc' => $this->playlistwbf($vodurl[$sid], $array['id'], $array['cid'], $sidd, 'desc'));
         //$ppplay[$sid] = array('servername'=>$playerlist[$val],'playername'=>$playerlist[$val],'playname'=>$val,'son'=>$this->playlistwbf($vodurl[$sid],$array['id'],$array['cid'],$sidd));
         //print_r($sidd);
         //echo "<Br>\n\n";
     }
     $array['ppplay'] = $ppplay;
     //print_r($array['ppplay']);
     //播放页独立参数
     if ($playarr) {
         $curPlay = $this->getCurPlayName();
         $array['curplayename'] = $curPlay['playename'];
         $array['curplaycname'] = $curPlay['playname'];
         $videoid = $playarr[0];
         $videoji = $playarr[1] - 1;
         //新加的
         $videosid = $playarr[2];
         $playerlist = C('player_list');
         $mmmm = 0;
         foreach ($playerlist as $kkk => $vvv) {
             if ($videosid == $mmmm) {
                 $videotype = $kkk;
             }
             $mmmm++;
         }
         $serverk = 0;
         $atbbb = explode('$$$$$$', $array['vodplay']);
         foreach ($atbbb as $kkk => $vvv) {
             if ($vvv == $videotype) {
                 $serverk = $kkk;
             }
         }
         $array['playurl_first'] = get_play_url($array['id'], $array['cid'], 1, 0);
         //首次播放重新定位
         $player = '<script language="javascript" type="text/javascript" src="' . C('web_path') . 'temp/Js/player.js"></script>' . "\n";
         if (C('user_pay') && in_array($array['cid'], C('user_paycid'))) {
             $player .= '<div id="GxInstall"></div><div id="GxPlayer" class="Userpay"></div>';
         } else {
             $ataaa = explode('$$$$$$', $array['playurl']);
             //	print_r($ataaa);
             //echo $ataaa[0];exit;
             $player .= '<div id="GxInstall"></div><div id="GxPlayer" class="Loading"></div>';
             $player .= '<script language="javascript" type="text/javascript">' . "\n";
             if ($videosid !== false) {
                 $player .= 'var $playlist="' . str_replace(array("\r\n", "\n", "\r"), '+++', $ataaa[$serverk]) . '"' . "\n";
             } else {
                 //$player .='var $curplaylist = "'.implode(',',$atbbb).';"';
                 //不分集的情况下面的处理
                 $vodurl = explode('$$$$$$', $array['playurl']);
                 foreach ($vodurl as $vodk => $vodv) {
                     $mm = 0;
                     $mmm = 0;
                     foreach ($playerlist as $kkk => $vvv) {
                         if ($kkk == $atbbb[$vodk]) {
                             $mmm = $mm;
                             break;
                         }
                         $mm++;
                     }
                     $player .= 'var $playlist' . $mmm . ' = "' . str_replace(array("\r\n", "\n", "\r"), '+++', $vodv) . '"' . "\n";
                 }
                 $player .= 'var $playlist = "\\n"';
             }
             $player .= '</script>' . "\n";
             $player .= '<script language="javascript" src="' . C('web_path') . 'views/js/player.js" charset="utf-8"></script>';
         }
         $array['playname'] = $array['playlist'][$videoji]['playname'];
         $array['playwidth'] = C('player_width');
         $array['playheight'] = C('player_height');
         $array['webtitle'] = '正在播放 ' . $array['title'] . ' ' . $array['playname'] . ' ' . C('web_name');
         $array['player'] = $player;
         //显示点击数
         $array['hits'] = get_tag_hits('video', 'hits', $array, C('url_html_play'));
         $array['monthhits'] = get_tag_hits('video', 'monthhits', $array, C('url_html_play'));
         $array['weekhits'] = get_tag_hits('video', 'weekhits', $array, C('url_html_play'));
         $array['dayhits'] = get_tag_hits('video', 'dayhits', $array, C('url_html_play'));
     } else {
         //$array['webtitle']  = $array['title'].'-'.C('web_name');
         $t = $array['selftitle'] ? $array['selftitle'] : $array['title'];
         //$array['webtitle']  	=	$array['selftitle'] ? $array['selftitle'] : $t.'在线观看_'.$t.'百度影音_'.$t.'高清下载';
         $array['webtitle'] = $array['selftitle'] ? $array['selftitle'] : str_replace(array('$movietitle', '$sysname'), array($t, C('web_name')), C('seo_movie_title'));
         //echo $array['webtitle'];
         $array['ckeywords'] = $array['selfkeywords'] ? $array['selfkeywords'] : str_replace(array('$movietitle', '$sysname'), array($t, C('web_name')), C('seo_movie_keywords'));
         $array['cdescription'] = $array['selfdescription'] ? $array['selfdescription'] : str_replace(array('$movietitle', '$sysname'), array($t, C('web_name')), C('seo_movie_desc'));
         //显示点击数
         $array['hits'] = get_tag_hits('video', 'hits', $array);
         $array['monthhits'] = get_tag_hits('video', 'monthhits', $array);
         $array['weekhits'] = get_tag_hits('video', 'weekhits', $array);
         $array['dayhits'] = get_tag_hits('video', 'dayhits', $array);
     }
     $arrays['show'] = $channel[0];
     $arrays['read'] = $array;
     //print_r($arrays);
     return $arrays;
 }
Esempio n. 9
0
 public function createmap($mapname, $limit, $page)
 {
     $suffix = C('html_file_suffix');
     $rs = D("Admin.Video");
     $list = $rs->order('addtime desc')->limit($limit)->page($page)->select();
     foreach ($list as $key => $val) {
         $list[$key]['readurl'] = get_read_url('video', $val['id'], $val['cid']);
         $list[$key]['playurl'] = get_play_url($val['id'], $val['cid'], 1);
     }
     $this->assign('listmap', $list);
     C('html_file_suffix', '.xml');
     if ($page == 1) {
         $this->buildHtml($mapname, './' . C('url_dir_maps') . '/', './views/xml/' . $mapname . '.html');
     } else {
         $this->buildHtml($mapname . '-' . $page, './' . C('url_dir_maps') . '/', './views/xml/' . $mapname . '.html');
     }
     C('html_file_suffix', $suffix);
 }
Esempio n. 10
0
 public function tags_video_read($array, $playarr = false)
 {
     $channel = list_search(F('_gxcms/channel'), 'id=' . $array['cid']);
     $array['keyword'] = $array['keywords'];
     unset($array['keywords']);
     $array['playurl_first'] = get_play_url($array['id'], $array['cid'], 1);
     $array['readurl'] = get_read_url('video', $array['id'], $array['cid'], $array['jumpurl']);
     $array['picurlsmall'] = get_img_url_s($array['picurl']);
     $array['picurl'] = get_img_url($array['picurl']);
     $array['playlist'] = $this->playlist($array['playurl'], $array['id'], $array['cid']);
     $array['count'] = $array['playlist'][0]['playcount'];
     $array['inserthits'] = get_tag_hits('video', 'insert', $array);
     $array['navtitle'] = '<a href="' . C('web_path') . '">首页</a> &gt; ';
     if ($channel[0]['pid']) {
         $array['navtitle'] .= '<a href="' . $channel[0]['showurl_p'] . '">' . $channel[0]['cname_p'] . '</a> &gt; ';
     }
     $array['navtitle'] .= '<a href="' . $channel[0]['showurl'] . '">' . $channel[0]['cname'] . '</a> &gt;<span> ' . $array['title'] . '</span>';
     //播放页独立参数
     if ($playarr) {
         $videoid = $playarr[0];
         $videoji = $playarr[1] - 1;
         $player = '<script language="javascript" type="text/javascript" src="' . C('web_path') . 'temp/Js/player.js"></script>' . "\n";
         if (C('user_pay') && in_array($array['cid'], C('user_paycid'))) {
             $player .= '<div id="GxInstall"></div><div id="GxPlayer" class="Userpay"></div>';
         } else {
             $player .= '<div id="GxInstall"></div><div id="GxPlayer" class="Loading"></div>';
             $player .= '<script language="javascript" type="text/javascript">' . "\n";
             $player .= 'var $playlist="' . str_replace(array("\r\n", "\n", "\r"), '+++', $array['playurl']) . '"' . "\n";
             $player .= '</script>' . "\n";
             $player .= '<script language="javascript" src="' . C('web_path') . 'views/js/player.js" charset="utf-8"></script>';
         }
         $array['playname'] = $array['playlist'][$videoji]['playname'];
         $array['playwidth'] = C('player_width');
         $array['playheight'] = C('player_height');
         $array['webtitle'] = '正在播放 ' . $array['title'] . ' ' . $array['playname'] . ' ' . C('web_name');
         $array['player'] = $player;
         //显示点击数
         $array['hits'] = get_tag_hits('video', 'hits', $array, C('url_html_play'));
         $array['monthhits'] = get_tag_hits('video', 'monthhits', $array, C('url_html_play'));
         $array['weekhits'] = get_tag_hits('video', 'weekhits', $array, C('url_html_play'));
         $array['dayhits'] = get_tag_hits('video', 'dayhits', $array, C('url_html_play'));
     } else {
         $array['webtitle'] = $array['title'] . '-' . C('web_name');
         //显示点击数
         $array['hits'] = get_tag_hits('video', 'hits', $array);
         $array['monthhits'] = get_tag_hits('video', 'monthhits', $array);
         $array['weekhits'] = get_tag_hits('video', 'weekhits', $array);
         $array['dayhits'] = get_tag_hits('video', 'dayhits', $array);
     }
     $arrays['show'] = $channel[0];
     $arrays['read'] = $array;
     return $arrays;
 }