<?php
/**
 * WebEngine CMS
 * https://webenginecms.org/
 * 
 * @version 1.2.0
 * @author Lautaro Angelico <http://lautaroangelico.com/>
 * @copyright (c) 2013-2019 Lautaro Angelico, All Rights Reserved
 * 
 * Licensed under the MIT license
 * http://opensource.org/licenses/MIT
 */

if(!defined('access') or !access) die();
?>

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script><![endif]-->
		<title><?php $handler->websiteTitle(); ?></title>
		<meta name="generator" content="WebEngine 1.2.2"/>
		<meta name="author" content="Lautaro Angelico"/>
		<meta name="description" content="<?php config('website_meta_description'); ?>"/>
		<meta name="keywords" content="<?php config('website_meta_keywords'); ?>"/>
		<link rel="shortcut icon" href="<?php echo __BASE_URL__; ?>favicon.ico"/>
		<meta name="viewport" content="width=1240, maximum-scale=1">
		<link href="<?php echo __PATH_TEMPLATE_CSS__; ?>GoogleOpenSans.css" rel="stylesheet">
		<link href="<?php echo __PATH_TEMPLATE_CSS__; ?>bootstrap.min.css" rel="stylesheet">
		<link href="<?php echo __PATH_TEMPLATE_CSS__; ?>style.css" rel="stylesheet">
		<link href="<?php echo __PATH_TEMPLATE_CSS__; ?>slick-theme.css" rel="stylesheet">
		<link href="<?php echo __PATH_TEMPLATE_CSS__; ?>webengine.css" rel="stylesheet">
		<link href="<?php echo __PATH_TEMPLATE_CSS__; ?>profiles.css" rel="stylesheet">
		<link href="<?php echo __PATH_TEMPLATE_CSS__; ?>override.css" rel="stylesheet">
		<link href="<?php echo __PATH_TEMPLATE_CSS__; ?>castle-siege.css" rel="stylesheet">
		<link href="<?php echo __PATH_TEMPLATE_CSS__; ?>swiper.min.css" rel="stylesheet">
		<link href="<?php echo __PATH_TEMPLATE_CSS__; ?>slick.css" rel="stylesheet">
		<link href="<?php echo __PATH_TEMPLATE_CSS__; ?>slick-theme.css" rel="stylesheet">
		<link href="<?php echo __PATH_TEMPLATE_CSS__; ?>roulette.css" rel="stylesheet">
        <!--script defer src="https://use.fontawesome.com/releases/v5.15.3/js/all.js"></script>
        <script defer src="https://use.fontawesome.com/releases/v5.15.3/js/v4-shims.js"></script-->
		<script>
			var baseUrl = '<?php echo __BASE_URL__; ?>';
		</script>
	</head>
	<body>
	    <div class="content-preload" style="display: none;">
            <div class="loading" style="display: none;">
            <p>LOADING</p>
            <span></span>
        </div>
    </div>
 
    <div class="wrapper">
        
		<div class="background-menu-top">
    		<div class="menu-top"> 
    				<li><a href="<?php echo __BASE_URL__; ?>"><i class="fas fa-home button-menu" style="font-size:15px;"></i>Home</a>
    				</li>

    				<li><a href="<?php echo __BASE_URL__; ?>register"><i class="fas fa-user-plus button-menu" style="font-size:15px;"></i>Register</a>
    				</li>
    				
    				
    				<li><a href="<?php echo __BASE_URL__; ?>downloads"><i class="fas fa-download button-menu" style="font-size:15px;"></i>Download</a>
    				</li>
    				
    				<li><a href="<?php echo __BASE_URL__; ?>info"><i class="fas fa-info button-menu" style="font-size:15px;"></i>Info</a>
    				</li>
    				
    				<li><a href="<?php echo __BASE_URL__; ?>rankings"><i class="fas fa-users button-menu" style="font-size:15px;"></i>Rankings</a>
    				</li>
    				
    				<li><a href="<?php echo __BASE_URL__; ?>news/1"><i class="fas fa-clipboard-list button-menu" style="font-size:15px;"></i>Droplist</a>
    				</li>
 
     				<li><a href="<?php echo __BASE_URL__; ?>donation"><i class="fas fa-money-check-alt button-menu" style="font-size:15px;"></i>Donate</a>
    				</li>
    				
     				<li>
     				    
     				    <div class="dropdown">
                            <span><i class="fas fa-clipboard-list button-menu" style="font-size:15px;"></i>GUIDES ▼</span>
                          
                            <div class="dropdown-content">
 
                 				<a class="subhref" target="_blank" href="<?php echo __BASE_URL__; ?>">Server Information</a>
                                <a class="subhref" target="_blank" href="<?php echo __BASE_URL__; ?>news/1">Droplist</a>
                                <a class="subhref" target="_blank" href="<?php echo __BASE_URL__; ?>">Colosseum Event</a>
                                <a class="subhref" target="_blank" href="<?php echo __BASE_URL__; ?>">Antilag</a>
                                <a class="subhref" target="_blank" href="<?php echo __BASE_URL__; ?>">Camera 3D</a>
                                <a class="subhref" target="_blank" href="<?php echo __BASE_URL__; ?>">Multi Warehouse</a>
                                <a class="subhref" target="_blank" href="<?php echo __BASE_URL__; ?>">Rules</a>
                            </div>
                        </div>

 				        
    				</li>
     
             		<div class="topPanel__buttons-">
             			<?php if(isLoggedIn()) { ?>
             			<a href="<?php echo __BASE_URL__; ?>usercp/myaccount" class="button">My Account</a>
             			<?php } else { ?>
            		   <a href="#login-login" class="open_modal button">Log In</a>
            		   <?php } ?>
            		</div>
    		</div>
		</div>
  
	    <header class="header">
	    		<div class="logo_small">
			<a href="<?php echo __BASE_URL__; ?>"><img src="<?php echo __PATH_TEMPLATE_IMG__; ?>logo-small.png" width="120" height="120" alt="logo"></a>
		</div>
		
 
 		<div class="logo">
		    <a href="<?php echo __BASE_URL__; ?>"><img src="<?php echo __PATH_TEMPLATE_IMG__; ?>logo.png" alt=""></a>
	    </div>
		    
		        <div class="big-light-2">
		            <div class="blue-light"></div>
		            <div class="yellow-light"></div>
		        </div>
		        
    			<div class="sparks-sparks">
    				<div class="sparks sparks-1">
    				</div>
    				<div class="sparks sparks-2">
    				</div>
    				<div class="sparks sparks-3">
    				</div>
    			</div> 
    			<div class="smog">
    				<i class="num1"></i>
    				<i class="num2"></i>
    				<i class="num3"></i>
    			</div>
			</header><!-- .header-->
 
            <div class="modal-right">
        		<a href="<?php config('social_link_discord'); ?>" target="_blank">
        		<img src="<?php echo __PATH_TEMPLATE_IMG__; ?>discord.png" alt="" width="60" heigth="60">
        		<p>Discord</p>
        		</a>
        	</div>	
        	    <!--div class="floaWhats">
            		<a href="#" target="_blank">
            		<img src="https://muminos.net/layout/pages/media/img/whatsapp.png" alt="" width="40" heigth="40">
            		<p>Whatsapp</p>
            		</a>
        		</div>
        		<div class="floaBanner">
        		    <a href="#">
        		    <div class="show_banner_btn fas fa-solid fa-fire" style='font-size: 42px;'></div>
        		    <p>Banner</p></a> 
        		</div>
        	</div-->
        	
			<main class="content">
 
 
                	
    			<div class="right-icons">
 
                    	
                    <div class="soc-block-h">
                        <a href="<?php config('social_link_facebook'); ?>" target="_blank" ><i class="fab fa-facebook" style="font-size:15px;"></i></a>
                        <!--a href="https://www.instagram.com/muminosofocial/" target="_blank"  ><i class="fab fa-instagram" style="font-size:15px;"></i></a-->
                        <a href="<?php config('social_link_discord'); ?>" target="_blank"  ><i class="fab fa-discord" style="font-size:15px;"></i></a>
 
                    </div>
                </div>
                
				<div class="fast-button">
        			<a href="<?php echo __BASE_URL__; ?>downloads">
        			    <div class="download-block">
        			    </div>
        			</a>
        			
    			    <div class="regisrtation-block">
    			        
    			        
        				<div class="serverInfo">
                            <span class="serverInfo__name">Total Online</span>
                        </div>    
                        <div class="serverInfoNumber">
                            <span class="status-online"><?php echo number_format($srvInfo[3]); ?></span>
        				</div>
 			
				    </div>
			  
			
        			<div class="servertime-block">
        			    
        			    <div class="registerDiv"><a href="<?php echo __BASE_URL__; ?>register" target="_blank" class="serverRegister"><?php echo lang('menu_txt_3'); ?></a></div>
        			    
        				<div class="server-bottom">
        				    
 

        				    
        					<div class="flex-s-c" style="margin-bottom: 10px;">
        						<span class="server-name">Server Time:</span> <span style="width: 135px;"><span id="tServerDate"></span> <time id="tServerTime"></time> </span>
        					</div>
        					<div class="flex-s-c" style="margin-bottom: 10px;">
        						<span class="server-name">Your Time:</span> <span style="width: 135px;"><span id="tLocalDate"></span> <time id="tLocalTime"></time></span>
        					</div>
        				</div>
        			</div>
        		</div>
						
 

			</div>
		</div>
		
		    	<?php if(isLoggedIn()) { ?>	
				<div class="page-content-1">
					    <div class="block-widget-1">		
                            <div class="block-usercp widget-fon block-usercp-left"><div class="block-widget-title"><?php echo lang('usercp_menu_title'); ?> </div><div class="block-usercp">
                            	<?php templateBuildUsercp();?>
                            </div> 
                            <a href="<?php echo __BASE_URL__; ?>logout"class="button-small" style="left: -25px;">Logout</a></h3></div>        				</div>
				
							
						<div class="col-xs-8 col-xs-offset-2" >
												<?php if(in_array($_REQUEST['page'], $disabledSidebar)) { ?>
							
								<?php $handler->loadModule($_REQUEST['page'],$_REQUEST['subpage']); ?>	

								<?php } else { ?>
							
								<?php $handler->loadModule($_REQUEST['page'],$_REQUEST['subpage']); ?>
							
							<?php } ?>			
						</div>
						
							
														</div>
					</div><!--page content-->
				<?php } else { ?>
					<div class="page-content-logout">
						<div class="col-xs-12" >
												<?php if(in_array($_REQUEST['page'], $disabledSidebar)) { ?>
							
								<?php $handler->loadModule($_REQUEST['page'],$_REQUEST['subpage']); ?>	

								<?php } else { ?>
							
								<?php $handler->loadModule($_REQUEST['page'],$_REQUEST['subpage']); ?>
							
							<?php } ?>			
						</div>
						
							
														</div>
					</div><!--page content-->
				 <?php } ?>
				</main><!-- .content -->
				
	<footer class="footer">
	<div class="toTop-fon">
			<div class="toTop" id="toTop"></div>
		</div>
	<div class="footer-block-t">
		<ul class="f-menu">
			<li><a href="<?php echo __BASE_URL__; ?>">Home</a></li>
			<li><a href="<?php echo __BASE_URL__; ?>register">Register</a></li>
			<li><a href="<?php echo __BASE_URL__; ?>rankings">Rankings</a></li>
			<li><a href="<?php echo __BASE_URL__; ?>downloads">Downloads</a></li>
			<li><a href="<?php echo __BASE_URL__; ?>donation">Donate for Credits</a></li>
			<li><a target="_blank" href="<?php echo __BASE_URL__; ?>">Droplist</a></li>
			<li><a href="<?php echo __BASE_URL__; ?>info">Info</a></li>
		</ul>
	</div><!-- footer-block-t -->
	                  

        <div class="footer-end flex-s-c">
			<div class="footer-block-coperite">
				<a href="<?php echo __BASE_URL__; ?>tos">Terms of Service</a> | <a href="<?php echo __BASE_URL__; ?>privacy">Privacy Policy</a><br><br>
				<span class="copyright"><p>Copyright © 2021 <a href="<?php echo __BASE_URL__; ?>"><?php config('server_name'); ?></a></p></span><br><br>
			</div>
			
			        		<div class="footer-logo"><a href="<?php echo __BASE_URL__; ?>"><img src="<?php echo __PATH_TEMPLATE_IMG__; ?>logo-small.png" width="120" height="140" alt=""></a></div>
        			<div class="footer-block-r">
        				<div><?php echo lang('footer_webzen_copyright'); ?><br><?php $handler->webenginePowered(); ?></div>
        			</div>
        		</div>
            
		</div>
	</div>
