'; // Figure out what needs to be displayed on the terminal if (!isset($_POST['c'])) { $_POST['c'] = ''; } ob_start(); if ($_POST['c'] == 'clear') { lts_chdir('.'); } else { if (isset($_POST['stdout'])) { echo htmlentities($_POST['stdout']); } echo $_POST['c']."\n"; lts_shell_exec($_POST['c'],$env); echo '$ '; } $term = ob_get_contents(); ob_end_flush(); // prompt echo ''; echo ''; echo ''; ?>