Created
February 3, 2018 19:07
-
-
Save polodev/0099896939636ecc94df3b0653ac2174 to your computer and use it in GitHub Desktop.
laragon_website_listing.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dirs = array_filter(glob('*'), 'is_dir'); | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>all links</title> | |
<style> | |
body { | |
background: #eee; | |
color: #333; | |
width: 90%; | |
margin: 0 auto; | |
} | |
a { | |
color: #333; | |
font-family: arial, sans-serif; | |
font-size: 26px; | |
text-decoration: none; | |
display: block; | |
margin-bottom: 5px; | |
} | |
ul { | |
margin: 0; | |
padding: 0; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>All page</h1> | |
<ul> | |
<?php foreach ($dirs as $dir): ?> | |
<li> | |
<a href="http://<?= $dir ?>.oo">http://<?= $dir ?>.oo</a> | |
</li> | |
<?php endforeach ?> | |
</ul> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment