<table border="0" width="100%" bgcolor="<?php echo $status_parm[2] ?>">
  <tr>
     <td width="160">&nbsp;</td>
     <td><span STYLE="font-family: <?php echo $status_parm[3] ?> ;font-size : <?php echo $status_parm[4] ?> ;color: <?php echo $status_parm[5] ?>">&nbsp;
	 
<?php

#############################################################################
#                              Site@School
# status2.php: last changed 29/06/2006  , version: 2.4.02
# by Fred Stuurman  (fc.stuurman@hccnet.nl)
# LICENSE INFORMATION: see LICENCE.txt in starnet directory
#$Id: status2.php,v 1.1 2006/10/03 11:13:16 fstuurman Exp $
#############################################################################
if (!defined('IN_SAS'))
{
	die("Hacking attempt");
}

$query = "SELECT name FROM $table_sections WHERE id = $section"; // getting the section name
$result = mysql_query($query) or die_script($query, mysql_error());
$sectionname = mysql_result($result, 0);
unset ($query);
unset ($result);
print "$status_parm[6] $sectionname -> $pagetitle </span>";

print "</font></td><td align=\"right\">  
		  <font size=1>";

if ($_SESSION['site'] == "protected")
{
	print "<a href=\"index.php?section=$_SESSION[section_came_from]&page=$_SESSION[page_came_from]&site=public\"
		  STYLE=\"font-family:$status_parm[3] ;font-size :$status_parm[4] ;color:$status_parm[5]\">" . $sas_lang['public_area'] . "&nbsp;/</a>";
}

if (IsSet ($_SESSION['userid']))
{
	print "<a href=index.php?section=$section&page=$page&logout=yes
		STYLE=\"font-family:$status_parm[3] ;font-size :$status_parm[4] ;color:$status_parm[5]\"> " . $sas_lang['logout'] . "&nbsp;</a>";
}
?>
		  </font>
		 </td>
   </tr>
</table> 