Location: PHPKode > projects > PhpScribe Documentation Generator > gpl.php
<?php
require_once("config/scribe.inc");
require_once(PHPSCRIBE_CLASS_HTML);
require_once(PHPSCRIBE_CLASS_FORMTEMPLATE);

$HTML = new Html();
$HTML->addStyle("phpscribe.css");
$HTML->addBodyCfg("bgColor='#d6d6d6'");
$HTML->makePage();
$HTML->header->setAndPrepare("header.tpl");
$HTML->header->replace(array("imagePath"=>PHPSCRIBE_IMAGE_PATH,
                             "localPath"=>PHPSCRIBE_ABSOLUTE_PATH,
                             "pageTitle"=>"License"));
$HTML->footer->setAndPrepare("footer.tpl");
$HTML->footer->replace(array("imagePath"=>PHPSCRIBE_IMAGE_PATH,
                             "localPath"=>PHPSCRIBE_ABSOLUTE_PATH));
$HTML->printPage();

function Main() {
     $MAIN_TPL = new Template(PHPSCRIBE_TEMPLATE_PATH."main.tpl");
     $MAIN_TPL->prepare();
     $LIC_TPL = new Template(PHPSCRIBE_TEMPLATE_PATH."gpl.tpl");
     $LIC_TPL->prepare();
     if (!$fp = @fopen("LICENSE.txt","r")) {
          $LIC_TPL->assign("license_content","Couldn't open the license file LICENSE.txt. The file may be deleted.");
     } else {
          $LIC_TPL->assign("license_content",fread($fp,filesize("LICENSE.txt")));
     }
     $MAIN_TPL->assign("mainContent",$LIC_TPL->getOutputContent());
     $MAIN_TPL->assign("imagePath",PHPSCRIBE_IMAGE_PATH);
     $MAIN_TPL->printToScreen();
}
?>
Return current item: PhpScribe Documentation Generator