Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

89 lines (76 sloc) 1.955 kb
<!DOCTYPE html>
// Document root absolute path with trailing slash
$documentRoot = '/srv/http/';
// Web root URL with trailing slash
$urlRoot = 'http://localhost/';
$dirs = scandir($documentRoot);
// Projects that use VirtualHost
$vhosts = array (
'Dungde' => '',
'Juragan' => '',
<style type="text/css">
* {padding: 0; margin: 0;}
html { font-family: Verdana, Arial, sans-serif ;}
h3{clear: left; margin: 1em 0;}
a, a:link, a:visited{
color: #543;
text-decoration: none;
width: 600px;
margin: 50px auto;
display: block;
float: left;
border: 1px solid #ddd;
border-radius: 10px;
padding: 10px;
margin: 5px;
font-weight: bold;
font-size: 14px;
background-image: -webkit-linear-gradient(top, #fff, #eee);
background-image: -moz-linear-gradient(top, #fff, #eee);
background-color: #f34;
background-color: #f34;
background-image: -webkit-linear-gradient(top, #f43, #d32);
background-image: -moz-linear-gradient(top, #f43, #d32);
color: white;
background-color: #ff7;
background-image: -webkit-linear-gradient(top, #fff, #ff7);
background-image: -moz-linear-gradient(top, #fff, #ff7);
background-image: -webkit-linear-gradient(top, #fd3, #d72);
background-image: -moz-linear-gradient(top, #fd3, #d72);
<div class="container">
<h3>&star; Favorites</h3>
<?php foreach ($vhosts as $key => $value): ?>
<a class="link fav" href="<?php echo $value ?>"><?php echo $key ?></a>
<?php endforeach ?>
<div style="clear:both"></div>
<h3>&raquo; Projects</h3>
<?php foreach($dirs as $dir): ?>
<?php if ($dir[0] != '.' AND is_dir($documentRoot.$dir)) : ?>
<a class="link" href='<?php echo $urlRoot.$dir ?>'>
<?php echo $dir ?>
<?php endif ?>
<?php endforeach ?>
Jump to Line
Something went wrong with that request. Please try again.