diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-10-05 13:20:02 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-10-05 13:20:10 -0400 |
commit | 8586a962022b11a791baa0e9184f49c5156850f1 (patch) | |
tree | 61bb3069ef40e969ad24043e8ef4e7ec85cd809c /usr/local | |
parent | 2342bfb0f9250fadf1aa88f7e5a15144febc75aa (diff) | |
download | pfsense-8586a962022b11a791baa0e9184f49c5156850f1.zip pfsense-8586a962022b11a791baa0e9184f49c5156850f1.tar.gz |
Automatically source common items so that config is in the eval() context
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/sbin/pfSsh.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/sbin/pfSsh.php b/usr/local/sbin/pfSsh.php index 9c6cb6d..1e124bc 100755 --- a/usr/local/sbin/pfSsh.php +++ b/usr/local/sbin/pfSsh.php @@ -284,7 +284,9 @@ function str_replace_all($search,$replace,$subject) { function playback_text($playback_file_contents) { $playback_file_split = split("\n", $playback_file_contents); - $playback_text = ""; + $playback_text = "require_once('functions.inc');\n"; + $playback_text .= "require_once('globals.inc');\n"; + $playback_text .= "require_once('config.inc');\n"; $toquote = '"'; $toquotereplace = '\\"'; foreach($playback_file_split as $pfs) { |