<?php
$d =__DIR__.'/du/'; $far=scandir($d); $ar=array();
foreach($far as $str)
if(is_file($d.$str) && substr($str,-1)=='t' && strpos($str,$_GET['u']))
if(preg_match_all('/http\S+(\.mp4|\.jpg\S+5_tt)\S+/',join(' ',file($d.$str)),$res))
foreach(array_unique($res[0]) as $k=>$url)
echo "wget $url -O ".rtrim($str,'.tx').'-'.(1+$ar[$str]++).substr($res[1][$k],0,4)." -o h.txt\n";
exit();