Пример #1
0
function misc_videos_comments()
{
    global $set, $db, $apx, $user;
    $_REQUEST['id'] = (int) $_REQUEST['id'];
    if (!$_REQUEST['id']) {
        die('missing ID!');
    }
    $apx->tmpl->loaddesign('blank');
    videos_showcomments($_REQUEST['id']);
}
Пример #2
0
        //eMail-Benachrichtigung
        if ($set['videos']['mailonbroken']) {
            $input = array('URL' => substr(HTTP, 0, -1) . $link);
            sendmail($set['videos']['mailonbroken'], 'BROKEN', $input);
        }
        message($apx->lang->get('MSG_BROKEN'), $link);
        require 'lib/_end.php';
    } else {
        tmessage('broken', array('ID' => $_REQUEST['id']));
    }
}
////////////////////////////////////////////////////////////////////////////////// NUR KOMMENTARE
if ($_REQUEST['id'] && $_REQUEST['comments']) {
    $res = $db->first("SELECT title FROM " . PRE . "_videos WHERE ( id='" . $_REQUEST['id'] . "' " . section_filter() . " ) LIMIT 1");
    titlebar($apx->lang->get('HEADLINE') . ': ' . $res['title']);
    videos_showcomments($_REQUEST['id']);
}
///////////////////////////////////////////////////////////////////////////////////////// DETAILS
if ($_REQUEST['id']) {
    $apx->lang->drop('detail');
    //Verwendete Variablen auslesen
    $parse = $apx->tmpl->used_vars('detail');
    //Video-Info
    $res = $db->first("SELECT a.*,b.username,b.email,b.pub_hidemail FROM " . PRE . "_videos AS a LEFT JOIN " . PRE . "_user AS b USING(userid) WHERE ( a.id='" . $_REQUEST['id'] . "' AND a.status='finished' " . iif(!$user->is_team_member(), "AND ( '" . time() . "' BETWEEN a.starttime AND a.endtime )") . " " . section_filter() . " ) LIMIT 1");
    if (!$res['id']) {
        filenotfound();
    }
    //Altersabfrage
    if ($res['restricted']) {
        checkage();
    }