<?php
/***************************************************************************
* Layout.php
*
* begin : August 2007
* version : [ice] 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]?>/ice0.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 id="topmnu">
<td align="right" valign="top"><a href="LoadPage.php?page=welcome" style="border:0;"><img src="skins/ice/img/logo-ice_01.png" width="154" height="79" alt="ice Logo" title="ice @> The phpCAMALEO ice skin!" /></a></td>
<td colspan="4" align="left" valign="top" width="99%"><a href="LoadPage.php?page=welcome" style="border:0;"><img src="skins/ice/img/logo-ice_02.png" width="470" height="79" alt="ice Logo" title="ice @> The phpCAMALEO ice skin!" /></a><br /></td>
</tr>
<!-- menu -->
<tr align="left">
<td valign="top">
<table id="bgcol0" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" align="right" style="background:#ffffff;"><a href="LoadPage.php?page=welcome" style="border:0;"><img src="skins/ice/img/logo-ice_03.png" border="0" width="139" height="49" alt="ice Logo" title="ice @> The phpCAMALEO ice skin!" /></a></td>
<td valign="top" style="background:#c2e2ff;" ><img src="skins/ice/img/tlround.gif" border="0" width="15" height="52" /></td>
</tr>
<tr><td></td><td rowspan="9" style="background:url(skins/ice/img/bgshah.gif) repeat-y #c2e2ff;"></td></tr>
<tr class="menu_tab" height="15" valign="top"><td class="menu_tab"><?php if($PageNr=='welcome') { ?>HOME<?php } else { ?><a href="LoadPage.php?page=welcome">HOME</a><?php } ?></td></tr>
<tr class="menu_tab" height="15" valign="top"><td class="menu_tab"><?php if($PageNr=='stmenu1') { ?>STRUCTURED MENU<?php } else { ?><a href="LoadPage.php?page=stmenu1">STRUCTURED MENU</a><?php } ?></td></tr>
<?php
if($PageNr=='stmenu1' || $PageNr=='submnu1.1' || $PageNr=='submnu1.2' || $PageNr=='submnu1.3')
{
?><tr class="menu_tab" height="15" valign="top"><td class="menu_tab"><?php
if($PageNr=='submnu1.1') { ?> >SUB MENU1<br /><?php } else { ?> ><a href="LoadPage.php?page=submnu1.1">SUB MENU1</a><br /><?php }
if($PageNr=='submnu1.2') { ?> >SUB MENU2<br /><?php } else { ?> ><a href="LoadPage.php?page=submnu1.2">SUB MENU2</a><br /><?php }
if($PageNr=='submnu1.3') { ?> >SUB MENU3<br /><?php } else { ?> ><a href="LoadPage.php?page=submnu1.3">SUB MENU3</a><br /><?php }
?>
</td></tr>
<tr class="menu_tab" height="5"><td></td></tr><?php
}
?>
<tr class="menu_tab" height="15" valign="top"><td class="menu_tab"><?php if($PageNr=='faq') { ?>FAQ<?php } else { ?><a href="LoadPage.php?page=faq">FAQ</a><?php } ?></td></tr>
<tr class="menu_tab" height="15" valign="top"><td class="menu_tab"><a href="http://phpcamaleo.org">phpCAMALEO</a></td></tr>
<tr class="menu_tab" height="15"><td class="menu_tab" height="99%"></td></tr>
<tr class="menu_tab" valign="bottom"><td class="menu_tab" id="botmnu" height="65"><!-- menu width -->
<img src="img/trasp.gif" border="0" width="130" height="20" /><br /><font id="sml1"><?=LAST_SITE?>:<br /><?=_LAST_UPDATE_?></font><br /><br />
</td>
</tr>
</table>
</td>
<td align="left" valign="top">
<!-- contents table -->
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="4" align="left" valign="top"><img src="skins/ice/img/bgsha.gif" border="0" width="100%" height="5" /></td></tr>
<tr><td colspan="4"><img src="img/trasp.gif" width="100%" height="10" /></td></tr>
<tr>
<td valign="top" width="99%"><?php include($_SESSION[common].'includes/bld_contents.php'); flush(); ob_flush(); ?></td>
<td valign="top"><!-- right content space --><img src="img/trasp.gif" border="0" width="20" height="1" /><br /></td>
</tr>
</table>
</td>
<tr><td colspan="3" height="5"><!-- bottom spacer --></td></tr>
</tr>
</table>
<!-- footer table -->
<table width="100%" style="padding:0 12px 0 12px;" 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 />Penguins & igloo are used with permission by <a class="img" href="http://everaldo.com/" target="_blank">Everaldo Coelho</a><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="Contact.php">Contact</a> |
<a href="LoadPage.php?page=privacy">Privacy</a> |
<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 width="100%" style="padding:0 12px 0 12px;" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="1%"><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 width="1%"> </td>
<td width="1%"><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 width="1%"> </td>
<td width="1%"><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>
<td width="99%" align="right">
<?php
if($_SESSION[misc][location]=='l')
{
#===============================
# site administration menu
#===============================
?>
<font id="color1" 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>
</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(); } ?>