Example #1
0
$NumberOfDays = 9;
$WatchListAsk = 1;
#
# flags for showing various port parts.
#
$ShowEverything = 0;
$ShowPortCreationDate = 0;
$User->name = '';
$User->id = 0;
// This is used to determine whether or not the cach can be used.
$DefaultMaxArticles = $MaxArticles;
if (isset($_COOKIE["visitor"])) {
    $visitor = $_COOKIE["visitor"];
}
if (!empty($visitor)) {
    if ($User->FetchByCookie($visitor) != 1) {
        if ($Debug) {
            echo "we didn't find anyone with that login... " . pg_errormessage() . "\n<br>";
        }
        if ($Debug) {
            echo ' no cookie found for that person ';
        }
        # we were given a cookie which didn't refer to a cookie we found.
        freshports_CookieClear();
        unset($visitor);
    } else {
        if ($Debug) {
            echo "we found a result there...\n<br>";
        }
        if ($User->status == $UserStatusDisabled) {
            #