// Copyright (C) 2000 Ash Bowers
// Email: ashbowers@yahoo.com
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// Check for the config and functions files. They must exist!
if(file_exists(".include/config.inc")) {
include(".include/config.inc");
} else {
echo "Config file not found. Exiting.\n";
exit;
}
$hdnam="Invalid Page";
if(file_exists($funcinc)) {
include($funcinc);
} else {
echo "Functions file not found. Exiting.\n";
exit;
}
// Referring Page Checker
if($checkref) {
refpage();
} else {
#echo "HTTP Referrer check disabled
\n";
}
// Get the directory includes
if(file_exists("$dir/$breftxt")) {
include("$dir/$breftxt");
} else {
if(file_exists("$breftxt")) {
include("$breftxt");
}}
if (!$customheader) {
my_header();
} else {
include($custinc);
}
$dir="."; $unam="Pin-up Gallery: Invalid Page"; $noheader="Yes";
$mdes="Invalid page: The requested page is non-existent.";
$xbot="Invalid Page";
$mnam="Invalid page.";
$mkey="404,error,invalid,page";
// Check for User defined html.inc
// If it does not exist, we generate some defaults.
if(file_exists($htmlinc)) {
include($htmlinc);
}
echo "
\n"; // Check for invalid.inc // If it does not exist, we generate some defaults. if(file_exists($invpinc)) { include($invpinc); } echo " |