<?php

	@ob_start();

	include 'include/functions/header.php';

?>

<!DOCTYPE html>

<html lang="<?php print $language_code; ?>">

<!--<![endif]-->



<head>

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

	<meta charset="utf-8">
    	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="description" content="Metin2United">
	<meta name="date" content="09.08.2018">
	<meta name="page-topic" content="Metin2 PServer">
	<meta name="robots" content="index, follow">
	<meta name="author" content="FlasH Adi">
	<meta name="language" content="<?php print $language_code; ?>">
	<meta name="keywords"  content="Metin2United, Metin2club, Metin2United, Metin2" />

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

	<script src="//cdn.ckeditor.com/4.11.1/full/ckeditor.js"></script>

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

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

    	<link rel="stylesheet" href="<?php print $site_url; ?>css/eason-displaycaps-min.css">

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

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

	<link rel='stylesheet' href='<?php print $site_url; ?>css/style.css' type='text/css' media='all' />

	<link rel='stylesheet' href='<?php print $site_url; ?>css/style2.css' type='text/css' media='all' />

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

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

	<?php } ?>


</head>


<body lang="<?php print $language_code; ?>">



   

       	<div class="wrapper">

		<header class="header">

</ul>


			
			<div class="menu-top">

				<ul>


					<li><a href="<?php print $site_url; ?>news"><?php print $lang['news']; ?></a></li>
					<?php if(!$database->is_loggedin()) { ?>
					<li><a href="<?php print $site_url; ?>users/register"><?php print $lang['register']; ?></a></li>
					<?php } ?>
					<li><a href="<?php print $site_url; ?>download"><?php print $lang['download']; ?></a></li>
					
					<li><a href="#"><?php print $lang['ranking']; ?></a>
						<ul>
							<li><a href="<?php print $site_url; ?>ranking/players"><?php print $lang['players']; ?></a></li>
							<li><a href="<?php print $site_url; ?>ranking/guilds"><?php print $lang['guilds']; ?></a></li>
						</ul>
					</li>
					<li><a href="<?php print $forum; ?>"><?php print $lang['forum']; ?></a></li>
					<li><a href="">Vote4Us</a></li>
				</ul>
			</div><!-- top-menu -->

			<div class="logo">
				<a href="<?php print $site_url; ?>"><img src="<?php print $site_url; ?>images/mt2/logo2.png" alt="Logo"></a>
			</div><!-- logo -->



<?php if($offline) print '
<div class="server-block">
				<div class="server-name" >
					'.$lang['players-online'].'
				</div>


				<div class="server-status offline" style="color:red;text-transform: uppercase;">

				
			<img src="https://i.imgur.com/9IfVvr0.gif" title="'.$lang['server-offline'].'" />	

				</div>


' ?>

<?php if(!$offline) { ?>
			<div class="server-block">
				<div class="server-name">
					<?php print $lang['players-online']; ?>

				</div>

				<div class="server-status online">

				<?php print number_format(getStatistics($players-online), 0, '', '.'); ?>
	

				</div>
<?php } ?>

				<div class="circle-container">
			        <div class="circlestat circliful" data-dimension="86" data-width="4" data-percent="75" data-fgcolor="rgba(170, 221, 89, 0.9)" data-bgcolor="rgba(117, 190, 218, 0.0)" style="width: 86px;">

		<canvas width="86" height="86"></canvas></div>
				</div><br>
<ul class="languagepicker large">
<li><span class="lang"><img src="<?php print $site_url; ?>images/flags/<?php print $language_code; ?>.png"/><?php print $json_languages['languages'][$language_code];?>&nbsp;<i class="fa fa-caret-down"></i></li>

