function getlicheck() { $fileid = check_arg("fileid", "integer", $_REQUEST); handle_errors(); $upload = core_getupload($fileid); if(array_key_exists("type", $_REQUEST)) { if($upload->type() != $_REQUEST["type"]) { exit; } } return $upload; }
require_once("offensive/classes/assets.inc"); mustLogIn(); time_start($ptime); $id = ""; if(array_key_exists("id", $_REQUEST)) { $id = $_REQUEST["id"]; } if(!is_intger($id)) { header( "Location: /offensive/" ); exit; } $upload = core_getupload($id); if(!$upload->exists()) { header( "Location: /offensive/" ); exit; } PickupLink::content($upload->type()); if(array_key_exists("random", $_REQUEST)) { header("Location: ".Link::upload(get_random_id($upload))); exit; } if($upload->type() == "topic") { header("Location: ".Link::thread($id)); exit; }
<div class="contentbox"> <div class="blackbar"></div> <div class="heading">contact:</div> <div class="bluebox"> <a href="/contact/">email</a><br> aim: <a href="aim:goim?screenname=themaxxcom">themaxxcom</a><br> </div> <div class="blackbar"></div> </div><? if($c != "comments" && $c != "online" && me()->status() == "admin") { whosOn(); } else if($c == "comments") { if(!array_key_exists("fileid", $_REQUEST) || !is_intger($_REQUEST['fileid'])) { trigger_error("non-numeric fileid!", E_USER_ERROR); } $upload = core_getupload($_REQUEST['fileid']); if($upload->uploader()->id() == me()->id() || me()->status() == "admin") { whosubscribed($upload); } } } // archive <--> bottom restricted block ?> </div> <!-- end left column --> <div id="rightcol"> <? if(isset($downtime)) { $left = $downtime - time(); if($left >= 0 && $left < 14400) { // 4h $message = "tmbo is going "; if(isset($downtime_link)) $message .= "<a href=\"$downtime_link\">"; $message .= "down for maintenance";
/** * @method getupload * Get an upload's metadata, including (if possible) links to the uploaded files themselves, and their thumbnails. * * Calling this function updates your pickuplink. * * @param fileid integer required Get upload with this id. * @return A singleton Upload object or an Error object if upload does not exist. * @example fileid=2 * @example fileid=112 * @see getuploads */ function api_getupload() { global $uploadsql; $arg = check_arg("fileid", "integer"); handle_errors(); send(core_getupload($arg)); }