// dropbox filepaths setup for us, beyond simply needing our // configuration! // //echo "fghj"; require "../config/preferences.php"; require_once NSSDROPBOX_LIB_DIR . "Smartyconf.php"; require_once NSSDROPBOX_LIB_DIR . "NSSDropbox.php"; if ($theDropbox = new NSSDropbox($NSSDROPBOX_PREFS)) { // // This page handles several actions. By default, it simply // presents whatever "main menu" is appropriate. This page also // handles the presentation of the login "dialog" and subsequently // the logout facility. // // Find if they are an onsite-user or not, so we can show them to login. $smarty->assign('isLocalIP', $theDropbox->isLocalIP()); // These 2 are needed for the intro text on the home page $smarty->assign('maxFileSize', NSSFormattedMemSize($theDropbox->maxBytesForFile())); $smarty->assign('keepForDays', $NSSDROPBOX_PREFS['numberOfDaysToRetain']); switch (isset($_GET['action']) ? $_GET['action'] : (isset($_POST['action']) ? $_POST['action'] : '')) { case 'login': $aU = $theDropbox->authorizedUser(); if ($aU) { $theDropbox->SetupPage(); $smarty->display('main_menu.tpl'); } else { $theDropbox->SetupPage(); //"login.uname"); $smarty->display('login.tpl'); } break;