I get this crap all over the screen:
?php if(isset($_GET['z']) && (int)$_GET['z']) { $p = (int)$_GET['p']; $c = (int)$_GET['c']; if($p && $c) { header("Location: showphoto.php?photo=$p&thecat=$c"); exit; } /////////////////////////// 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
[email protected] // // Contributing Developer: Michael Pierce (danasoft.com) // // // / PhotoPost Copyright 2002, All Enthusiast, Inc. // /////////////////////////////////////////////////////////////////////////// fine('HOW_MANY_LINKS', 10); require "pp-inc.php"; equire "languages/$pplang/index.php"; equire "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; uthenticate(); f ( isset($Globals['ppboards']) && $adminedit != 1 ) { if ( $Globals['ppboards'] == "closed" ) { print $Globals['pp_lang']['board_closed']; exit; } topmenu(); $tablehead = $Globals['pp_lang']['tablehead']; ( isset($cat) ) { if ($ugview{$cat} == 1 ) { diewell( $Globals['pp_lang']['noview'] ); } $query = "SELECT id,catname,password FROM categories WHERE id=$cat"; $resultb = ppmysql_query($query,$link); list( $catid, $cattitle, $catpass ) = mysql_fetch_row($resultb); ppmysql_free_result( $resultb ); if ( trim($catpass) != "" && $adminedit != 1 ) { if ( !isset($password) ) $password = ""; if ( $password != $catpass ) { get_password( $cat ); exit; } } 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); } $tablehead = "$cattitle"; # this is crap childsub($cat); $childnav = "{$Globals['pp_lang']['home']} $childnav"; $searchcat = $cat; //list($categoryname) = mysql_fetch_row(mysql_query("SELECT catname FROM categories WHERE id='$cat' LIMIT 1", $link)); //$BREADCRUMBS->add($categoryname, "index.php?cat=$cat"); } else { if ( $username != "" && $username != "Unregistered" ) $childnav = "{$Globals['pp_lang']['welcomeuser']} $username!"; else $childnav = "{$Globals['pp_lang']['welcome']} {$Globals['galleryname']}!"; $searchcat = 998; } printheader( $cat, $tablehead ); $output = "