summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-22 00:32:17 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-22 00:32:17 +0000
commit8c4c46c3c2aa31ad0f279521f99769135a31fb1c (patch)
treed3664a1df3193d15fb7021c85187953b4cdb8302 /usr
parent5c5abb91e3348589dbfab70c78aa7ee5d2d18aa8 (diff)
downloadpfsense-8c4c46c3c2aa31ad0f279521f99769135a31fb1c.zip
pfsense-8c4c46c3c2aa31ad0f279521f99769135a31fb1c.tar.gz
Add showrecordings command which will show available sessions for playback
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/sbin/pfSsh.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/sbin/pfSsh.php b/usr/local/sbin/pfSsh.php
index 6130c61..6725047 100755
--- a/usr/local/sbin/pfSsh.php
+++ b/usr/local/sbin/pfSsh.php
@@ -238,6 +238,16 @@ while($shell_active == true) {
$command = "";
}
}
+ if($command_split[0] == "showrecordings") {
+ conf_mount_rw();
+ safe_mkdir("/etc/phpshellsessions");
+ if($recording)
+ conf_mount_ro();
+ echo "\n==> Sessions available for playback are:\n\n";
+ system("cd /etc/phpshellsessions && ls /etc/phpshellsessions");
+ echo "\n==> end of list.\n";
+ $command = "";
+ }
if($command_split[0] == "record") {
if(!$command_split[1]) {
echo "usage: record playbackname\n";
OpenPOWER on IntegriCloud