// for query count
global $query_count_on_page;
$query_count_on_page = 0;
$show_media = NULL;
$error_msg = NULL;
if (!empty($_GET['cid'])) {
    if (!empty($_POST['rptabuse'])) {
        // if an abuse is reported
        require_once "web/includes/blocks/submit_abuse.php";
        if (isset($_GET['err'])) {
            $error_msg = strip_tags(urldecode($_GET['err']));
        }
    }
    $cid = $_GET['cid'];
    if ($content_info = Content::load_content($cid, $login_uid)) {
        $info = ContentCollection::get_collection_type($content_info->parent_collection_id);
        if ($content_info->type == 'Image') {
            $show_media = new Image();
        } else {
            if ($content_info->type == 'Audio') {
                $show_media = new Audio();
            } else {
                if ($content_info->type == 'TekVideo') {
                    $show_media = new TekVideo();
                } else {
                    die("Content ID {$cid} is non-media (not image, audio, or video)");
                }
            }
        }
        $show_media->load($cid);
        // loading tags for media