A legújabb videói

videos; $style = "vertical-align:top;"; $k=0; echo "
"; foreach($videos as $video) { if(($k % 4) == 0 && $k !=0){ echo ""; } echo ""; $atdobo = true; } } if(!$atdobo){ echo ""; echo ""; echo ""; echo "
$title
"; } $k++; } echo "
"; $video_obj = $video->video; $title = $video_obj->title; $thumb = $video_obj->thumb; $thumbs = $video_obj->thumbs; $i=1; foreach($thumbs as $th){ if($th->width == 180){ $thumbss[$i]=$th->src; $i++; } } $id = $video_obj->video_id; // $video_obj->duration ... etc // you can do whatever you want with that video details $atdobo = false; if($k==$sor1 or $k==$sor2 or $k==$sor3 or $k==$sor4 or $k==$sor5 or $k==$sor6 or $k==$sor7 or $k==$sor8 ){ $herewego=false; $safeout=0; do{ $hely = rand(0, $linkdb-1); if($freesor[$hely] and $sorok[$hely]!=""){ $url_1=$sorok[$hely]; $freesor[$hely]=false; $herewego=true; } $safeout++; if($safeout>15){ break; } }while(!$herewego); if(isset($url_1) && $url_1!=""){ $pieces = explode("#", $url_1); $pieces[2] = str_replace("\n", "", $pieces[2]); $pieces[2] = str_replace("\r", "", $pieces[2]); $pieces[2] = str_replace(" ", "", $pieces[2]); $pieces[1] = adj_title($pieces[1]); echo ""; echo "\"".$pieces[0]."\"
$pieces[1]"; echo "
"; //$pages = $videoResponse->count % 20 == 0 ? $videoResponse->count / 20 : floor($videoResponse->count) / 20; $pages = floor($videoResponse->count / 20); $styler="style=\"margin-right:10px;\""; if($page>1){ echo "<< Első"; echo "<< Előző"; } echo "$page"; if($page<$pages){ echo "Következő >>"; } if($page!=$pages && $page<$pages){ echo "Utolsó >>"; } unset($videoResponse); unset($videos); } catch(Exception $e){ echo "Adatbetöltési hiba történt, frissítsd a böngésződ."; } ?>