requireUser(WEB_ROOT . '/login.' . SITE_CONFIG_PAGE_EXTENSION); /* remove fileFolder */ if (isset($_REQUEST['d'])) { if (_CONFIG_DEMO_MODE == true) { notification::setError(t("no_changes_in_demo_mode")); } if (!notification::isErrors()) { $fileFolder = fileFolder::loadById($_REQUEST['d']); if ($fileFolder) { /* check user id */ if ($fileFolder->userId == $Auth->id) { $fileFolder->removeByUser(); } } } } /* setup page */ define("PAGE_NAME", t("account_folder_name", "File Folders")); define("PAGE_DESCRIPTION", t("account_folder_meta_description", "Your File Folders")); define("PAGE_KEYWORDS", t("account_folder_meta_keywords", "file, folders, home, file, your, interface, upload, download, site")); // include header require_once(SITE_TEMPLATES_PATH . '/partial/_header.inc.php'); // load all fileFolder for this account $fileFolders = fileFolder::loadAllByAccount($Auth->id); ?>

You have folder within your account. Use the table below to manage existing folders or click here to create a new one. You have no folders within your account. Click here to create one.

'; echo ''; echo ''; echo '' . t('folder_name', 'Folder Name:') . ''; echo '' . t('sharing_url', 'Sharing Url:') . ''; echo '' . t('active_files', 'Active Files:') . ''; echo '' . t('is_public', 'Public:') . ''; echo '' . t('options', 'Options:') . ''; echo ''; echo ''; foreach ($fileFolders AS $fileFolder) { // get total active files $allFiles = file::loadAllActiveByFolderId($fileFolder['id']); $totalFiles = COUNT($allFiles); $icon = 'folder'; if (strlen($fileFolder['accessPassword']) > 0) { $icon = 'folder_lock'; } elseif ($totalFiles > 0) { $icon = 'folder_full'; } // output row echo ''; echo ''; echo ' '; echo ''; echo ''; echo ''; echo htmlentities($fileFolder['folderName']); echo ''; echo ''; echo ''; echo '' . $fileFolder['id'] . '~f'; echo $fileFolder['isPublic'] == 1 ? '  (' . t('public_link', 'public link') . ')' : ''; echo ''; echo ''; echo $totalFiles; echo ''; echo ''; echo $fileFolder['isPublic'] == 1 ? t('public_yes', 'yes') : t('public_no', 'no'); echo ''; $links = array(); $links[] = ''; $links[] = ''; echo '' . implode(" ", $links) . ''; echo ''; } echo ''; echo ''; } ?>