$TypeOFvideos = $contusOBJ->home_thumbdata($thumImageorder, $where, $dataLimit);
        break;
        ## GETTING POPULAR VIDEOS ENDS
    ## GETTING POPULAR VIDEOS ENDS
    case 'recent':
        $thumImageorder = 'w.vid DESC';
        $TypeOFvideos = $contusOBJ->home_thumbdata($thumImageorder, $where, $dataLimit);
        break;
    case 'featured':
        $thumImageorder = 'w.ordering ASC';
        $where = 'AND w.featured=1';
        $TypeOFvideos = $contusOBJ->home_thumbdata($thumImageorder, $where, $dataLimit);
        break;
    case 'category':
        $thumImageorder = intval(filter_input(INPUT_GET, 'playid'));
        $TypeOFvideos = $contusOBJ->home_catthumbdata($thumImageorder, $dataLimit);
        break;
    case 'video':
        $thumbImageorder = 'w.vid ASC';
        $vid = filter_input(INPUT_GET, 'vid');
        $where = 'AND w.vid =' . $vid;
        $TypeOFvideos = $contusOBJ->home_thumbdata($thumbImageorder, $where, $dataLimit);
        break;
}
?>
<rss version="2.0"
	 xmlns:content="http://purl.org/rss/1.0/modules/content/"
	 xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	 xmlns:dc="http://purl.org/dc/elements/1.1/"
	 xmlns:atom="http://www.w3.org/2005/Atom"
	 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
Пример #2
0
     break;
 case 'featured':
     /** Set thumb image order and condition to fetch featured videos
      * Get video detials for featured videos to generate feed */
     $thumImageorder = ' w.ordering ASC ';
     $where = ' AND w.featured=1 ';
     $TypeOFvideos = $contusOBJ->home_thumbdata($thumImageorder, $where, $dataLimit);
     break;
 case 'category':
     /** Set thumb image order to fetch category videos */
     $pid = intval(filter_input(INPUT_GET, 'playid'));
     if (!empty($pid)) {
         $where = $pid;
     }
     /** Get video detials for category videos to generate feed */
     $TypeOFvideos = $contusOBJ->home_catthumbdata($where, $dataLimit);
     break;
 case 'video':
     /** Set thumb image order and condition to fetch particular video details
      * Get video detials for particular video to generate feed */
     $thumbImageorder = ' w.vid ASC ';
     if (!empty($vid)) {
         $where = ' AND w.vid = ' . $vid;
     }
     $TypeOFvideos = $contusOBJ->home_thumbdata($thumbImageorder, $where, $dataLimit);
     break;
 case 'popular':
 default:
     /** Set thumb image order to fetch popular videos  
      * Get video detials for particular video to generate feed */
     $thumImageorder = ' w.hitcount DESC ';