Type 'help' to see a list of commands.
"); } if (file_get_contents("pwd.txt") == NULL) { file_put_contents("pwd.txt", "/"); } $pwd = file_get_contents("pwd.txt"); if (!opendir("fileroot" . $pwd)) { !file_put_contents("pwd.txt", "/"); } if (!opendir("fileroot")) { if (!mkdir("fileroot")) { echo "Error creating directory.No permissions?"; exit(0); } } ?> frame ", FILE_APPEND); $output_str = file_get_contents("recent.txt"); echo $output_str; if ($commands[0] == NULL) { echo ""; exit(0); } if(file_get_contents("commands/$commands[0].php") != NULL){ include "commands/$commands[0].php"; func($commands); } else{ file_put_contents("recent.txt", "Unknown command.
try 'help' or 'help [command]'
", FILE_APPEND); } echo ""; ?>