site/index.php

24 lines
825 B
PHP

<?php include 'header.php' ?>
<h2>Hextilde</h2>
<h3>Hexadecimal Arch Tilde</h3>
<p>Hello and welcome to hextilde - a shared system, where you can play with linux and host your own things</p>
<p>We are welcome for new users and suggestions</p>
<p>You can explore unix, host your webpage, gempage and gopherhole, chat with friends and do a lot more cool things here</p>
<p>This tilde is running Arch Linux<!-- BTW--></p>
<hr>
<h3>Our users</h3>
<?php
if ($opendirectory = opendir('/home')) {
while (($user = readdir($opendirectory)) !== false) {
if ($user[0] != '.' and file_exists("/home/$user/public_html")) {
echo "<p>~&gt; <a href=\"/~$user\">$user</a></p>";
}
}
closedir($opendirectory);
}
?>
<hr>
<h3>Our services</h3>
<p>~&gt; <a href="https://mail.hextilde.xyz">Webmail</a></p>
<?php include 'footer.php' ?>