Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = "<args>/addons</args>"; // args, put addons or leave blank
- $targetModpack = "<modpack>@FreeForLife</modpack>"; // the target modpack
- $yourPath = "<path>http://uni-launcher.tk/freelifemalden.eu/</path>"; // the target folder
- echo $yourPath;
- echo $targetModpack;
- echo $args;
- $dir = "freelifemalden.eu/"; // the repertory in local for create the page
- $files = [];
- $scan = scandir($dir);
- foreach ($scan as $file)
- {
- if ($file == "." || $file == "..")
- {
- // nothing
- }
- else
- {
- echo "<name>" . $file . "</name>" ."<br/>";
- array_push($files, $file);
- }
- }
- foreach($files as $files)
- {
- echo "<size>" . filesize($dir . $files) . "</size>" . "<br/>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment