Example #1
0
  			max: 1
	 	});
	});
</script>

<?php 
//Section to update video gallery details
if (isset($_POST['updatevideogallery'])) {
    if (videoDB::update_gallery()) {
        CvgCore::xml_playlist($_GET['gid']);
        CvgCore::show_video_message(__('Gallery details successfully updated.'));
    }
}
//Section to update video details.
if (isset($_POST['updatevideos'])) {
    if (CvgCore::update_videos()) {
        CvgCore::xml_playlist($_GET['gid']);
        _e('<div class="clear"><div class="wrap"><div id="message" class="updated fade below-h2"><p>Details of Video(s) updated successfully.</p></div></div></div>');
    }
}
//Section to delete video list.
if (isset($_POST['TB_gallerylist']) && !empty($_POST['TB_gallerylist'])) {
    $pids = explode(',', $_POST['TB_gallerylist']);
    foreach ($pids as $pid) {
        CvgCore::delete_video_files($pid);
        videoDB::delete_video($pid);
    }
    CvgCore::xml_playlist($_GET['gid']);
    _e('<div class="clear"><div class="wrap"><div id="message" class="updated fade below-h2"><p>Video(s) deleted successfully.</p></div></div></div>');
}
//Section to delete a single video.