</footer><!-- .footer -->				
		</div><!-- .wrapper -->
				
		<!-- Login Modal -->
				<div id="login-login" class="modal_div"> 
			<span class="modal_close"></span>
			<div class="modal-content">
				
				<h2><span>Account Login</span></h2>
				<form action="<?php echo __BASE_URL__; ?>login" method="post">
					<p><input class="input-re_1" type="text" name="webengineLogin_user" placeholder="USERNAME" autocomplete="off"></p>
					<p><input class="input-re_2" type="password" name="webengineLogin_pwd" placeholder="PASSWORD"></p>
					<div class="formButton">
						<button class="button" name="webengineLogin_submit" type="submit" value="submit">Sign In</button>
					</div>
					
					                					<div class="registerDivLog">
                			
                					    <a href="<?php echo __BASE_URL__; ?>forgotpassword" class="registerText" style="">Forgot Password</a>   
                					    
        						    </div>
        					     
        					     <a href="<?php echo __BASE_URL__; ?>register" class="registerText" style=""><?php echo lang('menu_txt_3'); ?></a>
        					     
				</form>
			</div> 
		</div>
		<div id="overlay"></div>
				<!--link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"-->
		<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css" >
		<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/v4-shims.css">
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
		<script src="<?php echo __PATH_TEMPLATE_JS__; ?>webengine.js"></script>
		<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
		<script src="<?php echo __PATH_TEMPLATE_JS__; ?>global.js"></script>
		<script src="<?php echo __PATH_TEMPLATE_JS__; ?>swiper.min.js"></script>
		<script src="<?php echo __PATH_TEMPLATE_JS__; ?>main.js"></script>
		<script src="<?php echo __PATH_TEMPLATE_JS__; ?>main2.js"></script>
		<script src="<?php echo __PATH_TEMPLATE_JS__; ?>events.js"></script>
		<script src="<?php echo __PATH_TEMPLATE_JS__; ?>slick.min.js"></script>
		
		
		<script>
			$('.center').slick({
			  infinite: true,
			  centerMode: true,
			  centerPadding: '50px 30px',
			  slidesToShow: 3,
			  slidesToScroll: 3
			});
			
 
		</script>
	</body>
</html>