<?php
foreach($json_languages['languages'] as $key => $value)
print '<li class="menu-item menu-item-type-post_type menu-item-object-page"><a href="'.$site_url.'?lang='.$key.'"><img src="'.$site_url.'images/flags/'.$key.'.png"/>'.$value.'</a></li>';						
?>
			</div><!-- server-block -->


			<div class="out-nav-block">
	
			




			</div><!-- out-nav-block -->
			<div class="download-block">
				<a href="<?php print $site_url; ?>download"><span style="text-transform:  uppercase;"><?php print $lang['download']; ?></span> <p>Game Client 1.80GB</p></a>

			</div><!-- download-block -->

			<div class="eyes">
				<span></span> <span></span>
			</div><!-- eyes -->
			<div class="text-sword">
			</div><!-- text-sword -->
			<div class="light-sword light-sword-1">
			</div><!-- light-sword -->
			<div class="light-sword light-sword-2">
			</div><!-- light-sword -->
			<div class="light-sword light-sword-3">
			</div><!-- light-sword -->
			<div class="sparks-pet sparks-pet-1">
			</div><!-- sparks-pet -->
			<div class="sparks-pet sparks-pet-2">
			</div><!-- sparks-pet -->
			<div class="sparks-pet sparks-pet-3">
			</div><!-- sparks-pet -->
			<div class="sparks sparks-1">
			</div><!-- sparks -->
			<div class="sparks sparks-2">
			</div><!-- sparks -->
			<div class="sparks sparks-3">
			</div><!-- sparks -->
		
</header><!-- .header-->


                </li>

				

			</ul>


        </div>

    </div>



    <div id="content">



        <div class="article">

            <div class="page-width">


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





                <div class="page-padding mt2cms2-c page-bd">
                    <div class="mt2cms2-c-l">
<main class="content border-top">
                    <div class="tabs">
                        <input id="new" type="radio" name="tabs" checked="">
                        <label for="home"><?php print $title; ?></label>
		
                     <label for="old"><a href="<?php print $site_url; ?>event"><i class="fa fa-calendar fa-1" aria-hidden="true"></i> Upcoming Events</a></label>

                        <div id="content-new" class="section">

<script src="<?php print $site_url; ?>js/slider.js"></script>
<div class="slider">

				<div class="next"> </div>
				<div class="prev"> </div>
				<div class="slides" >

					<div class="slide active">

						<img src="<?php print $site_url; ?>images/slider/slider-img.jpg" alt="">
						<div>Server have moved to new hosting...</div>
					</div>
					<div class="slide">
						<img src="<?php print $site_url; ?>images/slider/slider-img.jpg" alt="">
						<div>A simple modern Slide Website in a flat style an excellent solution for your website server or news website about game.</div>
					</div>
					<div class="slide">
						<img src="<?php print $site_url; ?>images/slider/slider-img.jpg" alt="">
						<div>Server have moved to new hosting...</div>
					</div>
				</div>
				<div class="navigation">
	
			</div>
			</div><br>
			
			<?php

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

			?> 
			<div id="content-film" class="section">
 
                        </div> 
</main>






	

                    </div>
                    <div class="mt2cms2-c-s">

                        <div class="bd-c">

                            <ul>

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

								<?php if(!$offline && $statistics) include 'include/sidebar/statistics.php'; ?>

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

                            </ul>

                        </div>

                    </div>

                </div>

            </div>

        </div>



    </div>



    <div class="mt2cms2-footer esrb">

        <div class="footer-nav">

            <div class="page-width">

                <div class="page-padding">

					<?php if($social_links) { ?>

						<div class="social cms2-g">

							<div class="cms2-u">

								<ul class="cms2-g">

									

								</ul>

							</div>

						</div>

					<?php } ?>

					
                </div>

            </div>

        </div>

    </div>







<footer class="footer">
			<div class="block-top">

			</div><!-- block-top -->

		<!--	<div class="f-menu">
				<ul>
					<li class="active"><a href="">Home</a></li>
					<li><a href="">Registration</a></li>
					<li><a href="">News</a>
						<ul>
							<li><a href="">Gallery</a></li>
							<li><a href="">Photo</a></li>
							<li><a href="">About Us</a></li>
						</ul>
					</li>
					<li><a href="">Media</a></li>
					<li><a href="">Download</a>
						<ul>
							<li><a href="">Gallery</a></li>
							<li><a href="">Photo</a></li>
							<li><a href="">About Us</a></li>
						</ul>
					</li>
					<li><a href="">Events</a>
						<ul>
							<li><a href="">Gallery</a></li>
							<li><a href="">Photo</a></li>
							<li><a href="">About Us</a></li>
						</ul>
					</li>
					<li><a href="">Community</a>
						<ul>
							<li><a href="">Gallery</a></li>
							<li><a href="">Photo</a></li>
							<li><a href="">About Us</a></li>
						</ul>
					</li>
					<li><a href="">Support</a></li>
					<li><a href="">Vote4Us</a></li>
				</ul>
			</div><!-- f-menu -->
			<div class="copyright">

														Copyright <?php 

														$copyright_year = date('Y');

														if($copyright_year > 2018)

															print '2018 - '.$copyright_year; 

														else print $copyright_year;

														print ' &copy; <a href="">Metin2United.uk</a>';

													?> <p>Powered by <a href="">CMS <?php print $mt2cms; ?></a><br>All Rights Reserved </p>

			</div><!-- copyright -->
		</footer><!-- .footer -->

	</div><!-- .wrapper -->



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

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

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


