warena.pt Open in urlscan Pro
217.182.39.251  Public Scan

URL: http://warena.pt/
Submission: On November 29 via api from NL — Scanned from PT

Form analysis 0 forms found in the DOM

Text Content

<?php
	@ob_start();
	include 'include/functions/header.php';
?>
<!doctype html>
<html lang="<?php print $language_code; ?>">
    <!--====== Required meta tags ======-->
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

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

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

    <!--====== Bootstrap css ======-->
    <link rel="stylesheet" href="<?php print $site_url; ?>assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?php print $site_url; ?>assets/css/bootstrap-table.css">

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

    <!--====== Plugins css ======-->
    <link rel="stylesheet" href="<?php print $site_url; ?>assets/css/slick.css">
    <link rel="stylesheet" href="<?php print $site_url; ?>assets/css/nice-select.css">
    <link rel="stylesheet" href="<?php print $site_url; ?>assets/css/magnific-popup.css">
	<?php if($page=="admin" && $a_page=="player_edit") { ?>
    <link rel='stylesheet' href='<?php print $site_url; ?>css/bootstrap-select.css'/>
	<?php } ?>

    <!--====== Utilities css ======-->
    <link rel="stylesheet" href="<?php print $site_url; ?>assets/css/Util.css">
    <link rel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
    <!--====== Main css ======-->
    <link rel="stylesheet" href="<?php print $site_url; ?>assets/css/main.css">

    <!--====== Responsive css ======-->
    <link rel="stylesheet" href="<?php print $site_url; ?>assets/css/responsive.css">


	<style>
        .large:hover {
            height: <?php print 45*count($json_languages['languages']); ?>px;
        }
	</style>
	<script src="https://www.google.com/recaptcha/api.js" async defer></script>
     <script src="https://www.google.com/recaptcha/api.js" async defer></script>
     <script>
       function onSubmit(token) {
         document.getElementById("demo-form").submit();
       }
     </script>
</head>

<body class="bg-one">
	<?php if(count($json_languages['languages'])>1) { ?>
    <ul class="">

	</ul>
<div id="mini-icons">

		<div class="languagewrapper">
		<? 	print '<a class="current-language" type="button" btattached="true" href="javascript:void(0)"><img width="24" src="'.$site_url.'images/flags/'.$language_code.'.png"/></a>'; ?>
			
			<div class="languages" style="width: 56px; left: 56px;">
	<?php
		foreach($json_languages['languages'] as $key => $value)
			if($key!=$language_code)
				print '<a href="'.$site_url.'?lang='.$key.'" style="width: 56px;"><img width="24" src="'.$site_url.'images/flags/'.$key.'.png"/></a>';
	?>
	
	
			</div>

		</div>

		<div class="youtube"><a target="_blank" href="<?php print $social_links['youtube']; ?>" target="_blank"><i class="fab fa-youtube"></i></a></div>

		<div class="facebook"><a target="_blank" href="https://www.facebook.com/warena.portugal.5" target="_blank"><i class="fab fa-facebook"></i></a></div>

		<div class="teamspeak"><a target="_blank" href="https://www.instagram.com/warena_rom" target="_blank"><i class="fab fa-instagram"></i></a></div>

		<div class="discord"><a target="_blank" href="https://discord.gg/aGs2VxZ" target="_blank"><i class="fab fa-discord"></i></a></div>

	</div>
		<?php
			}
			if($item_shop!="")
				$shop_url = $item_shop;
			else if(is_dir('shop')) 
				$shop_url = $site_url.'shop'; 
			else $shop_url = ''; 
		?>
    <div class="off-canvas-menu-wrap">
        <ul class="off-canvas-menu">
            <li class="active"><a href="<?php print $site_url; ?>news"><?php print $lang['news']; ?></a></li>
            <li><a href="<?php print $site_url; ?>download"><?php print $lang['download']; ?></a></li>
            <li>
				<?php if(!$database->is_loggedin()) { ?>
				<a href="<?php print $site_url; ?>users/register"><?php print $lang['register']; ?></a>
				<?php } else { ?>
				<a href="<?php print $site_url; ?>user/administration"><?php print $lang['account-data']; ?></a>
				<?php } ?>
			</li>
            <li><a href="<?php print $shop_url; ?>" target="_blank"><?php print $lang['item-shop']; ?></a></li>
            <li><a href="<?php print $site_url; ?>ranking/players"><?php print $lang['ranking']; ?></a></li>
            <!-- <li><a href="<?php print $rules; ?>users/rules"><?php print $lang['rules']; ?></a></li>
            <li><a href="<?php print $support; ?>" target="_blank"><?php print $lang['support']; ?></a></li> -->
        </ul>
        <div class="cls-off-canvas-menu">
            <i class="fal fa-times"></i>
        </div>
    </div>
    <div class="off-canvas-overlay"></div>

    <header class="header-area">
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="header-content">
                        <div class="toggle-bar"><i class="fal fa-bars"></i></div>
                        <ul class="main-menu d-none d-md-flex">
							<li class="active"><a href="<?php print $site_url; ?>news"><?php print $lang['news']; ?></a></li>
							<li><a href="<?php print $site_url; ?>download"><?php print $lang['download']; ?></a></li>
							<li>
								<?php if(!$database->is_loggedin()) { ?>
								<a href="<?php print $site_url; ?>users/register"><?php print $lang['register']; ?></a>
								<?php } else { ?>
								<a href="<?php print $site_url; ?>user/administration"><?php print $lang['account-data']; ?></a>
								<?php } ?>
							</li>
							<li><a href="<?php print $shop_url; ?>" target="_blank"><?php print $lang['item-shop']; ?></a></li>
							<li><a href="<?php print $site_url; ?>ranking/players"><?php print $lang['ranking']; ?></a></li>
							<!-- <li><a href="<?php print $rules; ?>" target="_blank"><?php print $lang['rules']; ?></a></li>
							<li><a href="<?php print $support; ?>" target="_blank"><?php print $lang['support']; ?></a></li> -->
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </header>
	<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js"></script>
