summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-30 07:13:33 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-30 07:13:33 +0000
commitb1de6b8b14f713196824927a6493ac41ea819d6b (patch)
treef792ca734f2fe54d656b878abd15d8de29d91a9a /usr/local/sbin
parentba363183a865de0ff89a6e3dca3f0fa0718c3ff0 (diff)
downloadpfsense-b1de6b8b14f713196824927a6493ac41ea819d6b.zip
pfsense-b1de6b8b14f713196824927a6493ac41ea819d6b.tar.gz
Show playback commands avaiable
Diffstat (limited to 'usr/local/sbin')
-rwxr-xr-xusr/local/sbin/pfSsh.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/sbin/pfSsh.php b/usr/local/sbin/pfSsh.php
index 0363360..60da896 100755
--- a/usr/local/sbin/pfSsh.php
+++ b/usr/local/sbin/pfSsh.php
@@ -160,7 +160,14 @@ $shell_active = true;
if($argc < 2) {
echo "Welcome to the pfSense php shell system\n";
echo "Written by Scott Ullrich (sullrich@gmail.com)\n";
- echo "\nType \"help\" to show common usage scenarios.\n\n";
+ echo "\nType \"help\" to show common usage scenarios.\n";
+ echo "\nAvailable playback commands:\n ";
+ $files = scandir("/etc/phpshellsessions/");
+ foreach($files as $file) {
+ if($file <> "." and $file <> "..")
+ echo $file . " ";
+ }
+ echo "\n\n";
}
$recording = false;
@@ -302,3 +309,4 @@ function playback_file($playback_file) {
playback_text($playback_file_contents);
}
+?> \ No newline at end of file
OpenPOWER on IntegriCloud