diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-11 16:10:04 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-11 16:10:04 +0000 |
commit | 1ab20834195ed87e39b01840026e8b946f2c4835 (patch) | |
tree | 7c3ff51c99a7f170fb640a2c1fe35a20f0f8540c /usr | |
parent | 8728dfcf17d6966c2e743153e6d2b7640b5732e3 (diff) | |
download | pfsense-1ab20834195ed87e39b01840026e8b946f2c4835.zip pfsense-1ab20834195ed87e39b01840026e8b946f2c4835.tar.gz |
Do not define redeclare execute_command_return_output() in this file.
It has been moved to pfsense-utils.inc.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/vpn_openvpn_create_certs.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/usr/local/www/vpn_openvpn_create_certs.php b/usr/local/www/vpn_openvpn_create_certs.php index 504d4e6..ae7def9 100755 --- a/usr/local/www/vpn_openvpn_create_certs.php +++ b/usr/local/www/vpn_openvpn_create_certs.php @@ -43,39 +43,6 @@ function get_file_contents($filename) { return "File not found " . $filename; } -function execute_command_return_output($command) { - $fd = popen($command . " 2>&1 ", "r"); - echo "\n<script language=\"JavaScript\">this.document.forms[0].output.value = \"\";</script>"; - $counter = 0; - $counter2 = 0; - while(!feof($fd)) { - $tmp = fread($fd,49); - $tmp1 = ereg_replace("\n","\\n", $tmp); - $text = ereg_replace("\"","'", $tmp1); - if($lasttext == "..") { - $text = ""; - $lasttext = ""; - $counter=$counter-2; - } else { - $lasttext .= $text; - } - if($counter > 51) { - $counter = 0; - $extrabreak = "\\n"; - } else { - $extrabreak = ""; - $counter++; - } - if($counter2 > 600) { - echo "\n<script language=\"JavaScript\">this.document.forms[0].output.value = \"\";</script>"; - $counter2 = 0; - } else - $counter2++; - echo "\n<script language=\"JavaScript\">this.document.forms[0].output.value = this.document.forms[0].output.value + \"" . $text . $extrabreak . "\"; f('output'); </script>"; - } - fclose($fd); -} - $fd = fopen("/etc/ssl/openssl.cnf", "r"); $openssl = fread($fd,8096); fclose($fd); |