Location: PHPKode > scripts > NukeLayout Clas > nukelayout-clas/index.phps
<?php
if ($show) {show_source(ereg_replace("^.+/", "", $PHP_SELF)); exit;}
// Turn on error reporting
 error_reporting(E_ALL);
ob_start(); 
ob_implicit_flush(0);
require("etc.php"); 
$mypage->nukelayoutpageOwneremail = "hide@address.com";


if (!isset ($op) || $op == "") {

} elseif($op == "print") {

		$mypage->set_rightbarStatus("OFF");
		$mypage->topbannerStatus = "OFF";
		$mypage->bottombannerStatus = "OFF";
		$mypage->leftbarStatus = "OFF";

}



$navlinks = array("HLUG"=>"nukeimages/hlug_theme.jpg",
			 "Midnight"=>"nukeimages/midnight_theme.jpg",
			 "Blueish"=>"nukeimages/blueish_theme.jpg",
			 "BlackRed"=>"nukeimages/blackred_theme.jpg",
			 "GoldBlack"=>"nukeimages/goldblack_theme.jpg",
			 "WhiteBlack"=>"nukeimages/whiteblack_theme.jpg",
			 "white"=>"nukeimages/white_theme.jpg");


$mynavlinks = $mypage->displaymyLinks($navlinks);
$mypage->addleftBar("Theme ScreenShots","
$mynavlinks
");




$mypage->addleftBar("Perfect for...","
<font size=\"2\"> 
Anyone who want to develop web sites
</font>
");


$content1 = <<<CNT1

<TABLE BORDER=0 width="100%">
  <TR>
    <TD>Object Oriented</TD>
    <TD COLSPAN=2 align=right>Layout Template</TD>
  </TR>

  <TR>
    <TD COLSPAN=3>
      <IMG SRC=nukelayout_php.gif align=right>
      NukeLayout PHP Class is a class that allows you to develop web pages that look and feel like PHPNuke. With out the need for a database and alot of
programming...</TD>
  </TR>
  <TR>
    <TD align=left>CSS Support</TD>
    <TD align=left>Color Themes</TD>
    <TD align=right>Easy to Extend</TD>
  </TR>
</TABLE>


CNT1;




$mypage->addArticle("NukeLayout PHP Class",
"
$content1


");

$mypage->addArticle("LAMP Friendly","

<u>L</u>inux is a multi-user, multi-tasking operating system that runs on many
platforms, including Intel, Motorola MC68K, DEC Alpha, and PowerPC. It 
implements a superset of the POSIX standard. Linux interoperates well with 
other operating systems, including those from Apple, Microsoft, and Novell.
<P>
<P>
<u>A</u>pache httpd server is a powerful, flexible, HTTP/1.1 compliant web server, 
is highly configurable and extensible with third-party modules,
can be customised by writing 'modules' using the Apache module API,provides full source code 
and comes with an unrestrictive license runs on Windows NT/9x, Netware 5.x, OS/2, and most versions of Unix, as
well as several other operating systems
<P>
<u>M</u>ySQL is a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database
server. 
<P>
<u>P</u>HP is a server-side, cross-platform, HTML embedded scripting language.


");



$link_array = array("Linux Netscape 4.7"=>"nukeimages/netscapebrowser.jpg",
			 "Linux Opera 5.0b6"=>"nukeimages/operabrowser.jpg",
			 "IE 5.5"=>"nukeimages/white_theme.jpg");


$links = $mypage->displaymyLinks($link_array);

$mypage->addRightBar("Browser Rendering screenshots","

$links

");




$mypage->addRightBar("Ability to","
<font size=\"2\">

Deploy Intranet sites quickly!

</font>
");

$sflogo =<<<SFIMG
<a href=http://sourceforge.net/><img src="http://sourceforge.net/sflogo.php?group_id=56831" width="88" height="31" border="0" alt="SourceForge Logo"></a>
SFIMG;


$mypage->addRightBar("Allows one to","
<font size=\"2\">
 
Focus on Content!
 
</font>
");


$mypage->addRightBar("Sourceforge.net","
$sflogo
");
 
$mypage->render();

$contents = ob_get_contents();
ob_end_clean();
 
if(ereg('gzip, deflate',$HTTP_ACCEPT_ENCODING)) {
// ob_end_flush();
header("Content-Encoding: gzip");

echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";

$Size = strlen($contents);
$Crc = crc32($contents);

$contents = gzcompress($contents, 9);
$contents = substr($contents, 0, strlen($contents) - 4);
echo $contents;
 
gzip_PrintFourChars($Crc);
gzip_PrintFourChars($Size);
  
} else {
    echo $contents;
}
 
function gzip_PrintFourChars($Val) {
    for ($i = 0; $i < 4; $i ++) {
        echo chr($Val % 256);
        $Val = floor($Val / 256);
    }
}
 
?>
Return current item: NukeLayout Clas