originalFilename.' '.t('on', 'on').' '.SITE_CONFIG_SITE_NAME, 0, 150)); define("PAGE_OG_SITE_NAME", SITE_CONFIG_SITE_NAME); // don't show thumbnail if the album is private or has a password if((int)$file->folderId) { // check for password $folderPassword = null; $folder = fileFolder::loadById($file->folderId); if($folder) { $folderPassword = $folder->accessPassword; } // check for privacy $public = true; if(((int)$folder->userId > 0) && ($folder->userId != $Auth->id)) { if(coreFunctions::getOverallPublicStatus($folder->userId, $folder->id) == false) { $public = false; } } if(($public == true) && ($folderPassword != true)) { define("PAGE_OG_IMAGE", file::getIconPreviewImageUrl((array) $file, false, 64, false, 280, 280, 'middle')); } } } } // redirect if user not logged in and not requesting a file if(($Auth->loggedIn() == false) && ($file == false)) { coreFunctions::redirect(WEB_ROOT.'/login.'.SITE_CONFIG_PAGE_EXTENSION); } // page OG info (for facebook) define("PAGE_OG_TITLE", t("folder_page_name", "Folder")); define("PAGE_OG_SITE_NAME", SITE_CONFIG_SITE_NAME); define("PAGE_OG_DESCRIPTION", PAGE_DESCRIPTION); // include header require_once(SITE_TEMPLATES_PATH . '/partial/_header.inc.php'); // file manager javascript require_once(SITE_TEMPLATES_PATH . '/partial/_account_home_javascript.inc.php'); ?>