From 8c4c46c3c2aa31ad0f279521f99769135a31fb1c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 22 Nov 2007 00:32:17 +0000 Subject: Add showrecordings command which will show available sessions for playback --- usr/local/sbin/pfSsh.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'usr') 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"; -- cgit v1.1