Chris Buechler
f643a1f131
clean up text
2014-11-04 18:02:09 -06:00
jim-p
bde982dd5a
Declare $config as global before interactive PHP shell command evaluation. Fixes #808
2013-02-12 14:01:11 -05:00
smos
cfbfd9412b
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
2012-01-19 20:33:41 +01:00
sullrich
e788b01d9a
Add a few more commands for the lazy
2009-12-02 21:06:11 -05:00
sullrich
f6907eb40b
Add tab completion
2009-12-02 21:03:02 -05:00
Scott Ullrich
8586a96202
Automatically source common items so that config is in the eval() context
2009-10-05 13:20:10 -04:00
Scott Ullrich
eb95ba843a
Output welcome banner after globals.inc is required
2008-11-23 00:00:19 +00:00
Scott Ullrich
4c1817bd4c
Turn off debugging text
2008-11-20 01:25:59 +00:00
Scott Ullrich
b9e3a295e8
Use product_name
2008-11-10 04:12:31 +00:00
Scott Ullrich
4c12ef0a4f
Break out item that can be its own function
2008-10-24 00:32:46 +00:00
Scott Ullrich
8a7712ea5d
Require_once instead of require.
2008-09-10 19:59:44 +00:00
Scott Ullrich
b1de6b8b14
Show playback commands avaiable
2008-08-30 07:13:33 +00:00
Scott Ullrich
9f2820d888
* Fix help
...
* Fix exit/quit
2008-04-14 17:31:33 +00:00
Scott Ullrich
e5b3e76789
Remove extra C/R
2007-11-24 05:02:32 +00:00
Scott Ullrich
47643f5b08
Detect playback file not found when passed as argument. Example: pfSsh.php replay cvssync RELENG_1
2007-11-23 22:36:17 +00:00
Scott Ullrich
96ebb0a6b6
Allow arguments to be passed to cvssync so you can do:
...
pfSsh.php playback cvssync RELENG_1
2007-11-23 07:57:22 +00:00
Scott Ullrich
415c850d1a
Allow arguments to be passed to the pfSense php shell.
2007-11-23 06:07:38 +00:00
Scott Ullrich
93a3d24231
Bring us one step closer to being able to port cvs_sync.sh to pfSsh by adding multiline support. For example
2007-11-23 04:03:35 +00:00
Scott Ullrich
00ea455f0f
Do not forget ; on php lines.
2007-11-22 06:47:17 +00:00
Scott Ullrich
328ab0aef4
Collect the help file into one variable and then pipe through more()
2007-11-22 06:22:15 +00:00
Scott Ullrich
02105da42b
Add recording related commands
2007-11-22 06:14:41 +00:00
Scott Ullrich
60ff86015d
Collect the help file into one variable and then pipe through more()
2007-11-22 06:12:48 +00:00
Scott Ullrich
da30a386c9
Really cleanup c/r usage.
2007-11-22 01:26:28 +00:00
Scott Ullrich
f9fd2b14d4
* Fix ! commands (do not echo commands but execute as shell)
...
* Fix grep commands in playback session for restart ftp helper
2007-11-22 01:04:35 +00:00
Scott Ullrich
8c4c46c3c2
Add showrecordings command which will show available sessions for playback
2007-11-22 00:32:17 +00:00
Scott Ullrich
a07fbc84de
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 restartftp
pfSense shell: = killall ftp-proxy
pfSense shell: system_start_ftp_helpers();
pfSense shell: = ps awux | grep ftp-proxy
pfSense shell: stoprecording
And then you could replay the above commands later with:
pfSense shell: playback restartftp
2007-11-22 00:09:25 +00:00
Scott Ullrich
34af0cab0a
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 restartftp
pfSense shell: = killall ftp-proxy
pfSense shell: system_start_ftp_helpers();
pfSense shell: = ps awux | grep ftp-proxy
pfSense shell: stoprecording
And then you could replay the above commands later with:
pfSense shell: playback restartftp
2007-11-22 00:05:49 +00:00
Scott Ullrich
1988691378
Add carriage return after outputting help screen
2007-11-19 20:38:34 +00:00
Scott Ullrich
376807d71b
Remove debugging echo
2007-11-19 20:23:38 +00:00
Scott Ullrich
50fa05d113
Add pipe_cmd() function
2007-11-19 05:38:34 +00:00
Scott Ullrich
7aa6eee621
Missed a c/r
2007-11-19 04:30:51 +00:00
Scott Ullrich
7116ab7f87
* Allow shell commands to be executed if you proceed the command with =
...
* Clean up carriage returns and make presentation look nicer
2007-11-19 04:30:04 +00:00
Scott Ullrich
3d3be83663
If readline is not included in PHP then fall back to normal boring text input methods.
2007-11-19 03:23:01 +00:00
Scott Ullrich
cd8ca22fad
Add second argument of more allowing control of when press Return is displayed
2007-11-19 02:57:27 +00:00
Scott Ullrich
5003c48ab4
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);
2007-11-19 02:52:30 +00:00
Scott Ullrich
ebe2951eb6
Add libreadline support for command histories.
...
Requested-by: CMB
2007-11-09 02:09:35 +00:00
Scott Ullrich
1b8a2f5cf7
Set $pkg_interface='console'; in php shell.
2007-08-28 19:19:15 +00:00
Scott Ullrich
46d5398808
Move help / common usage scenarios to the "help" command.
2007-05-03 05:42:59 +00:00
Scott Ullrich
4fca174c22
Show how to output the wireless options such as channels, modes, etc.
2007-05-03 04:51:41 +00:00
Scott Ullrich
94e2459b14
Clarify DHCP server comment
2007-05-03 04:17:47 +00:00
Scott Ullrich
8ea3c32971
* Correct printr typo.
* Show how to output the interfaces and dhcpd portions of the configuration
2007-05-03 03:55:04 +00:00
Scott Ullrich
c64bccc058
Show the reboot command as well for php pfSense shell
Sponsored-by: Bluegrass.net
2007-05-03 03:49:36 +00:00
Scott Ullrich
73b2c79937
Minor text updates
2007-05-03 03:38:46 +00:00
Scott Ullrich
2ae831274d
Minor text updates
2007-05-03 03:37:56 +00:00
Scott Ullrich
03b85ded5b
Show common commands in the php pfsense shell such as:
* Enabling SSH
* Enabling wireless on an interface (hostap, channel, ssid, etc)
* Enabling DHCP Server on an interface
* Disable firewall filter
* Set up an interface for DHCP and enable
* Set up an interface for static and enable
These commands come in handy when configuring a 1 port ethernet wrap with 2 wireless cards.
Sponsored-by: Bluegrass.net
2007-05-03 03:32:40 +00:00
Scott Ullrich
40a1b7af90
Add multiline support for multi-line mini programs/scripts.
2007-04-30 00:51:48 +00:00
Scott Ullrich
123bfdac65
Show that exit is a valid command
2007-04-29 23:58:37 +00:00
Scott Ullrich
6855dff019
Escape $ so that it does not try to print out the variable
2007-04-29 23:51:35 +00:00
Scott Ullrich
d776e07789
Add a pfSense interactive php shell for developers.
2007-04-29 23:49:37 +00:00