connect_errno) { $database = false; } $noobuser = "" . $_COOKIE["NoobUser"]; $error = ""; if ($_POST[imageupload] == "Upload") { $name = $_POST[imageowner]; if ($name == "") { $error .= "You have to give a name. "; } else { if ($_FILES["imagefile"]["error"] > 0 && $_FILES["imagefile"]["error"] != 4) { $error .= "Failed with error code " . $_FILES["imagefile"]["error"] . ". "; } else { $t = $_FILES["imagefile"]["type"]; if ($t == "image/gif" || $t == "image/jpeg" || $t == "image/jpg" || $t == "image/png") { $tmp = "uploads/temp/" . $_FILES["imagefile"]["name"]; move_uploaded_file($_FILES["imagefile"]["tmp_name"], $tmp); $size = getimagesize($tmp); if (($size[0] != $_POST[imagewidth] || $size[1] != $_POST[imageheight]) && $noobuser == "") { $error .= "$_POST[imagewidth]x$_POST[imageheight] does not match $size[0]x$size[1]"; unlink($tmp); } else { $location = "screenshots/"; if ($_POST[imagetype] == 2) $location = "huds/"; $name = "uploads/" . $location . "/" . $name . "|" . $_FILES["imagefile"]["name"]; rename($tmp, $name); $expire = time() + 60*60*24*30; setcookie("NoobUser",$_POST[imageowner],$expire); $noobuser = $_POST[imageowner]; } } else { $error = "Can't accept $t files."; } } } } ?> Friendly Fire «Noob»

Home
"; echo "
"; echo "$file
$folder by $owner
"; if ($_GET[page] == "screens_secret") { echo " [X]"; } echo "
"; } else { if ($count == $limit) { echo "
Older files
"; } echo "$file by $owner ($folder) "; if ($_GET[page] == "screens_secret") { echo " [X]"; } echo "
"; } $count++; } ?> get(array("name" => $name, "server" => "Ragnarok")); $cid = $character->getID(); } catch (Exception $e) { echo $e->getMessage(); } // Print character portrait //echo ""; ?>