<?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";
}
$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.
");
$mypage->addRightBar("Ability to","
<font size=\"2\">
Deploy Intranet sites quickly!
</font>
");
$mypage->addRightBar("Allows one to","
<font size=\"2\">
Focus on Content!
</font>
");
$mypage->render();
global $HTTP_ACCEPT_ENCODING;
$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);
}
}
?>