<?php

	@ob_start();

	include 'include/functions/header.php';

?>

<!DOCTYPE html>

<html lang="<?php print $language_code; ?>"<?php if(in_array($language_code, $rtl)) print ' dir="rtl"'; ?>>



<head>

	<meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta charset="UTF-8" />



    <title><?php print $site_title.' - '.$title; if($offline) print ' - '.$lang['server-offline']; ?></title>



	<link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700" rel="stylesheet" type="text/css">

	<link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">



	<link rel="stylesheet" href="<?php print $site_url; ?>theme1/css/bootstrap.css?v=1.1">

	<link href="<?php print $site_url; ?>theme1/css/font-awesome.min.css" rel="stylesheet">

	<link href="<?php print $site_url; ?>theme1/css/normalize.css" rel="stylesheet">

	<link href="<?php print $site_url; ?>theme1/css/main.css?v=1.1" rel="stylesheet">

	<?php if($page=="admin" && $a_page=="player_edit") { ?>

    <link rel='stylesheet' href='<?php print $site_url; ?>css/bootstrap-select.css'/>

	<?php } ?>

	<link rel="shortcut icon" href="<?php print $site_url; ?>images/favicon.ico?v=" />

</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M3ENXTSBPQ">
</script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-M3ENXTSBPQ');
</script>
              <div id="server_select_bar">
				<div class="fade_pan_left"></div>
				<div class="fade_pan_right"></div>			
              </div>

<body>


	<div class="mt2cms_logo_bg"><a href="<?php print $site_url; ?>"></a></div>	


<div id="mt2cms">



		<?php

			if($item_shop!="")

				$shop_url = $item_shop;

			else if(is_dir('shop')) 

				$shop_url = $site_url.'shop'; 

			else $shop_url = ''; 

		?>
	
		
		
		<div id="fixed_navigation_top" class="">
				<div class="main_button">						
				<a href="<?php print $site_url; ?>users/register"><button class="main_button_text" name="Create a new account on Lunaris2">JOACĂ ACUM</button></a>
						<div id="play_now_button_background"></div>				
						</div>
				<div id="main_menu_navigator">
					<div class="fade_pan_left"></div>
					<div class="fade_pan_right"></div>
					<div id="menu_navigator_items_list" class="noselect">
						<div class="menu_navigator_item mni_active" style="text-transform:uppercase;">
							<a href="<?php print $site_url; ?>news"><?php print $lang['news']; ?></a>
							<div class="mni_active_triangle"></div>						
							</div>						
							<div class="menu_navigator_item">
							
                       <li class="dropdown" style="text-transform:uppercase;"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php print $lang['ranking']; ?> <b class="caret"></b></a>

                        <ul class="dropdown-menu">

                            <li><a href="<?php print $site_url; ?>ranking/players"><?php print $lang['players']; ?></a></li></br>

                            <li><a href="<?php print $site_url; ?>ranking/guilds"><?php print $lang['guilds']; ?></a></li></br>
                        </ul>
                    </li>					
							</div>						

						<div class="menu_navigator_item"><a href="https://lunaris2.com/forum/">FORUM</a></div>
						<div class="menu_navigator_item"><a href="<?php print $site_url; ?>users/register"><?php print $lang['register']; ?></a></div>
						<div class="menu_navigator_item"><a href="https://lunaris2.com/presentation-RO.php" target="_blank">PREZENTARE</a></div>
						<div class="menu_navigator_item"><a href="https://lunaris2.com/event/evenimente.php" target="_blank">EVENTS</a></div>
						<div class="menu_navigator_item support_item">
							<a href="https://discord.com/invite/lunaris2">Discord</a>						
							</div>
					</div>
				</div>
			</div>
		
		

		<div class="mt2cms_main clearfix">

			<div class="mt2cms_main_left col-md-3" >

				<?php include 'include/sidebar/ranking.php'; ?>

			</div>

			

			<!-- Middle -->

			<div class="mt2cms_main_middle col-md-6">

				<div class="mt2cms_main_box_middle">

							

					<div class="panel panel-default">



						<?php

							include 'pages/'.$page.'.php';

						?>

					</div>

				</div>				

			</div>

			

			<div class="mt2cms_main_right col-md-3">




				<?php

					include 'include/sidebar/user.php'; 

					if(!$offline && $statistics)

						include 'include/sidebar/statistics.php';

				?>
<!--<a href="https://discord.gg/lunaris2"><img src="https://discord.com/api/guilds/1100516333973684287/widget.png?style=banner3" alt="Discord Server" id="discord-banner" style="max-width: 300px; position: fixed; right: 0; bottom: 20px; right: 20px; cursor: pointer;">-->

			</div>

		</div>

	</div>

	

	<div id="footer">

		<div id="footer_navigator_items_list" class="noselect">

			<div class="footer_navigator_item"><a href="mailto:office@lunaris2.com" target='_blank'>SUPPORT</a>

			</div>

			<div class="footer_navigator_item"><a href="https://global.lunaris2.com/users/tos" target='_blank'>TERMS AND CONDITIONS</a>

			</div>

			<div class="footer_navigator_item" style="margin-right:0px;"><a href="https://global.lunaris2.com/users/privacy" target='_blank'>PRIVACY POLICY</a>

			</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<div class="footer_navigator_item" style="margin-right:0px;"><a href="https://global.lunaris2.com/users/dmca" target='_blank'>DMCA</a>

			</div>
			
			<br><br><br>
			

		</div>
<div style="display: flex;justify-content: center;gap:10px">
			<a href="index.php?lang=en" style="text-decoration: none;color:#cecece;">EN</a>
			<a href="index.php?lang=ro" style="text-decoration: none;color:#cecece;">RO</a>
		</div>
		<div id="social_networks">

			<div class="footer-nav">

				<div class="social">

					<?php print $social_links; ?>

				</div>

			</div>

		</div>

		<div id="footer_other_infos">

			<p>&copy; www.lunaris2.com
											
<div id="footer_other_infos">
			<p>Toate celelalte mărci comerciale sunt proprietatea deținătorilor respectivi.</p>
		</div>


<!-- DespreTrafic.Ro -->
<script type="text/javascript">
document.write('<img src=\"https://script.admin.ro/button.php?u=lunaris3&ref='+escape(document.referrer)+'&page='+escape(location.href.replace(/#.+$/,''))+'&rez='+screen.width+'x'+screen.height+'\" alt=\"DespreTrafic\" border=\"0\" width=\"1\" height=\"1\" />');
</script>
<a href="http://www.despretrafic.ro/stats/lunaris3" target="_blank"><img src="https://img.admin.ro/images/button2.png" width="88" height="31" border="0" alt="Statistici Trafic" title="DespreTrafic.Ro"></a>
<!-- End of DespreTrafic.Ro -->

				</li>

			</p>

			<!--<p>Powered by <a href="https://metin2cms.cf/" target="_blank">Metin2CMS <?php print $mt2cms; ?></a></a>-->

			</p>

		</div>

	</div>

	

	<script type="text/javascript" src="<?php print $site_url; ?>js/jquery-2.2.4.min.js"></script>

	<?php include 'include/functions/footer.php'; ?>

	<script src="<?php print $site_url; ?>js/tether.min.js"></script>

    <script src="<?php print $site_url; ?>js/bootstrap.min.js"></script>

</body>

<script src="https://www.google.com/recaptcha/api.js" async defer></script>

</html>