"; } if($config['AdPlacement'] == "header" && $config['ShowAd'] == "true") $headerad = stripslashes($config['PageAds']); if($config['AdPlacement'] == "footer" && $config['ShowAd'] == "true") $footerad = stripslashes($config['PageAds']); if($config['ShowAd'] == "true") $adjavacoding = stripslashes($config['JavaCode']); if(!$tdwidth) $tdwidth = "50"; // Only remove the slashes below if you want to see the $HTTP_*_VARS. // NOTE: All users will be able to see these variables if slashes removed! //$_DEBUG = $myOut; $lastvisit = XBdate($config['longdateformat'],$user_info['lastvisit'],1); if(!file_exists("./!users/avatars/".$username.".avatar.jpg")) { $avatar = "!style/images/noavatar.gif"; } else { $avatar = "!users/avatars/".$username.".avatar.jpg"; } if($user_info['accesslevel'] == "0") { $mysymbol="~"; } //Regular user... if($user_info['accesslevel'] == "1") { $mysymbol="@"; } //Administrator... if($user_info['accesslevel'] == "2") { $mysymbol="="; } //Beta Tester... if($user_info['accesslevel'] == "3") { $mysymbol="^"; } //Developer... if($adminstatus == true) eval ("\$adminoptions = \"".gettemplate("adminoptions")."\";"); if($adminstatus == true || $user_info['accesslevel'] == "3") $devlink = " //Dev CP"; $newmsgcount = $user_info['submissioncount'] + $user_info['commentcount'] + $user_info['journalcount'] + $user_info['notescount'] + $user_info['favoritescount'] + $user_info['watchcount']; if($newmsgcount == 0) { $user_info['messagescount'] = "no new messages"; } else { if($user_info['submissioncount'] > 0) { $subc = "$user_info[submissioncount]S"; } if($user_info['notescount'] > 0) { $notc = "$user_info[notescount]N"; } if($user_info['commentcount'] > 0) { if(!$comma1 && $subc) $comma1 = ","; $comc = "$user_info[commentcount]C"; $disstring .= $comc; } if($user_info['journalcount'] > 0) { if(!$comma1 && $subc) $comma1 = ","; if($comc) $disstring .= ", "; $jouc = "$user_info[journalcount]J"; $disstring .= $jouc; } if($user_info['favoritescount'] > 0) { if(!$comma1 && $subc) $comma1 = ","; if($comc || $jouc) $disstring .= ", "; $favc = "$user_info[favoritescount]F"; $disstring .= $favc; } if($user_info['watchcount'] > 0) { if(!$comma1 && $subc) $comma1 = ","; if($comc || $jouc || $favc) $disstring .= ", "; $mesc = "$user_info[watchcount]W"; $disstring .= $mesc; } if($disstring || $subc) $comma2 = ","; if(!$notc) $comma2=""; $user_info['messagescount'] = "".$newmsgcount." new messages ( $subc$comma1 $disstring$comma2 $notc ) "; } eval ("\$bbcode = \"".gettemplate("bbcode")."\";"); eval ("\$mouseover = \"".gettemplate("mouseover")."\";"); eval ("\$footer = \"".gettemplate("footer")."\";"); if($user_info['showads'] == 0) eval ("\$googleads = \"".gettemplate("googleads")."\";"); if($config['adminmessage']) { eval ("\$systemerrors .= \"".gettemplate("admin_message")."\";"); } eval ("\$javascript = \"".gettemplate("javascript")."\";"); if($config['readonly'] == true) { eval ("\$header = \"".gettemplate("header_readonlymode")."\";"); } else { eval ("\$header = \"".gettemplate("header")."\";"); } //$bbcodes = $sql->query("SELECT bbcodetag,bbcodereplace,params FROM db_bbcode"); //eval ("\$bottomwing = \"".gettemplate("bottomwing")."\";"); /* if($filename == "register.fpd") { unset($badproxy); if(check_proxy($ip) == false) { $badproxy = true; } if($badproxy == true) { eval("dooutput(\"".gettemplate("accountlocked")."\");"); exit(); } } */ if($user_info['accountlocked'] == "1" || $lockedips[$ip] == "LOCKED") { if($user_info['userid'] != "1") { eval("dooutput(\"".gettemplate("accountlocked")."\");"); exit(); } } if($config['full_lock'] == true && $filename != "administration.fpd") { eval("dooutput(\"".gettemplate("syslocked")."\");"); exit(); } /* if($filename != "browse.fpd" && $filename != "gallery.fpd" && $filename != "user.fpd") { eval("dooutput(\"".gettemplate("ServerDown")."\");"); exit(); } */ // Links template is not needed after this, remove it from memory. //if($user_info['userid'] == "1") WriteQueryLog($QUERY_STRING); unset($links); ?>