Location: PHPKode > projects > phpCAMALEO > skins/phpCAMALEO/Layout.php
<?php
/***************************************************************************
 *	Layout.php
 *
 *	begin		: December 2005
 *	version		: [phpCAMALEO] 23 October 2006
 *	copyright	: (C) 2005,2006 grandolini.net
 *
 *	Site pages layout
 *
 ***************************************************************************/
if($_SESSION[misc][location]=='l')
{
	#	site text is changed: rebuild content files
	#
	include($_SESSION[skinf].'import/Prepare_contents.php');
}
#
#	load page specific definitions
#
include($_SESSION[skinf].'def/'.$_SESSION[sitelanguage].'/common_defs.php');
if(file_exists($_SESSION[skinf].'def/'.$_SESSION[sitelanguage].'/'.$_SESSION[PageNr].'_defs.php'))
{
	include_once($_SESSION[skinf].'def/'.$_SESSION[sitelanguage].'/'.$_SESSION[PageNr].'_defs.php');
}
#
include($_SESSION[skinf].'head.php');
if($_SESSION[PageNr]!='access')		{ unset($_SESSION[rediraccess]); }
if($_SESSION[misc][stat_main]==1)	{ include($_SESSION[common].'private/Stat_mngr.php'); }
$_ADS=true;		include($_SESSION[skinf].'def/ads_defs.inc');
$_GOOGLE=true;	include($_SESSION[skinf].'def/google_defs.inc');
?>
<!-- page layout table -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td colspan="2" align="center"><a href="LoadPage.php?page=welcome" style="border:0;"><img src="skins/phpCAMALEO/img/phpCAMALEO450.gif" width="450" height="69" alt="phpCAMALEO @> Internet site transformation its easier than you think!" title="phpCAMALEO @> Internet site transformation its easier than you think!" /></a><br /></td></tr>
<tr><td colspan="2" height="5px"></td></tr>
<tr>
	<td colspan="2" bgcolor="#207901" style="border-top:1px solid #bbcd84;border-right:1px solid #7f4807;border-bottom:1px solid #7f4807;border-left:1px solid #bbcd84;">
		<!-- menu table -->
		<table border="0" cellpadding="0" cellspacing="0">
			<tr class="menu_tab">
				<td class="menu_tab" height="25px">
									 <?php if($PageNr=='welcome')	{ ?>HOME<?php } 		else { ?><a href="LoadPage.php?page=welcome">HOME</a><?php } ?></td>
				<td class="menu_tab"><?php if($PageNr=='docs')		{ ?>DOCS<?php }			else { ?><a href="LoadPage.php?page=docs">DOCS</a><?php } ?></td>
				<td class="menu_tab"><?php if($PageNr=='download')	{ ?>DOWNLOAD<?php } 	else { ?><a href="Download.php">DOWNLOAD</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"><?php if($PageNr=='feedme')	{ ?>FEEDME<?php } 		else { ?><a href="LoadPage.php?page=feedme">FEEDME</a><?php } ?></td>
				<td class="menu_tab"><?php if($PageNr=='next')		{ ?>NEXT<?php } 		else { ?><a href="LoadPage.php?page=next">NEXT</a><?php } ?></td>
				<td class="menu_tab"><?php if($PageNr=='gallery')	{ ?>GALLERY<?php } 		else { ?><a href="LoadPage.php?page=gallery">GALLERY</a><?php } ?></td>
				<td class="menu_tab">&nbsp;</td>
			</tr>
			<?php 
			if($PageNr=='docs' || $PageNr=='dirs' || $PageNr=='tutorial')
			{ 
				?><tr class="menu_tab"><td colspan="1"></td><td class="menu_tab" colspan="4"><?php 
						if($PageNr=='dirs')		{ ?>DIR STRUCTURE<?php }else { ?><a href="LoadPage.php?page=dirs">DIR STRUCTURE</a><?php } ?>&nbsp;@&gt;&nbsp;<?php
						if($PageNr=='tutorial')	{ ?>TUTORIALS<?php }		else { ?><a href="LoadPage.php?page=tutorial">TUTORIALS</a><?php } ?>
					</td></tr><tr class="menu_tab" height="5px"><td></td></tr><?php 
			}
			if($PageNr=='download' || $PageNr=='sysreq' || $PageNr=='license' || $PageNr=='rectools')
			{ 
				?><tr class="menu_tab"><td colspan="2"></td><td class="menu_tab" colspan="4"><?php 
						if($PageNr=='sysreq')	{ ?>REQUIREMENTS<?php } else { ?><a href="LoadPage.php?page=sysreq">REQUIREMENTS</a><?php } ?>&nbsp;@&gt;&nbsp;<?php 
						if($PageNr=='license')	{ ?>LICENSE<?php } 		else { ?><a href="LoadPage.php?page=license">LICENSE</a><?php } ?>&nbsp;@&gt;&nbsp;<?php 
						if($PageNr=='rectools')	{ ?>REC TOOLS<?php } 	else { ?><a href="LoadPage.php?page=rectools">REC TOOLS</a><?php } ?>
				  </td></tr><tr class="menu_tab" height="5px"><td></td></tr><?php 
			}
			if($PageNr=='faq' || $PageNr=='support')
			{ 
				?><tr class="menu_tab"><td colspan="3"></td><td class="menu_tab" colspan="4"><?php 
						if($PageNr=='support')	{ ?>SUPPORT INFO<?php }	else { ?><a href="LoadPage.php?page=support">SUPPORT INFO</a><?php } ?>&nbsp;@&gt;&nbsp;<?php
						?><a href="http://sourceforge.net/tracker/?group_id=175531">SUPPORT</a>
					</td></tr><tr class="menu_tab" height="5px"><td></td></tr><?php 
			}
			if($PageNr=='feedme' || $PageNr=='linkme' || $PageNr=='spread')
			{ 
				?><tr class="menu_tab"><td colspan="4"></td><td class="menu_tab" colspan="4"><?php 
						if($PageNr=='linkme')	{ ?>LINKME<?php }	else { ?><a href="LoadPage.php?page=linkme">LINKME</a><?php } ?>&nbsp;@&gt;&nbsp;<?php
						if($PageNr=='spread')	{ ?>SPREAD<?php }	else { ?><a href="LoadPage.php?page=spread">SPREAD</a><?php } ?>
					</td></tr><tr class="menu_tab" height="5px"><td></td></tr><?php 
			} ?>
		</table>
	</td>
</tr>
<tr>
	<td align="left" style="padding:3px 0 0 0;"><p id="sml0"><?=LAST_SITE?>:&nbsp;<?=_LAST_UPDATE_?></p>
		<?php if($_SESSION[misc][langforce]=='') { ?><div style="margin:5px 0 0 0;"><?php include($_SESSION[common].'fun2inc/site_language.inc'); site_language(); ?></div><?php } ?>
	</td>
</tr>
<!-- body table -->
<tr>
	<td width="220" valign="top"><p id="sml0">@&gt;0.0.2</p><img src="img/trasp.gif" height="375" width="100%" /><!-- camaleo spacer --><br />
		<?php if(file_exists('install')) { ?><fieldset class="err" style="position:absolute;top:10px;width:150px;"><legend><img src="img/warning.gif" alt="WARNING!" title="<?=L_INSTTIT?>" /></legend>&nbsp;<font style="font-weight:bold;color:red;"><?=L_INSTMSG?></font></fieldset><?php } ?>
	</td>
	<td valign="top"><?php 
		include($_SESSION[common].'includes/bld_contents.php'); flush(); ob_flush();
		if($_ADS==true && ($PageNr=='rectools' || $PageNr=='next' || $PageNr=='feedme')) { ?><div align="center" style="margin:15px 0 0 0;"><fieldset id="ads"><legend id="ads">&nbsp;<?=ADVERTISMENT?>&nbsp;</legend><?=ADS_SHOXX?></fieldset></div><?php }
	?></td>
	<tr><td colspan="2" height="5px"></td></tr>
</tr>
</table>
<!-- camaleo -->
<div style="position:absolute;top:180px;left:0px;"><?php
	if($PageNr=='feedme')
	{
		?><span style="position:relative;left:20px;"><?php include($_SERVER[DOCUMENT_ROOT].$_SESSION[misc][folder].'inc/paypal_donate.htm'); ?></span><?php
	}
	else
	{
		?><a class="img" href="LoadPage.php?page=feedme" style="border:0px;"><img id="camaSML" src="skins/phpCAMALEO/img/chameleon200.gif" border="0" width="200" height="163" alt="phpCAMALEO @> Internet site transformation its easier than you think!" title="Feed the animal!" /></a><?php
	}
	if($PageNr!='access' && $PageNr!='feedme') { echo GOOGLE_SEARCH; }
	if($_GOOGLE==true)
	{
		if($PageNr!='welcome' && $PageNr!='feedme' && $PageNr!='rectools') { ?><div style="margin:10px 0 0 10px;"><?=GOOGLE_ADWORDS?></div><?php }
		if($PageNr=='rectools') { ?><div style="margin:10px 0 0 10px;"><?=ADS_ZEND?></div><?php }
	}
	?>
</div><?php
if($_GOOGLE==true && $_SESSION[browser]!='FF' && $PageNr!='rectools') { ?><div style="position:absolute;top:5px;right:5px;"><?=GOOGLE_FIREFOX?></div><?php }
#===============================
#	site administration menu
#===============================
if($_SESSION[misc][location]=='l')
{
	?><div align="left" style="position:absolute;top:10px;left:15px;"><p id="sml0">db @&gt; <?=$db_main?></p><?php
	if($USER_PRIV==0)
	{
		?><p id="sml"><a href="Access.php?rediraccess=LoadPage.php,page=siteadmin">admin</a></p>
		<p id="sml"><a href="skinMNGR.php?admin">skins</a></p><?php
	}
	if($USER_PRIV>=80)
	{
		?><p id="sml"><a href="LoadPage.php?page=siteadmin">admin home</a></p>
		<p id="sml"><a href="skinMNGR.php?admin">skins</a></p>
		<p id="sml" style="margin:5px 0 0 0;"><a href="LoadPage.php?act=logout&page=welcome">logout</a></p><?php
	}
	?></div><?php
}
?><!-- news -->
<?php if($PageNr=='welcome' || $PageNr=='news_mngr')
{
	?><div id="newsContainer" style="position:absolute;top:87px;right:40px;"><div id="newsTicker"><div id="newsScroller"><script type="text/javascript">setCookie('fNEWS.trailspace',80,30);</script>
	<?php if($_SESSION[once]==false) { $tmp=''; for($i=0;$i<80;$i++) { $tmp.='&nbsp;'; } echo $tmp; # add trailing spaces ?><strong>phpCAMALEO NEWS @&gt; NOW SERVED BY AN AJAX SCRIPT</strong><?php } ?></div></div></div><?php
} ?>
<font id="copyright"><a class="img" href="http://getcountry.grandolini.com/" target="_blank"><img src="http://getcountry.grandolini.com/img/<?=strtolower($_SESSION[country_code]) ? strtolower($_SESSION[country_code]):'_na_';?>.png" width="25" height="15" border="0" alt="Country flag" title="<?=$_SESSION[country_desc]?>" />&nbsp;<?=$_SESSION[country_name]?></a></font>
<!-- footer table -->
<table width="100%" style="border-top:1px solid #25bd04;border-bottom:1px solid #25bd04; margin-bottom:5px;" cellpadding="0" cellspacing="0">
	<tr><td colspan="2" height="3px"></td></tr>
	<tr>
		<td width="280"><font id="copyright">&copy; 2006 grandolini.net &mdash; <?=FOOT_RIGHTS?><br /><?=FOOT_MIDDAG?><br />
			<!-- stats --><?=NOW_ONLINE?>: <?=$NOW_ONLINE?>&nbsp;@&gt;&nbsp;<?=TOT_ONLINE?>: <?=$TOT_ONLINE?><!-- <?=MAX_ONLINE?>: <?=$MAX_ONLINE?> -->
			<br /><?=FOOT_TIME.': '.substr(round(get_microtime()-$start_pagebuild_time,4),0,6).' '.FOOT_SECS?>
			</font>
		</td>
		<td align="center" valign="middle"><font id="sml1"><?php
			if($PageNr=='license') { ?>License<?php } else { ?><a href="LoadPage.php?page=license">License</a><?php } ?>&nbsp;@&gt;
			<a href="http://sourceforge.net/projects/phpcamaleo/">Project</a>&nbsp;@&gt;&nbsp;<?php
			if($PageNr=='contact') { ?>Contact<?php } else { ?><a href="Contact.php">Contact</a><?php } ?>&nbsp;@&gt;&nbsp;<?php
			if($PageNr=='privacy') { ?>Privacy<?php } else { ?><a href="LoadPage.php?page=privacy">Privacy</a><?php } ?>&nbsp;@&gt;&nbsp;<?php
			if($PageNr=='aboutus') { ?>About Us<?php } else { ?><a href="LoadPage.php?page=aboutus">About Us</a><?php } ?>&nbsp;@&gt;
			<a href="#top">^TOP^</a>
			</font>
		</td>
	</tr>
	<tr><td colspan="2" height="5px"></td></tr>
</table>
<!-- 3rd pty links table -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
	<td>
		<table cellpadding="0" cellspacing="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>&nbsp;</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>&nbsp;</td>
			<td><a class="img" href="http://grandolini.net" target="_blank" style="border:0;"><img src="http://grandolini.net/img/gnet-80x15.gif" onmouseover="this.src='http://grandolini.net/img/gnet-on-80x15.gif'" onmouseout="this.src='http://grandolini.net/img/gnet-80x15.gif'" width="80" height="15" border="0" alt="grandolini.net Logo" title="<?=LNK_UGO?>" /></a></td>
			<td>&nbsp;</td>
			<td><a class="img" href="http://www.openoffice.org" target="_blank" style="border:0;"><img src="img/openoffice-80x15.gif" width="80" height="15" alt="OpenOffice.org Logo" title="<?=LNK_OOF?>" /></a></td>
		</tr>
		<tr><td height="4"></td></tr>
		</table>
		<table cellpadding="0" cellspacing="0">
		<tr>
			<td><a class="img" href="http://phpcamaleo.org/LoadPage.php?page=linkme" style="border:0;"><img src="img/camaleos/phpcamaleo-88x31.gif" width="88" height="31" alt="I LOVE phpCAMALEO" title="<?=LNK_ILC?>" /></a></td>
			<td>&nbsp;</td>
			<td><a class="img" href="http://sourceforge.net" target="_blank" style="border:0;"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=175531&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" title="<?=LNK_SFN?>" /></a></td>
			<td>&nbsp;</td>
			<td><a class="img" href="http://www.opensource.org/docs/definition.php" target="_blank" style="border:0;"><img src="img/osi-certified-41x31.gif" width="41" height="31" border="0" alt="Open Source (OSI) Certified Logo" title="<?=LNK_OSI?>" /></a></td>
			<td>&nbsp;</td>
			<td><a class="img" href="http://hostras.com" target="_blank" style="border:0;"><img src="http://hostras.com/img/hostras-88x31.gif" alt="Hosted by hostras.com" title="Hosted by hostras.com" width="88" height="31" border="0" /></a></td>
		</tr>
		</table>
	</td>
	<td rowspan="2">
			<td align="right" width="99%"><a class="img" href="http://marcelino.org" target="_blank" style="border:0;"><img src="http://marcelino.org/img/mpyv-130x59.gif" width="130" height="59" border="0" alt="Marcelino.org Logo" title="<?=LNK_MAR?>" /></a></td>
	</td>
</tr>
</table>
</body></html>
<?php $_SESSION[once]=true; if($_SESSION[cache]==true) { ob_end_flush(); } ?>
Return current item: phpCAMALEO