<?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.
 * 
 */
?>
<!-- Modal -->
			
			<div id="overlay" class="license_invalid_overlay">
				<div class="license_invalid_overlay_text">
					<p class="text-danger">
						<?php echo SITE_NAME; ?>'s license key is INVALID
					</p>
				</div>
			</div> 
			
			<style>
				.license_invalid_overlay {
				  position: fixed; /* Sit on top of the page content */
				  display: none; /* Hidden by default */
				  width: 100%; /* Full width (cover the whole page) */
				  height: 100%; /* Full height (cover the whole page) */
				  top: 0;
				  left: 0;
				  right: 0;
				  bottom: 0;
				  background-color: rgba(0,0,0,0.2); /* Black background with opacity */
				  z-index: 1; 
				  filter: blur(8px);
					-webkit-filter: blur(8px);
				  /*cursor: pointer;*/
				}
				
				.license_invalid_overlay_text {
					position: absolute;
					top: 50%;
					left: 50%;
					color: white;
					transform: translate(-50%,-50%);
					-ms-transform: translate(-50%,-50%);
					filter: none;
				}
			</style>
			
			<script>
				function on() {
				document.getElementById("overlay").style.display = "block";
				}
				
				function off() {
				document.getElementById("overlay").style.display = "none";
				} 
				
				
			</script>
			 
			<div class="modal fade" id="icrewLicenseModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
			  <div class="modal-dialog" role="document">
			    <div class="modal-content">
			      <div class="modal-header">
			        <h4 class="">
			        	<?php echo SITE_NAME; ?> | iCrew License Verification.
			        </h4>
			      </div>
			      <div class="modal-body">
			      	
			      	
			      	<p>
			      		iCrew v4.3 is a product, developed by ICREWSYSTEMS SOFTWARE ENGINEERING LLP.
			      		The product is licensed to virtual airlines, and the virtual airlines are required to 
			      		adhere to the project agreement, licensing requirements of phpvms (&) iCrew, and other online laws and policies.
			      		
			      		<br><br>
			      		
			      		The license has a product key & authentication key. The authentication key is updated every 30 days. 
			      		If your VA's license is invalid, please contact ceo@icrewsystems.com.
			      	</p>
			      	
			      	<h3 id="response_text" class="">
			      		
			      		<?php 
			      			if(ICREW_LICENSE_TYPE == 'SW52YWxpZA') {
			      				?>
			      					<span class="text-danger">
			      						<?php echo SITE_NAME; ?>'s License is <?php echo e(ICREW_LICENSE_TYPE); ?>. Please contact 
			      						ceo@icrewsystems.com for re-instating your license.
			      					</span>
			      				<?php
			      			} 
			      			
			      			else if (ICREW_LICENSE_TYPE == 'SU5WQUxJRA==') {
			      					?>
			      					<span class="text-danger">
			      						<?php echo SITE_NAME; ?>'s License is <?php echo e(ICREW_LICENSE_TYPE); ?>.
			      					</span>
			      				<?php
			      			}
			      			
			      			else {
			      				?>
			      					<span class="text-success">
			      						<?php echo SITE_NAME; ?>'s <?php echo e(ICREW_LICENSE_TYPE); ?> license is valid & active. <i class="fa fa-check text-circle"></i>
			      					</span>
			      				<?php
			      			}
			      		?>
			      	</h3>
			      	
			        <a class="btn btn-sm btn-success" target="_blank" href="https://license.icrewsystems.com/validate/<?php echo LicenseValidation::getKey(); ?>">
			        	View License
			        </a>
			      </div>
			      <div class="modal-footer">
			        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
			      </div>
			    </div>
			  </div>
			</div>

			</div>
            <!-- END Page Content -->

            <!-- Footer -->
            <footer class="clearfix">
                <div class="pull-right">
                    Crafted with <i class="fa fa-heart text-danger"></i> for <a class="text-primary" href="http://phpvms.net" data-toggle="tooltip" title="powered by phpVMS" target="_blank"><?php echo SITE_NAME?></a>
                </div>
                <div class="pull-left">
                   <?php Template::Show('version.php'); ?>
                   <br>
                   <span class="text-muted">
                   	Powered by <a class="text-primary" href="http://phpvms.net" data-toggle="tooltip" title="phpVMS is an open source software" target="_blank">phpvms</a> v5.5.5
                   </span>
                </div>
            </footer>
            <!-- END Footer -->            
        </div>
        <!-- END Main Container -->
    </div>
    <!-- END Page Container -->
</div>
<!-- END Page Wrapper -->
