friquentin

Untitled

Nov 20th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <?php
  2. $args = "<args>/addons</args>"; // args, put addons or leave blank
  3. $targetModpack = "<modpack>@FreeForLife</modpack>"; // the target modpack
  4. $yourPath = "<path>http://uni-launcher.tk/freelifemalden.eu/</path>"; // the target folder
  5.  
  6. echo $yourPath;
  7. echo $targetModpack;
  8. echo $args;
  9.  
  10. $dir = "freelifemalden.eu/"; // the repertory in local for create the page
  11. $files = [];
  12.  
  13. $scan = scandir($dir);
  14.  
  15. foreach ($scan as $file)
  16. {
  17. if ($file == "." || $file == "..")
  18. {
  19. // nothing
  20. }
  21. else
  22. {
  23. echo "<name>" . $file . "</name>" ."<br/>";
  24. array_push($files, $file);
  25. }
  26. }
  27.  
  28. foreach($files as $files)
  29. {
  30. echo "<size>" . filesize($dir . $files) . "</size>" . "<br/>";
  31. }
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment