[Back]
<?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+(\.mpg|\.jpg\S+5_[tp][t1])\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)." -a h.txt\n";
exit();