//////////////////////////// COPYRIGHT NOTICE //////////////////////////////
// This script is part of PhotoPost PHP, a software application by //
// All Enthusiast, Inc. Use of any kind of part or all of this //
// script or modification of this script requires a license from All //
// Enthusiast, Inc. Use or modification of this script without a license //
// constitutes Software Piracy and will result in legal action from All //
// Enthusiast, Inc. All rights reserved. //
// http://www.photopost.com legal@photopost.com //
// Contributing Developer: Michael Pierce (danasoft.com) //
// //
// PhotoPost Copyright 2002, All Enthusiast, Inc. //
////////////////////////////////////////////////////////////////////////////
require "pp-inc.php";
require "languages/$pplang/index.php";
require "login-inc.php";
if ( file_exists("install.php") || file_exists("{$Globals['maindir']}/install.php") ) {
diewell( "For security reasons, please remove the install.php from the PhotoPost directory before proceeding." );
exit;
}
authenticate();
if ( isset($Globals['ppboards']) && $adminedit != 1 ) {
if ( $Globals['ppboards'] == "closed" ) {
print $Globals['pp_lang']['board_closed'];
exit;
}
}
topmenu();
if ( isset($cat) ) {
if ( $userid > 0 ) {
list($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
$mon = $mon + 1;
$lasttimeon = mktime($hour,$min,$sec,$mon,$mday,$year);
$laston = "REPLACE INTO laston VALUES($cat,$userid,$lasttimeon)";
$resultb = ppmysql_query($laston, $link);
}
childsub($cat);
$childnav = "{$Globals['pp_lang']['home']} $childnav";
$searchcat = $cat;
}
else {
if ( $username != "" && $username != "Unregistered" ) $childnav = "{$Globals['pp_lang']['welcomeuser']} $username!";
else $childnav = "{$Globals['pp_lang']['welcome']} {$Globals['galleryname']}!";
$searchcat = 998;
}
if ( !empty($cat) ) {
$query = "SELECT id,catname FROM categories WHERE id='$cat'";
$ctitleq = ppmysql_query($query, $link);
if ( $ctitleq ) {
list( $catid, $cattitle ) = mysql_fetch_row($ctitleq);
ppmysql_free_result( $ctitleq );
$tablehead = "$cattitle";
}
else
$tablehead = "";
}
else {
$tablehead = $Globals['pp_lang']['tablehead'];
}
printheader( $thecat, $tablehead );
$output = "
| $menu2 | $menu |