<?php
/***************************************************************************
* Layout.php
*
* begin : August 2006
* version : [1st-tutorial] 9 October 2006
* copyright : (C) 2005,2006 grandolini.net
*
* Site pages layout
*
***************************************************************************/
ini_set('zlib.output_compression','1');
ini_set('zlib.output_compression_level','5');
ob_start();
include_once($_SESSION[skinf].'lang/'.$_SESSION[sitelanguage].'/TITLES.inc');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?=$_SESSION[misc][skin]?>@>skin | <?=$_TITLE[$PageNr] ? $_TITLE[$PageNr]:'A phpCAMALEO skin to assist you with the tutorial';?> <?=$_SESSION[misc][server_name_title]?></title>
<meta name="keywords" content="*TODO*">
<meta name="description" content="*TODO*">
<meta http-equiv="resource-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="revisit-after" content="30 days">
<meta name="robots" content="index, follow">
<meta name="author" content="phpCAMALEO.org">
<meta name="copyright" content="copyright (c) by grandolini.net">
<meta name="distribution" content="global">
<meta name="rating" content="general">
<meta name="country" content="all">
<link href="skins/<?=$_SESSION[misc][skin]?>/no.ico" rel="shortcut icon" type="image/x-icon" />
<link href="skins/<?=$_SESSION[misc][skin]?>/MAIN.CSS" rel="stylesheet" type="text/css" />
<?php
setcookie('skinNAME',$_SESSION[misc][skin]);
setcookie('country',$_SESSION[sitelanguage]);
switch($_SESSION[browser])
{
case 'FF': ?><link href="skins/<?=$_SESSION[misc][skin]?>/MAIN_FF.CSS" rel="stylesheet" type="text/css" /><?php break;
case 'IE': ?><link href="skins/<?=$_SESSION[misc][skin]?>/MAIN_IE.CSS" rel="stylesheet" type="text/css" /><?php break;
}
echo "\n\n";
if($_SESSION[auto_reload]==true && basename($_SERVER[PHP_SELF])==$_SESSION[auto_page])
{
if($_SESSION[auto_delay]>0) { $delay=$_SESSION[auto_delay]; } else { $delay=1; } ?>
<script type="text/javascript">setTimeout("window.location.href='<?=$_SERVER[PHP_SELF]?>'",<?=$delay?>*60000);</script><?php
}
?>
<script type="text/javascript" src="common/js/fun2inc.js"></script>
<script type="text/javascript" src="common/js/tableHi.js"></script>
<script type="text/javascript" src="common/js/layoutINITs.js"></script>
<?php
if(substr($_GET[page],0,4)!='nojs')
{
switch($_SESSION[browser])
{
case 'FF': ?><noscript><meta http-equiv="refresh" content="0; URL=LoadPage.php?page=nojsff"></noscript><?php break;
case 'IE': ?><noscript><meta http-equiv="refresh" content="0; URL=LoadPage.php?page=nojsie"></noscript><?php break;
default: ?><noscript><meta http-equiv="refresh" content="0; URL=LoadPage.php?page=nojs"></noscript><?php
}
}
?>
</head>
<body><a tabindex="-1" id="top" name="top"></a><?php flush(); ob_flush();
if($_SESSION[misc][location]=='l')
{
# If site text is changed, rebuild content files
#
if(file_exists($_SESSION[skinf].'import/Prepare_contents.php')) { include($_SESSION[skinf].'import/Prepare_contents.php'); }
else { include($_SERVER[DOCUMENT_ROOT].$_SESSION[misc][folder].'skins/phpCAMALEO/import/Prepare_contents.php'); }
}
#
# load page specific definitions
#
if(file_exists($_SESSION[skinf].'def/'.$_SESSION[sitelanguage].'/'.$_SESSION[PageNr].'_defs.php'))
{
include_once($_SESSION[skinf].'def/'.$_SESSION[sitelanguage].'/'.$_SESSION[PageNr].'_defs.php');
}
if(file_exists($_SERVER[DOCUMENT_ROOT].'/skins/phpCAMALEO/def/'.$_SESSION[sitelanguage].'/'.$_SESSION[PageNr].'_defs.php'))
{
include_once($_SERVER[DOCUMENT_ROOT].'/skins/phpCAMALEO/def/'.$_SESSION[sitelanguage].'/'.$_SESSION[PageNr].'_defs.php');
}
#
if($_SESSION[PageNr]!='access') { unset($_SESSION[rediraccess]); }
if($_SESSION[misc][stat_main]==1) { include($_SESSION[common].'private/Stat_mngr.php'); }
?>
<!-- page layout table -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<!-- logo -->
<tr><td colspan="2" align="center"><a href="LoadPage.php?page=welcome" style="border:0;"><img src="skins/<?=$_SESSION[misc][skin]?>/img/logo-air.gif" width="450" height="69" alt="tutorial Logo" title="tutorial @> The phpCAMALEO tutorial skin!" /></a><br /></td></tr>
<tr><td colspan="2" height="5px"></td></tr>
<!-- menu -->
<tr>
<td colspan="2" id="bgcol0" style="border-top:3px solid #042442; border-bottom:3px solid #042442;">
<table border="0" cellpadding="0" cellspacing="0">
<tr class="menu_tab">
<td class="menu_tab"><?php
if($PageNr=='welcome') { ?>HOME<?php } else { ?><a href="LoadPage.php?page=welcome">HOME</a><?php } ?></td>
<td class="menu_tab"><?php if($PageNr=='mymenu') {
?>MY MENU<?php
}
else {
?><a href="LoadPage.php?page=mymenu">MY MENU</a><?php
} ?></td>
<td class="menu_tab"><?php if($PageNr=='faq') { ?>FAQ<?php } else { ?><a href="LoadPage.php?page=faq">FAQ</a><?php } ?></td>
<td class="menu_tab"><a href="http://phpcamaleo.org" target="_blank">phpCAMALEO</a></td>
<td class="menu_tab"><img src="img/trasp.gif" border="0" width="200" height="20" /></td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="2" align="right" style="padding:3px 0 0 0;"><font id="sml0"><?=LAST_SITE?>: <?=_LAST_UPDATE_?></font></td></tr>
<!-- body -->
<tr>
<td colspan="2" valign="top"><?php include($_SESSION[common].'includes/bld_contents.php'); flush(); ob_flush(); ?></td>
<tr><td colspan="2" height="5px"></td></tr>
</tr>
</table>
<!-- footer table -->
<table width="100%" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><hr id="line" /></td></tr>
<tr>
<td><img src="img/trasp.gif" border="0" width="350" height="1" /><br /><font id="copyright">© 2006 <?=$_SESSION[misc][SITE]?> — All rights reserved.<br />Time taken to build this page: <?=substr(round(get_microtime()-$start_pagebuild_time,4),0,6)?> sec.</font></td>
<td align="center" valign="middle"><font id="sml1">
<a href="LoadPage.php?page=aboutus">About Us</a> |
<a href="#top">^TOP^</a>
</font>
</td>
</tr>
<tr><td colspan="2" ><hr id="line" /></td></tr>
</table>
<!-- 3rd pty links table -->
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><a class="img" href="http://www.php.net" target="_blank" style="border:0;"><img src="img/php-80x15.gif" width="80" height="15" alt="PHP Logo" title="<?=LNK_PHP?>" /></a></td>
<td> </td>
<td><a class="img" href="http://www.mysql.com" target="_blank" style="border:0;"><img src="img/mysql-80x15.gif" width="80" height="15" alt="MySQL Logo" title="<?=LNK_MYS?>" /></a></td>
<td> </td>
<td><a class="img" href="http://phpcamaleo.org" target="_blank" style="border:0;"><img src="img/camaleos/phpcamaleo-80x15.gif" width="80" height="15" border="0" alt="phpcamaleo.org Logo" title="<?=LNK_ILC?>" /></a></td>
<?php
if($_SESSION[misc][location]=='l')
{
#===============================
# site administration menu
#===============================
?><td width="99%" align="right">
<font id="color3" style="font-size:65%; font-weight:normal;">db @> <?=$db_main?></font> | <?php
if($USER_PRIV==0)
{
?>
<font style="font-size:small; font-weight:bold;"><a href="Access.php?rediraccess=LoadPage.php,page=siteadmin">admin</a></font> |
<font style="font-size:small; font-weight:bold;"><a href="skinMNGR.php?admin">skins</a></font>
<?php
}
if($USER_PRIV>=80)
{
?>
<font style="font-size:small; font-weight:bold;"><a href="LoadPage.php?page=siteadmin">admin home</a></font> |
<font style="font-size:small; font-weight:bold;"><a href="LoadPage.php?act=logout&page=welcome">logout</a></font>
<?php
}
?></td><?php
}
?>
</tr>
</table>
<div style="padding:10px 0 5px 20px;"><?php if($_SESSION[misc][langforce]=='') { include($_SESSION[common].'fun2inc/site_language.inc'); site_language(); } else { ?><img src="img/trasp.gif" height="15" width="15" border="0"/> <?php }?></div><?php
if(file_exists('install')) { ?><fieldset class="err" style="position:absolute; top:0px; right:10px; width:150px;"><legend><img src="img/warning.gif" alt="WARNING!" title="<?=L_INSTTIT?>" /></legend> <font style="font-weight:bold; color:#ff0000; background:#fffc00;"><?=L_INSTMSG?></font></fieldset><?php } ?>
</body></html><?php if($_SESSION[cache]==true) { ob_end_flush(); } ?>