This repository has been archived by the owner on May 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added list of available sites to the index file available at dev-web - …
…resolves #17
- Loading branch information
David Alger
committed
Mar 29, 2016
1 parent
8467461
commit bbab622
Showing
3 changed files
with
41 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!doctype html> | ||
<head> | ||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | ||
<title>Hello Vagrant</title> | ||
<style type="text/css"> | ||
body { text-align: center; padding: 25px 150px; font: 14px "Courier New", Courier, monospace; } | ||
article { display: block; text-align: justify; width: 876px; margin: 0 auto; } | ||
pre, code { padding: 0; margin: 0; text-align: center; } | ||
a { color: black; text-decoration: none; padding: .3em; } | ||
a:hover { background-color: lightgray; } | ||
ul li { list-style: none; } | ||
ul li a { display: block; width: 100%; } | ||
</style> | ||
</head> | ||
<body> | ||
<article> | ||
<pre> | ||
_ _ _ _ __ __ _ | ||
| | | | ___| | | ___ \ \ / /_ _ __ _ _ __ __ _ _ __ | |_ | ||
| |_| |/ _ \ | |/ _ \ \ \ / / _` |/ _` | '__/ _` | '_ \| __| | ||
| _ | __/ | | (_) | \ V / (_| | (_| | | | (_| | | | | |_ | ||
|_| |_|\___|_|_|\___/ \_/ \__,_|\__, |_| \__,_|_| |_|\__| | ||
|___/ | ||
</pre> | ||
|
||
<ul> | ||
<?php $hosts = explode("\n", file_get_contents('/etc/hosts')) ?> | ||
<?php foreach ($hosts as $line): ?> | ||
<?php if (!strlen(trim($line))) continue ?> | ||
<?php $hostname = trim(explode(' ', $line, 2)[1]) ?> | ||
<?php if (strpos($hostname, ' ') !== false) continue ?> | ||
<li><a href="<?= "http://$hostname" ?>"><?= "http://$hostname" ?></a></li> | ||
<?php endforeach ?> | ||
</ul> | ||
</article> | ||
<footer> | ||
<a href="http://github.com/davidalger/devenv">GitHub</a> | <a href="http://twitter.com/blackbooker">Twitter</a> | ||
<p>Copyright © <?= date('Y') ?> by David Alger. Licensed under Open Software License v3.0</p> | ||
</footer> | ||
</body> |