summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-05 13:22:25 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-05 13:22:25 -0400
commit6daa46be3adac1e84f1a0a5c8b07eca20c89a8a1 (patch)
treeffef104a53ad7d635f8ef7158a408b93e9df077d /usr/local
parent9490c282a34c04f58d7b489fe29ab7f015200d15 (diff)
downloadpfsense-6daa46be3adac1e84f1a0a5c8b07eca20c89a8a1.zip
pfsense-6daa46be3adac1e84f1a0a5c8b07eca20c89a8a1.tar.gz
Automatically source common items so that config is in the eval() context
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/sbin/pfSsh.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/sbin/pfSsh.php b/usr/local/sbin/pfSsh.php
index 973c1dc..16edc84 100755
--- a/usr/local/sbin/pfSsh.php
+++ b/usr/local/sbin/pfSsh.php
@@ -276,7 +276,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) {
OpenPOWER on IntegriCloud