Date de folder o ia dintr-un get cam asa
http://site.domeniu/img/upload/avatar.php?user=admin
Cod: Selectaţi tot
<?php
$url = $_GET['user'];
$handle = opendir ($url);
while (false !== ($file = readdir($handle))) {
if($file != "." && $file != ".." && $file != basename(__FILE__)) {
echo '<img border=4 src="'.$url.'/'.$file.'" width=90 height=90/> ~~~ ';
}
}
?><script language=JavaScript> var message="Functie Nedisponibila!"; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false")</script>
http://site.domeniu/img/upload/not.php?user=admin
si imi dadea eroare daca se poate si in acelas script fara alte redirectionari daca nu cu redirectionare mi se pare ca , cu ceva header daca nu ma insel se fac redirectionariile dar nu stiu cum sa le leg in acest script
multumesc useri marplo