Esempio n. 1
0
function freshports_Header($ArticleTitle, $Description, $Keywords, $Phorum = 0)
{
    global $FreshPortsName;
    echo "<HEAD>\n\t<TITLE>" . $FreshPortsName;
    if ($ArticleTitle) {
        echo " -- {$ArticleTitle}";
        if ($Phorum) {
            global $ForumName;
            if (isset($ForumName)) {
                echo " - {$ForumName}";
            }
        }
    }
    echo "</TITLE>\n";
    freshports_style($Phorum);
    echo freshports_HEAD_charset();
    echo "\n\t<META NAME=\"description\" CONTENT=\"";
    if ($Description) {
        echo $Description;
    } else {
        echo $ArticleTitle;
    }
    echo "\">\n\t<META NAME=\"keywords\"    CONTENT=\"{$Keywords}\">\n";
    echo freshports_HEAD_main_items();
    if ($Phorum) {
        global $phorumver;
        global $DB;
        global $ForumName;
        ?>
	<meta name="PhorumVersion" content="<?php 
        echo $phorumver;
        ?>
">
	<meta name="PhorumDB" content="<?php 
        echo $DB->type;
        ?>
">
	<meta name="PHPVersion" content="<?php 
        echo phpversion();
        ?>
">
	
<?php 
    }
    echo freshports_IndexFollow($_SERVER["PHP_SELF"]);
    echo "</HEAD>\n";
}
#
# $Id: 404-for-virtual-pages.php,v 1.3 2007-10-25 11:57:23 dan Exp $
#
require_once $_SERVER['DOCUMENT_ROOT'] . '/../include/common.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/../include/freshports.php';
$Title = 'Using 404 errors to serve up virtual pages and virtual categories';
?>
<html>
<HEAD>
<TITLE><?php 
echo $Title;
?>
</TITLE>

<?php 
freshports_style();
?>
</HEAD>
 

<body>

<H1><?php 
echo $Title;
?>
</H1>

<p>
<h2>About this document</h2>
<p>
This page documents how <a href="http://www.FreshPorts.org/">FreshPorts</a> can use the