diff options
author | Ermal <eri@pfsense.org> | 2010-08-31 18:02:47 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-31 18:02:47 +0000 |
commit | aa79a72151e03944519dae83d34157fa8a448cf8 (patch) | |
tree | 25549f9cb47b762a56f31d5af70b6dff7e99b987 /usr/local | |
parent | 0349e09d23dc09e86600fc9cbe675e242b0a3dd4 (diff) | |
download | pfsense-aa79a72151e03944519dae83d34157fa8a448cf8.zip pfsense-aa79a72151e03944519dae83d34157fa8a448cf8.tar.gz |
More fixes to openvpn to catch up with latest changes.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/status_services.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php index 28654b2..ede7d5f 100755 --- a/usr/local/www/status_services.php +++ b/usr/local/www/status_services.php @@ -131,11 +131,11 @@ if($_GET['mode'] == "startservice" and !empty($_GET['service'])) { break; case 'openvpn': $vpnmode = $_GET['vpnmode']; - if (($vpnmode == "server") or ($vpnmode == "client")) { + if (($vpnmode == "server") || ($vpnmode == "client")) { $id = $_GET['id']; if (is_numeric($id)) { - $configfile = $g['varetc_path'] . "/openvpn_{$vpnmode}{$id}.conf"; - mwexec_bg("/usr/local/sbin/openvpn --config $configfile"); + $configfile = "{$g['varetc_path']}/openvpn/{$vpnmode}{$id}.conf"; + mwexec_bg("/usr/local/sbin/openvpn --config {$configfile}"); } } break; @@ -188,7 +188,7 @@ if($_GET['mode'] == "stopservice" && !empty($_GET['service'])) { if (($vpnmode == "server") or ($vpnmode == "client")) { $id = $_GET['id']; if (is_numeric($id)) { - $pidfile = $g['varrun_path'] . "/openvpn_{$vpnmode}{$id}.pid"; + $pidfile = "{$g['varrun_path']}/openvpn_{$vpnmode}{$id}.pid"; killbypid($pidfile); } } @@ -197,7 +197,7 @@ if($_GET['mode'] == "stopservice" && !empty($_GET['service'])) { stop_service($_GET['service']); break; } - $savemsg = sprintf(gettext("%s has been stopped."),$_GET['service']); + $savemsg = sprintf(gettext("%s has been stopped."), $_GET['service']); sleep(5); } |