<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+===================================================*/

if($hkzone !== true){ header("Location: index.php?throwBack=true"); exit; }

if($user_rank > 6){
    $strRank = "Amministratore";
} elseif($user_rank > 5){
    $strRank = "Moderatore";
} else {
    $strRank = "Faggot"; // no wai!
}

$lyrics = "";

$lyrics = explode("\n", $lyrics); // put diffrent lines in array and..
$chosen = $lyrics[ mt_rand(0, count($lyrics) - 1) ]; // ..pick a random one.

?>
<body>
<div id='loading-layer' style='display:none'>
	<div id='loading-layer-shadow'>
	   <div id='loading-layer-inner' >
		   <img src='./images/loading_anim.gif' style='vertical-align:middle' border='0' alt='Loading...' /><br />
		   <span style='font-weight:bold' id='loading-layer-text'>Caricamento...</span>
	   </div>
	</div>
</div>
<div id='ipdwrapper'><!-- IPDWRAPPER -->
<!-- TOP TABS -->
<div class='tabwrap-main'>
<div class='tab<?php if($tab == 1){ echo "on"; } else { echo "off"; } ?>-main'><img src='images/dashboard.png' style='vertical-align:middle' /> <a href='index.php?p=dashboard'>Benvenuto</a></div>

<div class='tab<?php if($tab == 5){ echo "on"; } else { echo "off"; } ?>-main'><img src='images/admin.png' style='vertical-align:middle' /> <a href='index.php?p=users'>Utenti & Moderazione</a></div>
<div class='tab<?php if($tab == 3){ echo "on"; } else { echo "off"; } ?>-main'><img src='images/tools.png' style='vertical-align:middle' /> <a href='index.php?p=maintenance'>Sito & Contenuti</a></div>
<div class='tab<?php if($tab == 6){ echo "on"; } else { echo "off"; } ?>-main'><img src='images/help.png' style='vertical-align:middle' /> <a href='index.php?p=help'> FAQ</a></div>


<div class='logoright'><br /><font size='2' color='black'><?php echo $chosen; ?></font>&nbsp;&nbsp;&nbsp;</div>
</div>
<!-- / TOP TABS -->

<div class='sub-tab-strip'>
    <div class='global-memberbar'>
 Benvenuto <strong><?php echo $strRank . " " . $admin_username; ?></strong> [
 <a href='../me.php' target='_blank'>Home sito</a> &middot;
 <a href='index.php?p=logout'>Esci</a>
 ]
</div>
	<div class='navwrap'><a href='index.php?p=dashboard'>HoloCMS: Housekeeping !</a></div>
</div>
<div class='outerdiv' id='global-outerdiv'><!-- OUTERDIV -->