<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
<?php 
/**
 * iCrew v4 Premium - Virtual Airline Crew Center
 * Copyright (c) 2017 iCrewSystems
 * 
 * This CrewCenter & and it's Modules (which are distinguished, and limited to unless specified)
 * are protected by copyright under Indian Copyright Act, 1957, with the 2012 amendments
 * No part of the website design or layout may be reproduced or transmitted in any form or by any other 
 * means electronic or mechanical to include photocopying, recording, reproducing, or electronic storage.
 * Any such act represents a copyright violation and theft of intellectual property owned by iCrewSystems. 
 * 
 * @author: Leonard Selvaraja
 * @copyright: Copyright (c) 2017, iCrewSystems
 * @link http://www.icrewsystems.com
 * @service name: iCrewSystems Virtual Airline Premium Services (with additions) 
 * Caution : NO SUPPORT WILL BE PROVIDED IF ANY MODULE / TEMPLATE IS FOUND TO BE TAMPERED WITH.
 * 
 */
?><!-- Login Full Background -->
	<?php
		$pics = file_get_contents('http://icrew.piavirtual.org/iCrew/backgrounds/backgrounds.txt'); //Take the contents from the file to the variable
		$pictures = explode(',',$pics); //Split it by ','
	?>
	<img src="<?php echo $pictures[array_rand($pictures)]; ?>" alt="Login Full Background" class="full-bg animation-pulseSlow">
<!-- END Login Full Background -->

<!-- Login Container -->
<div id="login-container" class="animation-fadeIn">
    <!-- Login Title -->
   <div class="login-title text-center">
		        <h1><img src="http://icrew.piavirtual.org/iCrew/treasury/corp/ics_logo.png" style="height: 70%; width: 70%;"><br>
       			</h1>
    		</div>
    <!-- END Login Title -->
    <?php
        if(isset($message))
            echo '<div class="alert alert-danger">
            <h4><i class="icon fa fa-exclamation-triangle"></i> Error</h4> '.$message.'</div>';
        ?>
    <div class="block push-bit">
        <!-- Register Form -->
        <!-- jQuery Validation (.js-validation-register class is initialized in js/pages/base_pages_register.js) -->
        <!-- For more examples you can check out https://github.com/jzaefferer/jquery-validation -->
<form class="form-horizontal form-bordered form-control-borderless" method="post" action="<?php echo url('/registration/AddRequestInvite');?>">
<div class="form-group">
	<div class="col-xs-12">
		<div class="alert alert-success">
            <h4>Attention</h4> According to <?php echo SITE_NAME?>'s User Policy, you must provide accurate details. If required, you must be ready to produce Proof of Identity</div>
	</div>
</div>
<div class="form-group">
    <div class="col-xs-6">
    	<input type="text" name="firstname" class="form-control" value="<?php echo Vars::POST('firstname');?>" placeholder="First Name" />
        <?php
            if($firstname_error == true)
                echo '<p class="error">Please enter your first name</p>';
        ?>
    </div>
    </div>

    <div class="form-group">
		<div class="col-xs-6">
			<input type="text" name="lastname" class="form-control" value="<?php echo Vars::POST('lastname');?>" placeholder="Last Name" />
        <?php
            if($lastname_error == true)
                echo '<p class="error">Please enter your last name</p>';
        ?>
		</div>
    </div>

    <div class="form-group">
		<div class="col-xs-6">
			<input type="text" name="email" class="form-control" value="<?php echo Vars::POST('email');?>" placeholder="Email" />
        <?php
            if($email_error == true)
                echo '<p class="error">Please enter your email address</p>';
        ?>
		</div>
    </div>
 
    <div class="form-group">
        <div class="col-xs-6">
        	<center>
        		<?php if(isset($captcha_error)){echo '<p class="error">'.$captcha_error.'</p>';} ?>
            <div class="g-recaptcha" data-sitekey="<?php echo $sitekey;?>"></div>
            <script type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=<?php echo $lang;?>">
            </script>
        	</center>
        </div>
    </div>
<div class="form-group">
    <div class="col-xs-4">
                        <input type="submit" class="btn btn-primary btn-block btn-flat" name="submit" value="Submit" />
                    </div>
</div>
 <div class="form-group">
                <div class="col-xs-12 text-center">
                    <a href="<?php echo url('login'); ?>" id="link-reminder-login" class="text-muted"><small>Already have an account?</small></a> -
                    <a href="<?php echo SITE_URL?>/index.php/registration" id="link-register-login" class="text-muted"><small>Already have Invite code?</small></a>
                </div>
                <div class="col-xs-12 text-center">
                    <small><?php echo SITE_NAME?> &copy; 2014 - <?php echo date("Y"); ?>. All Rights Reserved.</small>
                </div>
            </div>                
</form>
   </div>
</div>
<!-- END Register Content -->

<!-- Modal Terms -->
<div id="modal-terms" class="modal" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Terms &amp; Conditions</h4>
            </div>
            <div class="modal-body">
                <h4>IndiGo Virtual Terms &amp; Conditions</h4>
                <p>1.) Members must be in possession of and able to use Microsoft Flight Simulator X, Prepar3D or X-Plane.</p>
                <p>2.) Members must be at least 13 years of age.</p>
                <p>3.) Members must be able to complete at least one flight per calendar month.</p>
                <p>4.) The pilot must submit their real identity and a valid e-mail address.</p>
                <p>5.) We reserve the right to remove any member for any reason whatsoever felt necessary for the greater good of IndiGo Virtual and the wider community.</p>
                <p>6.) Members must not be abusive, threatening, or discriminatory towards any other member. Failure to comply with this condition may result in dismissal from IndiGo Virtual without notice or the possibility of appeal.</p>
                <p>7.) Although there is no obligation to fly on a network, we encourage all our pilots to fly on VATSIM and/or IVAO account which is active.</p>
            </div>
        </div>
    </div>
</div>
<!-- END Modal Terms -->

