summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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