<?php
if ($show) {show_source(ereg_replace("^.+/", "", $PHP_SELF)); exit;}
ob_start();
ob_implicit_flush(0);
require ("etc.php");
$mypage->set_rightbarStatus("OFF");
$mypage->addleftBar("Left Column 2","
<font size=\"2\">
<li>Linux
<li>Apache
<li>MySQL
<li>PHP
</font>
");
$mypage->addArticle("NukeLayout Class",
"
NukeLayout Class is PHP class that allow you to develop web pages that
look and feel like PHPNuke. With out the need for a database and alot of
programming...
<p>
This class allows you to focus on content!
");
$mypage->addArticle("About this page",
"
This page without a right block section(s).
");
$mypage->addRightBar("Right Column 1","
<font size=\"2\">
<li>Linux
<li>Apache
<li>MySQL
<li>PHP
</font>
");
$mypage->addRightBar("Right Column 2","
<A HREF=view_src.php?page=example1.php>View Src</a><br>
<A HREF=example1.php>No Right Column</a><br>
<A HREF=example2.php>No Bottom Banner</a><br>
<A HREF=example3.php>No Top Banner</a><br>
");
$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);
}
}
?>