<script>
$(document).ready(function() {
  $('#headerVideoLink').magnificPopup({
    type:'inline',
    midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href.
  });         
});
</script>
    <div class="header-btm-area">
        <div class="container">
            <div class="row">
                <div class="col-12">
                        <div class="trans-man-wrap"><a href="<?php print $site_url; ?>download">
								<img src="<?php print $site_url; ?>assets/img/down-btn.png" alt="" class="s-man-hand">
							<div class="animate__animated animate__flash animate__infinite infinite">
								<img src="<?php print $site_url; ?>assets/img/down-effect.png" alt="" class="s-man-hand">
							</div>
                        </a></div>
                    <div class="header-btm-content">
					<div class="animate__animated animate__pulse animate__infinite infinite">
                        <a href="<?php print $site_url; ?>"><img src="<?php print $site_url; ?>assets/img/logo.png" alt="<?php print $site_title; ?>"></a>
                    </div>
					</div>
                            <div class="video-btn">
								<a href="#headerPopup" id="headerVideoLink"><img src="<?php print $site_url; ?>assets/img/v-4.png" alt=""></a>
								<div id="headerPopup" class="mfp-hide" style="max-width: 75%; margin: 0 auto;">
									<iframe width="853" height="480" src="<?php print $social_links['youtube']; ?>" frameborder="0" allowfullscreen></iframe>
								</div>
                            </div> 
				</div>
            </div>
        </div>
    </div> <!-- .header-btm-area -->
