</div>
<?php
if (isset($ank)){
	
	echo '</div>';
	
	echo '<div class="footer"><img src="/img/icons/energy.png">'. $ank['energy'] .' / '. $ank['max_energy'] .'</div>';
	
	$_team = ($ank['level'] >= 30) ? '<a href="/team.php"><img src="/img/foot/celebrationicon.png"></a>' : '<img src="/img/foot/celebrationicon_n.png">';
	
	echo '<table width="100%" style="text-align: center;">
	<tbody>
	<tr>
	<td width="33%"><a href="/"><img src="/img/foot/zjmshuiyuzhengfeng.png"></a></td>
	<td width="33%"><a href="/profile.php"><img src="/img/foot/sanbaicon.png"></a></td>
	<td width="33%">'. $_team .'</td>
	</tr>
	</tbody>
	</table>';
	
	echo '<footer>
	<div id="updatetime" style="display: inline-block;float: left;margin-left: 20px;margin-top: 10px;padding: 3px 10px 3px 10px;color: white;background: linear-gradient(to top, #242424, #353535);border-radius: 10px;border: 1px solid darkred;box-shadow: 0 0 5px red;color: red;text-shadow: 0 0 1px red;"></div>
	<a href="https://vk.com/dg_pain" style="display: inline-block;float: right;margin-right: 20px;margin-top: 10px;padding: 3px 10px 3px 10px;color: white;background: linear-gradient(to top, #242424, #353535);border-radius: 10px;border: 1px solid darkred;box-shadow: 0 0 5px red;color: redr;text-shadow: 0 0 1px red;">by Alucard</a>
	</footer>';

	} else {
	
    echo '</div>';
	
	echo '<footer>
	<div id="updatetime" style="display: inline-block;float: left;margin-left: 20px;margin-top: 10px;padding: 3px 10px 3px 10px;color: white;background: linear-gradient(to top, #242424, #353535);border-radius: 10px;border: 1px solid darkred;box-shadow: 0 0 5px red;color: red;text-shadow: 0 0 1px red;"></div>
	<a href="https://vk.com/dg_pain" style="display: inline-block;float: right;margin-right: 20px;margin-top: 10px;padding: 3px 10px 3px 10px;color: white;background: linear-gradient(to top, #242424, #353535);border-radius: 10px;border: 1px solid darkred;box-shadow: 0 0 5px red;color: red;text-shadow: 0 0 1px red;">by Alucard</a>
	</footer>';

	}
?>