Esempio n. 1
0
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;
}
Esempio n. 2
0
function parse_verbose($verbose, $arg)
{
    /* 	parse_verbose()
    	@params mixed $verbose runtime argument array
    	@params string $arg variable name that contains verbose setting 
    */
    global $settings;
    check_arg($verbose, $arg);
    $settings['verbose'] = FALSE;
    if (isset($verbose[$arg])) {
        $settings['verbose'] = TRUE;
    }
}
Esempio n. 3
0
	/**
	 * @method resetsubscription
	 *
	 * Reset your subscription to a thread. New posts made to the thread after this call will cause the subscription to become active again.
	 *
	 * @param threadid integer required Reset the subscription to this thread.
	 * @return true if reset, false if no subscription or upload does not exist.
	 * @example threadid=309779
	 * @see subscribe
	 * @see unreadcomments
	 */
	function api_resetsubscription() {
		$threadid = check_arg("threadid", "integer");
		handle_errors();
		
		send(id(new Upload($threadid))->clearSubscription());
	}