<br>

    <main>
        <div class="main-area">

            <div class="container">
                <div class="row no-gutters">
                    <div class="col-lg-3 d-flex order-2 order-lg-1">
                        <div class="left-block">
							
                            <!--<div class="discord-btn">
								<a href="<?php print $support; ?>" target="_blank"><img alt="embed.png?style=banner2" class="ipsImage" src="https://discordapp.com/api/guilds/720410412247547994/embed.png?style=banner2"></a>
                            </div><br>-->
                            

                            <div class="cmn-title">
                                <h4>TOP 5 - <?php print $lang['players']; ?> <span>Best players of Warena</span></h4>
                                <a href="<?php print $site_url; ?>ranking/players" class="more">Top 100 &raquo;</a>

                                <img src="<?php print $site_url; ?>assets/img/title-shadow.png" alt="" class="title-shadow">
                            </div>

                            <div class="player-details-wrap">
                                <div class="d-row heading-row">
                                    <p>#</p>
                                    <p><?php print $lang['name']; ?></p>
                                    <p class="span-2"><?php print $lang['level']; ?>. / <?php print $lang['empire']; ?></p>
                                </div>
								
								<?php
									if(!$offline) {
									$top = array();
									$top = top10players();
									$i=1;
									foreach($top as $player)
									{
										$empire=get_player_empire($player['account_id']); 
								?>
                                <div class="d-row player-prof">
                                    <p><?php print $i++; ?></p>
                                    <p class="pink"><?php print $player['name']; ?></p>
                                    <span class="hori-bdr"></span>
                                    <p class="lvl"><span class="pink-light"><?php print $player['level']; ?></span> / <?php print emire_name($empire); ?></p>
                                    <div class="player-profile text-right">
                                        <a href="<?php print $site_url.'player/'.$player['id']; ?>" class="profile-btn">USER PROFILE</a>
                                    </div>
                                </div>
								<?php } } ?>
                            </div> <!-- ./player-details-wrap -->

                            <div class="cmn-title">
                                <h4>TOP 5 - <?php print $lang['guilds']; ?> <span>Best guilds of Warena</span></h4>
                                <a href="<?php print $site_url; ?>ranking/guilds" class="more">Top 100 &raquo;</a>
                                <img src="<?php print $site_url; ?>assets/img/title-shadow.png" alt="" class="title-shadow">
                            </div>

                            <div class="player-details-wrap points">
                                <div class="d-row heading-row">
                                    <p>#</p>
                                    <p><?php print $lang['name']; ?></p>
                                    <p class="span-2"><?php print $lang['points']; ?></p>
                                </div>
					<?php
						if(!$offline) {
						$top = array();
						$top = top10guilds();
						$i=1;
						foreach($top as $guild)
						{
							$empire=get_guild_empire($guild['master']); 
					?>
                                <div class="d-row">
                                    <p><?php print $i++; ?></p>
                                    <p class="pink"><?php print $guild['name']; ?></p>
                                    <p></p>
                                    <p class="per-points text-right"><?php print $guild['ladder_point']; ?></p>
                                </div>
					<?php } } ?>
                            </div> <!-- ./player-details-wrap.points -->
                            <div class="cmn-title pad-b style-2" >
                                <h4><span>Warena - Apresentação</span></h4>
                                <a href="https://warena.pt/apresenta%c3%a7%c3%a3o/" class="profile-btn"><?php print $lang['read-more']; ?></a>
                            </div>
                            <p></p>
                            <p></p>
                            <div class="pad-b style-2 login-position" >
								Login: <?php
									if(getStatus("87.98.250.75", "38147"))
									{
								?>
									<span class="online"><img src="<?php print $site_url; ?>assets/img/status-bg-on.png" title="Online" /></span>
								<?php
									}else{
								?>
									<span class="offline"><img src="<?php print $site_url; ?>assets/img/status-bg.png" title="Offline" /></span>
								<?php
									}
								?>
							</div>
							<div class="pad-b style-2 ch1-position" >
								Channel 1: <?php
									if(getStatus("87.98.250.75", "23580"))
									{
								?>
									<span class="online"><img src="<?php print $site_url; ?>assets/img/status-bg-on.png" title="Online" /></span>
								<?php
									}else{
								?>
									<span class="offline"><img src="<?php print $site_url; ?>assets/img/status-bg.png" title="Offline" /></span>
								<?php
									}
								?>
							</div>
							<div class="pad-b style-2 ch2-position" >
								Channel 2: <?php
									if(getStatus("87.98.250.75", "24018"))
									{
								?>
									<span class="online"><img src="<?php print $site_url; ?>assets/img/status-bg-on.png" title="Online" /></span>
								<?php
									}else{
								?>
									<span class="offline"><img src="<?php print $site_url; ?>assets/img/status-bg.png" title="Offline" /></span>
								<?php
									}
								?>
                            </div>
                        </div>
                    </div> <!-- ./sidebar-wrap.left-part -->
                    <div class="col-lg-6 d-flex order-1 order-lg-2">
                        <div class="mid-block">

                            <div class="middle-menu-area">
								<?php
									include 'pages/'.$page.'.php';
								?>
                            </div> <!-- ./middle-menu-area -->
                        </div>
                    </div> <!-- ./middle-main-wrap -->
                    <div class="col-lg-3 d-flex order-3 order-lg-3">
                        <div class="last-block">
