$item) { if (strlen($k) == 32) { $loggedInHash = $k; } } // only keep the initial part if there's a forward slash $shortUrl = current(explode("/", str_replace("~i", "", $_REQUEST['_page_url']))); $file = file::loadByShortUrl($shortUrl); // check whether we can display the delete/password options $showAll = false; if ($file->deleteHash == $loggedInHash) { $showAll = true; } // double check the owner for logged in user if (($showAll == false) && ($file)) { if ($file->userId == $Auth->id) { $showAll = true; } } } // load file details if (!$file) { /* if no file found, redirect to home page */ coreFunctions::redirect(WEB_ROOT . "/index." . SITE_CONFIG_PAGE_EXTENSION); } // only show this page if active file if ($file->statusId != 1) { // redirect to file in order to show error coreFunctions::redirect($file->getFullShortUrl()); } // setup page define("PAGE_NAME", $file->originalFilename . ' ' . t("file_information_page_name", "")); define("PAGE_DESCRIPTION", t("file_information_description", "Information about") . ' ' . $file->originalFilename); define("PAGE_KEYWORDS", strtolower($file->originalFilename) . t("file_information_meta_keywords", ", share, information, file, upload, download, site")); // include header require_once(SITE_TEMPLATES_PATH . '/partial/_header.inc.php'); ?>
: | originalFilename, null, 70); ?> () id != $file->userId): ?> () |
: | fileSize); ?> |
: | getFullShortUrl()); ?> |
: | getHtmlLinkCode(); ?> |
getForumLinkCode(); ?> |