</body>

<script type="text/javascript">
//<![CDATA[
try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:"cf",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dok3v=1613a3a185/"},atok:"ca43b324955e2837ee1e5efff95ea8e8",petok:"a36b5f7cf0da04db076a0d78cbb79ce0cc4b871b-1452126402-1800",zone:"metin2united.uk",rocket:"0",apps:{"ga_key":{"ua":"UA-56388958-1","ga_bs":"2"}},sha2test:0}];!function(a,b){a=document.createElement("script"),b=document.getElementsByTagName("script")[0],a.async=!0,a.src="//ajax.cloudflare.com/cdn-cgi/nexp/dok3v=38857570ac/cloudflare.min.js",b.parentNode.insertBefore(a,b)}()}}catch(e){};
//]]>
</script>
<script type='text/javascript'>
//<![CDATA[
shortcut={all_shortcuts:{},add:function(a,b,c){var d={type:"keydown",propagate:!1,disable_in_input:!1,target:document,keycode:!1};if(c)for(var e in d)"undefined"==typeof c[e]&&(c[e]=d[e]);else c=d;d=c.target,"string"==typeof c.target&&(d=document.getElementById(c.target)),a=a.toLowerCase(),e=function(d){d=d||window.event;if(c.disable_in_input){var e;d.target?e=d.target:d.srcElement&&(e=d.srcElement),3==e.nodeType&&(e=e.parentNode);if("INPUT"==e.tagName||"TEXTAREA"==e.tagName)return}d.keyCode?code=d.keyCode:d.which&&(code=d.which),e=String.fromCharCode(code).toLowerCase(),188==code&&(e=","),190==code&&(e=".");var f=a.split("+"),g=0,h={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},i={esc:27,escape:27,tab:9,space:32,"return":13,enter:13,backspace:8,scrolllock:145,scroll_lock:145,scroll:145,capslock:20,caps_lock:20,caps:20,numlock:144,num_lock:144,num:144,pause:19,"break":19,insert:45,home:36,"delete":46,end:35,pageup:33,page_up:33,pu:33,pagedown:34,page_down:34,pd:34,left:37,up:38,right:39,down:40,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},j=!1,l=!1,m=!1,n=!1,o=!1,p=!1,q=!1,r=!1;d.ctrlKey&&(n=!0),d.shiftKey&&(l=!0),d.altKey&&(p=!0),d.metaKey&&(r=!0);for(var s=0;k=f[s],s<f.length;s++)"ctrl"==k||"control"==k?(g++,m=!0):"shift"==k?(g++,j=!0):"alt"==k?(g++,o=!0):"meta"==k?(g++,q=!0):1<k.length?i[k]==code&&g++:c.keycode?c.keycode==code&&g++:e==k?g++:h[e]&&d.shiftKey&&(e=h[e],e==k&&g++);if(g==f.length&&n==m&&l==j&&p==o&&r==q&&(b(d),!c.propagate))return d.cancelBubble=!0,d.returnValue=!1,d.stopPropagation&&(d.stopPropagation(),d.preventDefault()),!1},this.all_shortcuts[a]={callback:e,target:d,event:c.type},d.addEventListener?d.addEventListener(c.type,e,!1):d.attachEvent?d.attachEvent("on"+c.type,e):d["on"+c.type]=e},remove:function(a){var a=a.toLowerCase(),b=this.all_shortcuts[a];delete this.all_shortcuts[a];if(b){var a=b.event,c=b.target,b=b.callback;c.detachEvent?c.detachEvent("on"+a,b):c.removeEventListener?c.removeEventListener(a,b,!1):c["on"+a]=!1}}},shortcut.add("Ctrl+U",function(){top.location.href="./404.php"});
//]]>
</script>
<script language=Javascript1.2> function ejs_nodroit() {return(false); } document.oncontextmenu = ejs_nodroit; </script>


</html>