diff options
author | smos <seth.mos@dds.nl> | 2012-01-19 20:33:41 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-01-19 20:33:41 +0100 |
commit | cfbfd9412b70bda8c34127b8b7dfdceff4872390 (patch) | |
tree | 465ee07c80898171a4cc41a6ac82d9133012797d /usr/local/sbin | |
parent | 80c88a686d0e56b2f2ad774da05debb1a2afba47 (diff) | |
download | pfsense-cfbfd9412b70bda8c34127b8b7dfdceff4872390.zip pfsense-cfbfd9412b70bda8c34127b8b7dfdceff4872390.tar.gz |
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
Diffstat (limited to 'usr/local/sbin')
-rwxr-xr-x | usr/local/sbin/pfSsh.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/sbin/pfSsh.php b/usr/local/sbin/pfSsh.php index a73e7de..ac4a56a 100755 --- a/usr/local/sbin/pfSsh.php +++ b/usr/local/sbin/pfSsh.php @@ -56,7 +56,7 @@ if(!function_exists("readline")) { function more($text, $count=24) { $counter=0; - $lines = split("\n", $text); + $lines = explode("\n", $text); foreach($lines as $line) { if($counter > $count) { echo "Press RETURN to continue ..."; @@ -211,7 +211,7 @@ $tccommands[] = "RELENG_1_2"; while($shell_active == true) { $command = readline("{$g['product_name']} shell: "); readline_add_history($command); - $command_split = split(" ", $command); + $command_split = explode(" ", $command); $first_command = $command_split[0]; if($first_command == "playback" || $first_command == "run") { $playback_file = $command_split[1]; @@ -310,7 +310,7 @@ function str_replace_all($search,$replace,$subject) { } function playback_text($playback_file_contents) { - $playback_file_split = split("\n", $playback_file_contents); + $playback_file_split = explode("\n", $playback_file_contents); $playback_text = "require_once('functions.inc');\n"; $playback_text .= "require_once('globals.inc');\n"; $playback_text .= "require_once('config.inc');\n"; @@ -339,4 +339,4 @@ function playback_file($playback_file) { playback_text($playback_file_contents); } -?>
\ No newline at end of file +?> |