site/index.php

29 lines
1.0 KiB
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
$total_users = 0;
if ($opendirectory = opendir('/home')) {
while (($user = readdir($opendirectory)) !== false) {
if ($user[0] != '.' and $user != "tcoin" and file_exists("/home/$user/public_html")) {
echo "<p>~&gt; <a href=\"/~$user\">$user</a></p>";
$total_users+=1;
}
}
closedir($opendirectory);
echo "<p>Users in total: 0x" . dechex($total_users) . " (" . $total_users . ")</p>";
}
?>
<hr>
<h3>Our services</h3>
<p>~&gt; <a href="https://mail.hextilde.xyz">Webmail</a></p>
<p>~&gt; <a href="wiki/xmpp.php">XMPP</a></p>
<p>~&gt; <a href="wiki/xmpp.php#biboumi">Biboumi</a></p>
<?php include 'footer.php' ?>