<?php
require(__DIR__ . "/../libs/page.php");
require(__DIR__ . "/../libs/form.php");
require(__DIR__ . "/../libs/comment.php");

page_header();
if (!is_null($username)) {
    //comments("root","root");
}
if (!($_GET['page'] > 0)) { ?>	
		<div class="banner"><img class="banner-background" src="/img/newlogo.svg">
			<div class="banner-content">
				<h1>BiglyChat</h1>
				<pre>BiglyChat is a social environment with active developers who respond to community feedback.</pre>
				<pre>It features a <a class='link' href='/stats.php'>custom algorithm</a>, <a class='link' href='https://gw.dervland.net/'>cool web games</a>, and much more.</pre>
				<pre>Anyone can <a class='link' href='/register.php'>join our community</a> and become a part of BiglyChat.</pre>
				<pre><i>BiglyChat is currently on version <a href='<?php echo htmlspecialchars(exec("git remote get-url origin"))?>' class='link'><?php echo exec("git describe --exact-match --tags") ?></b></a>.</i></pre>
				<a class="form-button" href="/tou.php">Terms of Use</a>
				<a class="form-button" href="https://dervland.net/">More Projects</a>
			</div>
		</div>
<?php
}
//if (is_null($username)) {
comments("root", "root");
//}
page_footer();
?>