query2("select * from `video_cat2` where `cat2id`='$xxid' "); $pagetitle = $oo->name2; include './head_new.php'; ?>

query2("select * from video where cat2='$xxid' order by id desc limit 1"); if(empty($yudddd->thirdparty)){ $xurl = str_replace("http://www.youtube.com/watch?v=","https://www.youtube.com/embed/",$yudddd->video); $vffbggf = str_replace("https://www.youtube.com/watch?v=","https://www.youtube.com/embed/",$xurl); }else{ preg_match('/src="([^"]+)"/',$yudddd->thirdparty, $match); $vffbggf= $match[1]; } ?>
query("select * from video where cat2='$xxid' order by id desc limit 12"); while($t = $db->make_fetch2($yudd)){ //$sggyy = str_replace('',"",$tsggyy); if(empty($t->thirdparty)){ $xurl = str_replace("http://www.youtube.com/watch?v=","https://www.youtube.com/embed/",$t->video); $vfff = str_replace("https://www.youtube.com/watch?v=","https://www.youtube.com/embed/",$xurl); }else{ preg_match('/src="([^"]+)"/',$t->thirdparty, $match); $vfff= $match[1]; } //--- get image if(empty($t->ximg)){ $url = $t->thumb; $vname =time().rand(11111,9999999999); $img = "./imgs/$vname.jpg"; file_put_contents($img, file_get_contents($url)); $naj = $db->query("update video set ximg='$vname.jpg' where id='$t->id' "); }else{ $img = "./imgs/".$t->ximg; } echo '
'; $a++; } ?>
query("select * from video where cat2='$xxid' order by id desc"); while($t = $db->make_fetch2($yudd)){ echo ' '; $a++; } ?>