categories)))) { $category_filter = $_GET['category_id']; } } $filter_keyword = (!empty($_GET['query'])) ? PT_Secure($_GET['query']) : ''; $db->pageLimit = $limit_per_page; $where = 'id > 0'; if ($video_source != 'all') { if ($video_source == 'youtube') { $where .= " AND `youtube` <> ''"; } if ($video_source == 'dailymotion') { $where .= " AND `daily` <> ''"; } if ($video_source == 'vimeo') { $where .= " AND `vimeo` <> ''"; } if ($video_source == 'uploaded') { $where .= " AND `youtube` = '' AND `vimeo` = '' AND `daily` = ''"; } } if (!empty($category_filter)) { $where .= " AND `category_id` = '$category_filter'"; } if (!empty($filter_keyword)) { $where .= " AND MATCH (title) AGAINST ('{$filter_keyword}' IN BOOLEAN MODE) OR id = '$filter_keyword' OR (video_id = '$filter_keyword')"; } $videos = $db->where($where)->orderBy('id', 'DESC')->objectbuilder()->paginate(T_VIDEOS, $page); if ($db->totalPages != 0) { if (($page > $db->totalPages) && !empty($_GET['page-id'])) { header("Location: " . PT_LoadAdminLinkSettings('manage-videos')); exit(); } } ?>

Videos > Manage Videos {{CONFIG total_videos}} TOTAL VIDEOS

Manage & Edit Videos

$video) { $video = PT_GetVideoByID($video, 0, 0, 0); $video_data = array( 'ID' => $video->id, 'TITLE' => $video->title, 'VIDEO_ID' => $video->video_id, 'URL' => $video->url, 'SOURCE' => $video->source, 'CATEGORY' => $video->category_name, 'USER_DATA' => PT_UserData($video->user_id) ); echo PT_LoadAdminPage('manage-videos/list', $video_data); } ?>
ID Video ID Title Category Source Added By Action
No videos found
0) { ?>
totalPages; ?>