<?php

// skip this as it's handled by folder passwords in Reservo
$file = file::loadByShortUrl($_REQUEST['file']);
if(!$file)
{
	// on failure
	coreFunctions::redirect(WEB_ROOT);
}

// assume ok for core code
$_SESSION['allowAccess' . $file->id] = true;
coreFunctions::redirect(file::getFileUrl($file->id));
