diff --git a/lib/terminal-xhr.php b/lib/terminal-xhr.php index 909b6c7..117c337 100644 --- a/lib/terminal-xhr.php +++ b/lib/terminal-xhr.php @@ -18,6 +18,7 @@ $aliases = array( ); // Get current working dir +$user = str_replace("\n","",shell_exec("whoami")); $cwd = getcwd(); // If we have a command @@ -28,7 +29,10 @@ if(!empty($_REQUEST['command'])) { } // Begin output with prompt and user command - $output = "".$cwd."\n$> ".$_REQUEST['command']."\n\n"; + $output = '
  '.$user.' 
'. + '
 '.$cwd.' 
: '.date("H:m:s"). + '
'. + '
'.$_REQUEST['command'].'


'; } // If in demo mode, display message and go no further