printLogin($vbphrase['vr_login_failed']); } } else { printLogin($vbphrase['vr_login_failed']); } } } // ######################## UPLOAD FILES ############################## if ($_REQUEST['do'] == 'upload') { if (!$soap_installed) { print_cp_header($vbphrase['verticalresponse']); echo $vbphrase['no_soap_client_desc']; } else { if ($sessionid) { require_once DIR . '/vb/verticalresponse.php'; printUpload($sessionid); } else { printLogin($vbphrase['vr_login_first_desc']); } } } // ######################## UPLOAD FILES ############################## if ($_REQUEST['do'] == 'confirm_upload') { if (!$soap_installed) { print_cp_header($vbphrase['verticalresponse']); echo $vbphrase['no_soap_client_desc']; } else { if ($sessionid) { require_once DIR . '/vb/verticalresponse.php'; doConfirmUpload($sessionid); }
} } echo "</select><br>"; echo "<input type='file' name='uploadFile'><br>"; echo "<input type='submit' value='Upload'>"; echo "</form>"; } session_start(); include 'config.php'; include 'auth.php'; $fileStorage = $fileStorageDirectory; if (isset($_SESSION['time']) && time() - $_SESSION['time'] > $maxSessionTime) { header('Location: /logout.php'); exit; } if (isset($_SESSION['user'])) { echo "<html>"; #echo("You are Logged In!" . "<br>"); #echo("<br> Available Files:"); $dirList[] = NULL; echo "<div class='container'>"; echo "<img class='banner'src='/kwood.jpg'></img>"; echo '<h3>Welcome ' . ucfirst($_SESSION['user']) . ", to the Team3 File Server!</h3>"; echo "<div class='middleBox'>"; printFiles($fileStorage); printUpload($dirList); echo "<br><a href=logout.php>Logout</a>"; echo "</div></div></hmtl>"; } else { header('Location: /index.php'); }