예제 #1
0
파일: upload.php 프로젝트: hackingman/TubeX
function tbxDisplayUpload()
{
    global $t;
    $DB = GetDB();
    $t->Assign('g_tag_min_length', Tags::GetMinLength());
    $t->Assign('g_custom_fields', $DB->FetchAll('SELECT * FROM `tbx_video_custom_schema` WHERE `on_submit`=1'));
    $t->Assign('g_year', date('Y'));
    $t->Display('upload-step-one.tpl');
}
예제 #2
0
파일: user.php 프로젝트: hackingman/TubeX
function tbxDisplayVideoEdit($fromdb = true)
{
    global $t;
    $DB = GetDB();
    $username = AuthenticateUser::GetUsername();
    $video = $fromdb ? $DB->Row('SELECT * FROM `tbx_video` JOIN `tbx_video_custom` USING (`video_id`) WHERE `username`=? AND `tbx_video`.`video_id`=?', array($username, $_REQUEST['video_id'])) : $_REQUEST;
    if (!empty($video)) {
        list($video['recorded_year'], $video['recorded_month'], $video['recorded_day']) = explode('-', $video['date_recorded']);
    }
    $t->Assign('g_custom_fields', $DB->FetchAll('SELECT * FROM `tbx_video_custom_schema` WHERE `on_edit`=1'));
    $t->Assign('g_thumbs', $DB->FetchAll('SELECT * FROM `tbx_video_thumbnail` WHERE `video_id`=?', array($video['video_id'])));
    $t->Assign('g_username', $username);
    $t->Assign('g_form', $video);
    $t->Assign('g_year', date('Y'));
    $t->Assign('g_tag_min_length', Tags::GetMinLength());
    $t->Display('user-video-edit.tpl');
}