Declare $config as global before interactive PHP shell command evaluation. Fixes #808
The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.Replacing it surpresses all the warnings
Add a few more commands for the lazy
Add tab completion
Automatically source common items so that config is in the eval() context
Output welcome banner after globals.inc is required
Turn off debugging text
Use product_name
Break out item that can be its own function
Require_once instead of require.
Show playback commands avaiable
Remove extra C/R
Detect playback file not found when passed as argument. Example: pfSsh.php replay cvssync RELENG_1
Allow arguments to be passed to cvssync so you can do:
pfSsh.php playback cvssync RELENG_1
Allow arguments to be passed to the pfSense php shell.
Bring us one step closer to being able to port cvs_sync.sh to pfSsh by adding multiline support. For example
Do not forget ; on php lines.
Collect the help file into one variable and then pipe through more()
Add recording related commands
Really cleanup c/r usage.
Add showrecordings command which will show available sessions for playback
Teach pfSense's php shell how to record and playback a set of commands.
For instance you could automate a series of reptitive developer commands. For example:
pfSense shell: record restartftppfSense shell: = killall ftp-proxypfSense shell: system_start_ftp_helpers();...
Add carriage return after outputting help screen
Remove debugging echo
Add pipe_cmd() function
Missed a c/r
If readline is not included in PHP then fall back to normal boring text input methods.
Add second argument of more allowing control of when press Return is displayed
add more($text) function. With this function it will ask the person to press return after 24 rows of output. Good for stuff like this:
$temp = print_r($config, true);more($temp);
Add libreadline support for command histories.
Requested-by: CMB
Set $pkg_interface='console'; in php shell.
Move help / common usage scenarios to the "help" command.
Show how to output the wireless options such as channels, modes, etc.
Clarify DHCP server comment
Show the reboot command as well for php pfSense shell
Sponsored-by: Bluegrass.net
Minor text updates
Show common commands in the php pfsense shell such as:
These commands come in handy when configuring a 1 port ethernet wrap with 2 wireless cards.
Add multiline support for multi-line mini programs/scripts.
Show that exit is a valid command
Escape $ so that it does not try to print out the variable
Add a pfSense interactive php shell for developers.