site/index.php

29 lines
1.0 KiB
PHP
Raw Permalink Normal View History

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