raynor009 Posted July 4, 2013 Report Posted July 4, 2013 (edited) Exista vreo metoda prin care cu ajutorul unei pagini pot sa fac sa arate fiecare fisier dintr-un folder de pe ftp? Daca da, cum fac asta? Tin sa anunt ca sunt zero la php si dinastea... Edited July 4, 2013 by raynor009 Quote
Active Members Fi8sVrs Posted July 4, 2013 Active Members Report Posted July 4, 2013 (edited) list.php<?phpif ($handle = opendir('folder')) { while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { echo "$entry\n"; } } closedir($handle);}?>sau http://php.net/manual/en/function.scandir.php Edited July 4, 2013 by Fi8sVrs Quote
tedeus Posted July 4, 2013 Report Posted July 4, 2013 Pai altfel nu ai cum. Poti, spre exemplu, sa nu pui index pe acel ftp, eventual decat parolat, si vei vedea toate fisierele de forma vasile_are_mere.rar/.zip/.exe/.jpg (whateva extensie). In rest... ai aplicatii web, chiar si open source, care fac acest lucru cu succes. Quote
raynor009 Posted July 4, 2013 Author Report Posted July 4, 2013 urci un shell la care pui parola nu imi place sa ma incurc cu shelluri, + ca unele sunt virusatePai altfel nu ai cum. Poti, spre exemplu, sa nu pui index pe acel ftp, eventual decat parolat, si vei vedea toate fisierele de forma vasile_are_mere.rar/.zip/.exe/.jpg (whateva extensie). In rest... ai aplicatii web, chiar si open source, care fac acest lucru cu succes.nume nu dai? Quote
StrXt Posted July 4, 2013 Report Posted July 4, 2013 PHP Scripts - PHP Directory Explorer | CodeCanyonUn din asta vrei? Quote
raynor009 Posted July 4, 2013 Author Report Posted July 4, 2013 (edited) o chestie cum are forumu asta fodev.netscriptul a mers dar eu vreau ca omu sa si poata descarca ce vede acolo.@StrXtda o chestia de genu ala Edited July 4, 2013 by raynor009 Quote
Active Members Fi8sVrs Posted July 4, 2013 Active Members Report Posted July 4, 2013 <?php if(isset($_REQUEST['dir'])) { $current_dir = $_REQUEST['dir'];} else { $current_dir = 'folder';}if ($handle = opendir($current_dir)) { while (false !== ($file_or_dir = readdir($handle))) { if(in_array($file_or_dir, array('.', '..'))) continue; $path = $current_dir.'/'.$file_or_dir; if(is_file($path)) { echo '<a href="'.$path.'">'.$file_or_dir."\n</a><br/>"; } else { echo '<a href="script.php?dir='.$path.'">'.$file_or_dir."\n</a><br/>"; } } closedir($handle);}?> Quote
StrXt Posted July 4, 2013 Report Posted July 4, 2013 @StrXtda o chestia de genu alaZippyshare.com - PHPDIRCTOEXpOLRQ131.rarE versiunea 1.3. Numai asta este "publica" momentan.Changes: Version 1.5: - Fixed: Login/back issue with Chrome Version 1.4: - Fixed: Security issue Version 1.3: - Fixed: Important security issue - Added: New file icon set of 46 Quote
raynor009 Posted July 4, 2013 Author Report Posted July 4, 2013 Multumesc celor care m-au ajutat. O seara buna in continuare. Quote