Exemple #1
0
<?php

include 'core/init.php';
$page = 'beta';
include 'includes/overall/overall_header.php';
$status = SITE_STATUS == ALPHA ? 'Alpha' : 'Beta';
?>

<h1>Beta Test Signup</h1>
<?php 
if (!is_logged_in()) {
    ?>
	Please register or log in to sign up for the beta!
<?php 
} elseif (user_has_beta()) {
    ?>
	You've already signed up for the beta!
	<p>In the meantime, here's a screenshot to keep you interested!</p>
	<img src="images/screenshot.png" alt="Factionizer Screenshot" style="max-height: 500px; max-width: 600px;"><br>
	<img src="images/screenshot2.png" alt="Factionizer Screenshot" style="max-height: 500px; max-width: 600px;">
<?php 
} else {
    if (isset($_GET['success']) && empty($_GET['success']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) != false && !empty($name)) {
        add_user_to_beta($_POST['comments']);
        ?>
		<p><h2>Your application was submitted!</h2></p>
		<p>We will contact you when the Beta is live.<p>
		<p>In the meantime, here's a screenshot to keep you interested!</p>
		<img src="images/screenshot.png" alt="Factionizer Screenshot" style="max-height: 500px; max-width: 600px;">
		<img src="images/screenshot2.png" alt="Factionizer Screenshot" style="max-height: 500px; max-width: 600px;">
		<?php 
    echo $user_data['first_name'];
    ?>
's Profile Image">
		<?php 
} else {
    ?>
			<form action="" method="post" enctype="multipart/form-data">
				<input type="file" name="profile"> <input type="submit">
			</form>
			<?php 
}
?>
		</div>
		<ul>
			<?php 
if (!user_has_beta() && SITE_STATUS != RELEASE) {
    ?>
			<li><a href="beta.php">Sign Up for the Beta!</a></li>
			<?php 
}
?>
			<li><a href="change_password.php">Change Password</a></li>
			<li><a href="<?php 
echo $user_data['username'];
?>
">View Profile</a></li>
			<li><a href="settings.php">Change Settings</a></li>
			<?php 
if (has_access($user_data['user_id'], USER_TYPE_ADMIN) === true) {
    ?>
			<li><a href="admin.php">Administration</a></li>
    ?>
			<li <?php 
    echo $beta;
    ?>
><a href="beta.php">Beta Signup</a></li>
			<?php 
}
?>
			<li <?php 
echo $contact;
?>
><a href="contact.php">Contact us</a></li>
			<?php 
include 'includes/check_connect.php';
if (isset($_SESSION['user_id'])) {
    if (SITE_STATUS == ALPHA && has_access($user_id, USER_TYPE_ADMIN) || SITE_STATUS == BETA && user_has_beta() || SITE_STATUS == RELEASE) {
        echo '<li><a href="load.php">Open Project</a></li>';
    }
}
?>
	</ul>
	<div class="clear"></div>
</header>
<div id="container">
	<aside>
		<?php 
if (is_logged_in() === true) {
    include 'includes/widgets/loggedin.php';
} else {
    include 'includes/widgets/login.php';
}
Exemple #4
0
include 'core/init.php';
$page = 'home';
include 'includes/overall/overall_header.php';
$status = SITE_STATUS == ALPHA ? 'Alpha' : 'Beta';
?>
<div itemscope itemtype="http://schema.org/WebApplication">
	<h1>Welcome to the <span itemprop="name">Factionizer</span>.</h1>
	<br>
	<h2>The Factionizer is tool for creating Live Action Role Playing games, or <span itemprop="about">LARPs</span>.  It allows you to SEE all of the interactions between characters and factions within a LARP,  and then automatically creates character sheets.</h2>
	<br>
	<br>
</div>
<?php 
if (SITE_STATUS != RELEASE) {
    if (!is_logged_in()) {
        echo '<h2>To sign up for the Beta test, please sign in or register!</h2>';
    } else {
        if (!user_has_beta()) {
            echo '<h2><p>You can sign up for the beta <a href=beta.php>HERE</a>.</p></h2>';
        } else {
            echo "<h2>The Factionizer is currently in {$status} testing. You are already signed up for the Beta test!</h2>";
        }
    }
}
?>
<br>
<br>
<p>
<a href="http://www.dexposure.com" target="_blank">Double Exposure, Inc</a> is dedicated and passionate about LARP and independently run games.  We write and host LARPs and may other games at our conventions, DEXCON and Dreamation, and our Game Design Festival, Metatopia, is THE place for board game publishing.  We have been featured in <a target="_blank" href="http://www.amazon.com/gp/product/B0087HWD44/ref%3das_li_qf_sp_asin_il_tl?ie%3dUTF8%26camp%3d1789%26creative%3d9325%26creativeASIN%3dB0087HWD44%26linkCode%3das2%26tag%3dfactionizerco-20">a book on LARP</a> and try our best to contribute to the Nordic LARP community from afar.  We have been hired to run tracks at other conventions, including GenCon and BronyCon.</p>
<?php 
include 'includes/overall/overall_footer.php';