<div class="cmn-title">
                                <h4><?php print $lang['login']; ?> <span>Warena</span></h4>
                                <a href="<?php print $site_url; ?>users/register" class="more"><?php print $lang['register']; ?></a>

                                <img src="<?php print $site_url; ?>assets/img/title-shadow.png" alt="" class="title-shadow">
                            </div>
                            <div class="login-form">
                                <?php if($offline || !$database->is_loggedin()) { ?>
								<form id='demo-form' method="post" action="<?php print $site_url; ?>users/login">
                                    <div class="input-inside">
										<input type="text" name="username" pattern=".{5,64}" maxlength="64" placeholder="<?php print $lang['user-name-or-email']; ?>" autocomplete="off" <?php if($offline) print 'disabled'; else print 'required'; ?>>
                                    </div>
                                    <div class="input-inside">
										<input type="password" name="password" pattern=".{5,16}" maxlength="16" placeholder="<?php print $lang['password']; ?>" <?php if($offline) print 'disabled'; else print 'required'; ?>>
                                    </div>
                                    <div class="continue-btn-wrap">
                    <center> <button  class="g-recaptcha continue" data-sitekey="<?php print $site_key; ?>" data-callback="onSubmit" data-size="invisible" type="submit">
					 <img src="<?php print $site_url; ?>assets/img/continue-btn-bg.png" alt=""><span><?php print $lang['login']; ?></span></button></center>
                                    </div>
                                        <center><a href="<?php print $site_url; ?>users/lost" class="before-design" style="font-size: 12px;"><?php print $lang['forget-password']; ?></a></center>

                                </form>
								<?php } else { ?>
								<div class="list-group">
								<div class="vertical-menu">

									<?php if($web_admin) { ?>
									<a href="<?php print $site_url; ?>admin" ><?php print $lang['administration']; ?><?php if($web_admin>=9 && checkUpdate(officialVersion())) print ' <span class="tag tag-info tag-pill float-xs-right">'.$lang['update-available'].'</span>'; ?></a>
									<?php 
										if($web_admin>=$jsondataPrivileges['donate']) {
											$count_donations = count(get_donations());
											if($count_donations)
											{
									?>	
									<a href="<?php print $site_url; ?>admin/donatelist" ><?php print $lang['donatelist']; ?> <span class="tag tag-info tag-pill float-xs-right"><?php print $count_donations.' '.$lang['new-donations']; ?> </span></a>
									<?php
											}
										}
									}
									?>
									<a href="<?php print $site_url; ?>user/administration" ><?php print $lang['account-data']; ?></a>
									<a href="<?php print $site_url; ?>user/characters" ><?php print $lang['chars-list']; ?></a>
									<a href="<?php print $site_url; ?>user/redeem" ><?php print $lang['redeem-codes']; ?></a>
									<?php if($jsondataFunctions['active-referrals']) { ?>
									<a href="<?php print $site_url; ?>user/referrals" ><?php print $lang['referrals']; ?></a>
									<?php } if($item_shop!="") { ?>
									<a target='_blank' href="<?php print $item_shop; ?>" ><?php print $lang['item-shop']; ?></a>
									<?php }
										$vote4coins = file_get_contents('include/db/vote4coins.json');
										$vote4coins = json_decode($vote4coins, true);
										
										if(count($vote4coins))
											print '<a href="'.$site_url.'user/vote4coins" >Vote4Coins</a>';
										
										$donate = file_get_contents('include/db/donate.json');
										$donate = json_decode($donate, true);
										
										if(count($donate))
											print '<a href="'.$site_url.'user/donate" class="list-group-item list-group-item-action">'.$lang['donate'].'</a>';
									?>
									<a href="<?php print $site_url; ?>users/logout" class="active"><?php print $lang['logout']; ?></a>
								</div>
								<?php } ?>
                            </div> <!-- ./login-form -->
                            <div class="bard-img">
							<img src="<?php print $site_url; ?>assets/img/bird2t.png" alt="">
                            </div>
							<?php if(!$offline && $statistics) { ?>
                            <div class="cmn-title">
                                <h4><?php print $lang['statistics']; ?> </h4>
                            </div>
                            <div class="player-status-wrap">
           <center style="font-size: 12px;">
			
		<?php if($jsondataFunctions['players-online']) { ?>
			<div class="online-now"><div><?php print number_format(getStatistics('players-online'), 0, '', '.'); ?></div></div>
			<h3 style="text-transform:uppercase; font-size: 14px;color: #d4d4d4;"><?php print $lang['players-online']; ?></h3>
		<?php } ?>
		
		<?php
		if(!$offline)
		foreach($jsondataFunctions as $key => $status)
			if(!in_array($key, array('active-registrations', 'players-debug', 'players-online', 'active-referrals')) && $status)
			{
		?>
			<div><?php print $lang[$key]; ?>: <span class="stats-value"><?php print number_format(getStatistics($key), 0, '', '.'); ?></span></div>
		<?php } ?>
		</div>
							<?php } ?>
							</center>
                            </div>

                        </div>
                    </div> <!-- ./sidebar-wrap.right-part -->
                </div>
            </div>
        </div>
    </main>

    <footer class="footer-area">
        <div class="footer-top-area">
            <div class="container">
                <div class="row">
                    <div class="col-lg-3">
                        <a href="<?php print $site_url; ?>" class="ft-logo"><img src="<?php print $site_url; ?>assets/img/ft-logo.png" alt=""></a>
                    </div>
                    <div class="col-lg-9 d-flex align-items-center">
                        <ul class="ft-menu">
							<li class="active"><a href="<?php print $site_url; ?>news"><?php print $lang['news']; ?></a></li>
							<li><a href="<?php print $site_url; ?>download"><?php print $lang['download']; ?></a></li>
							<li>
								<?php if(!$database->is_loggedin()) { ?>
								<a href="<?php print $site_url; ?>users/register"><?php print $lang['register']; ?></a>
								<?php } else { ?>
								<a href="<?php print $site_url; ?>user/administration"><?php print $lang['account-data']; ?></a>
								<?php } ?>
							</li>
							<li><a href="<?php print $shop_url; ?>" target="_blank"><?php print $lang['item-shop']; ?></a></li>
							<li><a href="<?php print $site_url; ?>ranking/players"><?php print $lang['ranking']; ?></a></li>
							<li><a href="<?php print $support; ?>" target="_blank"><?php print $lang['support']; ?></a></li>
							<li><a href="<?php print $site_url; ?>tos"><?php print $lang['rules']; ?></a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div> <!-- ./footer-top-area -->

        <div class="footer-btm-area">
            <div class="container">
                <div class="row">
                    <div class="col-md-4 d-flex align-items-end">
                        <div class="footer-widget">
                            <p> Copyright <?php print date('Y'); ?> © <a href="<?php print $site_url; ?>">Warena</a> All Rights reserved</p>
                        </div>
                    </div>
                    <div class="col-md-4 d-flex align-items-end justify-content-end">
                        <div class="footer-widget text-center">
                            <p>Atenção, este site não tem conexão ou é afiliado da Gameforge ou Ymir Games, todas as outras marcas são da propriedade dos seus respectivos proprietários.
                                <p></p><a href="<?php print $site_url; ?>">Equipa Warena</a></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </footer>

    <!--====== jquery js ======-->
    <script src="<?php print $site_url; ?>assets/js/vendor/modernizr-3.6.0.min.js"></script>
    <script src="<?php print $site_url; ?>assets/js/vendor/jquery-1.12.4.min.js"></script>

	<?php include 'include/functions/footer.php'; ?>
    <!--====== Bootstrap js ======-->
    <script src="<?php print $site_url; ?>assets/js/bootstrap.min.js"></script>

    <!--====== Plugins js ======-->
    <script src="<?php print $site_url; ?>assets/js/slick.min.js"></script>
    <script src="<?php print $site_url; ?>assets/js/jquery.nice-select.min.js"></script>
    <script src="<?php print $site_url; ?>assets/js/jquery.magnific-popup.min.js"></script>

    <!--====== Utilites Js =====-->
    <script src="<?php print $site_url; ?>assets/js/Util.js"></script>
    <!--====== Main js ======-->
    <script src="<?php print $site_url; ?>assets/js/main.js"></script>

</body>


</html>