<li class="widget-container widget-gw2-sidebar-link-two-part">

	<div class="widget widget-wide mod mod-main">

		<div class="bd eason">

			<div class="top-sidebar"><br><h4 style="text-transform: uppercase;"><?php print $lang['user-panel']; ?></h4></div>

			<?php if($offline || !$database->is_loggedin()) { ?>

			

			<div class="row"><br>

				<div class="col-md-1"></div>

				<div class="col-md-10">




					<form class="form" role="form" method="post" action="<?php print $site_url; ?>users/login" accept-charset="UTF-8" id="login-nav">

						

							<input type="text" name="username" pattern=".{5,64}" maxlength="64" class="form-control" style="margin-bottom: 5px;margin-left: 15px;width: 200px;" placeholder="<?php print $lang['user-name-or-email']; ?>" autocomplete="off" <?php if($offline) print 'disabled'; else print 'required'; ?>>

						

						

							<input type="password" name="password" pattern=".{5,16}" maxlength="16" class="form-control" style="margin-bottom: 5px;margin-left: 15px;width: 200px;" placeholder="<?php print $lang['password']; ?>" <?php if($offline) print 'disabled'; else print 'required'; ?>>

						

					

							<input type="submit" class="button button-big" style="width: 120px; margin-left: 55px; margin-bottom: 5px;" value="<?php print $lang['login']; ?>"<?php if($offline) print ' disabled'; ?>>

					

					</form>

					<?php if(!$offline) { ?>

					

					<center><a href="<?php print $site_url; ?>users/lost"><?php print $lang['forget-password']; ?></a></center>
<center><a href="<?php print $site_url; ?>users/register"><?php print $lang['register']; ?></a></center>
					<br>
					<?php } ?>

				</div>

			</div>

			<?php } else { ?>


						
								<center><hr>
								<img src="<?php print $site_url.'images/job/8.png'; ?>" width="32" alt="" title="<?php print $account_name = getAccountName($_SESSION['id']); ?>">
								
								<p>Welcome back <?php print $account_name = getAccountName($_SESSION['id']); ?>!</p>
							
								<?php print $lang['md'].' :<img src="'.$site_url.'images/md.png " title="Coins"> '.getAccountMD($_SESSION['id']); ?>
								<br>

						
								<?php print $lang['jd'].' :<img src="'.$site_url.'images/jd.png" title="JD">  '.getAccountJD($_SESSION['id']); ?>
							<hr>






			<div class="fast-links">

				<?php if($web_admin) { ?>

				<a href="<?php print $site_url; ?>admin" class="box"><?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" class="box"><?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" class="box"><?php print $lang['account-data']; ?></a>

				<a href="<?php print $site_url; ?>user/characters" class="box"><?php print $lang['chars-list']; ?></a>

				<a href="<?php print $site_url; ?>user/redeem" class="box"><?php print $lang['redeem-codes']; ?></a>

				<?php if($jsondataFunctions['active-referrals']) { ?>

				<a href="<?php print $site_url; ?>user/referrals" class="box"><?php print $lang['referrals']; ?></a>

				<?php } if($item_shop!="") { ?>

				<a target='_blank' href="<?php print $item_shop; ?>" class="box"><?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" class="box">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="box">'.$lang['donate'].'</a>';

				?>

				<a href="<?php print $site_url; ?>users/logout" class="list-group-item list-group-item-action list-group-item-danger"><?php print $lang['logout']; ?></a>

				<!--<?php if($web_admin) { ?>

				<a href="#" class="list-group-item list-group-item-action disabled">Acces <?php print $web_admin; ?></a>

				<?php } ?>--!>
			</div>

			<?php } ?>

		</div>

	</div>

</li><br>