Beispiel #1
0
function thema_widget_video($url, $width = '', $height = '')
{
    list($href, $auto) = explode("|", $url);
    if (!$href) {
        $url = 'http://youtu.be/Rz-9ThFyhdg|' . $auto;
    }
    echo apms_video($url);
    return;
}
Beispiel #2
0
 //글
 $pa = sql_fetch(" select wr_id, wr_reply, wr_content, wr_datetime, wr_option, wr_comment, wr_hit, wr_good, wr_nogood, wr_link1, wr_link2, (wr_link1_hit + wr_link2_hit) as as_link, as_poll, as_type, as_publish, as_extra, as_re_mb, as_update from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ", false);
 $fa = sql_fetch(" select sum(bf_download) as download from {$g5['board_file_table']} where bo_table = '{$row['bo_table']}' and wr_id = '{$row['wr_id']}' ", false);
 $ea = sql_fetch(" select count(*) as event from {$g5['apms_event']} where bo_table = '{$row['bo_table']}' and wr_id = '{$row['wr_id']}' ", false);
 $as_secret = strstr($pa['wr_option'], 'secret') ? 1 : 0;
 $pa['chk_img'] = true;
 $p_image = apms_wr_thumbnail($row['bo_table'], $pa, 0, 0);
 // 동영상글 체크 - 링크 URL만 체크
 $p_video = false;
 if ($pa['wr_link1']) {
     // Link1
     $p_video = apms_video($pa['wr_link1']) ? true : false;
 }
 if ($pa['wr_link2'] && !$p_video) {
     // Link2
     $p_video = apms_video($pa['wr_link2']) ? true : false;
 }
 // 글타입정리
 if ($p_image && $p_video) {
     //이미지도 있고, 비디오도 있으면
     $as_list = 3;
 } else {
     if (!$p_image && $p_video) {
         //이미지 없고, 비디오 있으면
         $as_list = 2;
     } else {
         if ($p_image && !$p_video) {
             //이미지 있고, 비디오 없으면
             $as_list = 1;
         } else {
             // 모두 없으면
Beispiel #3
0
}
// 태그등록
$tag_time = $w == "u" ? $write['wr_datetime'] : G5_TIME_YMDHIS;
apms_add_tag('', $as_tag, $tag_time, $bo_table, $wr_id);
// 이미지글 체크
$wrt = array("chk_img" => true, "wr_id" => $wr_id, "wr_option" => $secret, "wr_content" => stripslashes($wr_content), "wr_link1" => $wr_link1, "wr_link2" => $wr_link2);
$p_image = apms_wr_thumbnail($bo_table, $wrt, 0, 0);
// 동영상글 체크 - 링크 URL만 체크
$p_video = false;
if ($wr_link1) {
    // Link1
    $p_video = apms_video($wr_link1) ? true : false;
}
if ($wr_link2 && !$p_video) {
    // Link2
    $p_video = apms_video($wr_link2) ? true : false;
}
// 글타입정리
if ($p_image && $p_video) {
    //이미지도 있고, 비디오도 있으면
    $as_list = 3;
} else {
    if (!$p_image && $p_video) {
        //이미지 없고, 비디오 있으면
        $as_list = 2;
    } else {
        if ($p_image && !$p_video) {
            //이미지 있고, 비디오 없으면
            $as_list = 1;
        } else {
            // 모두 없으면