Location: PHPKode > projects > Serveur Multicartes IPX800 > multicardipx800/Topbar.php
<?php
require_once ('LoadConfig.php');
require_once ('fctphp/function.php');
require_once ('fctphp/GestionAuth.php');

?>
<div id="Topbar" class="Topbar">
<?php
if ( isset($_SESSION["LoginConn"]) && basename($_SERVER["SCRIPT_NAME"]) == 'index.php' )
{
	?>
	<span id="BtnAccueil" class="boutons"><a href="Logout.php"><img src="images/skins/<?php echo $GLOBALS["config"]->general->skin; ?>/Out.png" title="Déconnexion" class="boutons"/></a></span>
	<?php
}
elseif ( isset($_SESSION["LoginConn"]) )
{
	?>
	<span id="BtnAccueil" class="boutons"><a href="index.php"><img src="images/skins/<?php echo $GLOBALS["config"]->general->skin; ?>/Home2.png" title="Accueil du site" class="boutons"/></a></span>
	<?php
}
if ( isset($_SESSION["LoginConn"]) && isset($GLOBALS["config"]->cameras) )
{
	// Verifie si au moins une camera est accessible
	if ( isset($GLOBALS["config"]->auths) )
	{
		if ( GetAuthAll($_SESSION["AuthId"], "camera") )
		{
			?>
			<span id="BtnVideo" class="boutons"><a href="List.php?liens=3&class=camera" ><img src="images/skins/<?php echo $GLOBALS["config"]->general->skin; ?>/camera.png" title="Vidéosurveillance" class="boutons"/></a></span>
			<?php
		}
	}
}
if ( isset($_SESSION["LoginConn"]) && isset($GLOBALS["config"]->cartes) && acces_mysql() && acces_highstock() )
{
	if ( $_SESSION['privilege'] >= (int)$GLOBALS["config"]->access->graph )
	{
		?>
		<span id="BtnGraph" class="boutons"><a href="ChoixClass.php?liens=4" ><img src="images/skins/<?php echo $GLOBALS["config"]->general->skin; ?>/graph.png" title="Graphiques" class="boutons"/></a></span>
		<?php
	}
}
?>
<span id="Title"><?php echo $GLOBALS["config"]->general->nameappli;?>&nbsp;<span id="jour"></span>&nbsp;<span id="time"></span></span><br />
<span id="StatusMsg" class="StatusMsg" 
<?php 
$title="";
if ( isset($_SESSION["ClientIP"]) )
  $title .='Connecté à partir de l\'ip : '.$_SESSION["ClientIP"]."||";
if ( isset($_SESSION["privilege"]) )
  $title .='Privilège : '.$_SESSION["privilege"]."||";
if ( isset($_SESSION["timezone"]) )
  $title .='Timezone : '.$_SESSION["timezone"];
echo 'title="'.$title.'"';
echo ' nicetitleh1="Informations utilisateur"';
?>
>
<?php
if ( isset($_SESSION["LoginConn"]) )
	echo $_SESSION["LoginConn"];
?>
</span>
<span id="BtnRefresh" class="boutons"><img src="images/skins/<?php echo $GLOBALS["config"]->general->skin; ?>/loader.gif" alt="loading"  class="boutons"/></span>
<?php
if ( isset($_SESSION['privilege']) && $_SESSION['privilege'] >= (int)$GLOBALS["config"]->access->param )
{
	?>
    <span id="BtnParam" class="boutons"><a href="Param.php"><img src="images/skins/<?php echo $GLOBALS["config"]->general->skin; ?>/Param.png" title="Paramétrage de l'application" class="boutons"/></a></span>
	<?php
}
?>
</div>
<div id="Msg" class="alert"></div>
Return current item: Serveur Multicartes IPX800