From: <abe...@us...> - 2012-09-04 21:28:15
|
Revision: 5663 http://astlinux.svn.sourceforge.net/astlinux/?rev=5663&view=rev Author: abelbeck Date: 2012-09-04 21:28:09 +0000 (Tue, 04 Sep 2012) Log Message: ----------- web interface, Network and Edit tabs allow Stunnel Proxy to be Restarted Modified Paths: -------------- branches/1.0/package/webinterface/altweb/admin/edit.php branches/1.0/package/webinterface/altweb/admin/network.php Modified: branches/1.0/package/webinterface/altweb/admin/edit.php =================================================================== --- branches/1.0/package/webinterface/altweb/admin/edit.php 2012-09-04 03:18:06 UTC (rev 5662) +++ branches/1.0/package/webinterface/altweb/admin/edit.php 2012-09-04 21:28:09 UTC (rev 5663) @@ -27,6 +27,7 @@ 'openvpnclient' => 'Restart OpenVPN Client', 'racoon' => 'Restart IPsec VPN', 'pptpd' => 'Restart PPTP VPN Server', + 'stunnel' => 'Restart Stunnel Proxy', 'miniupnpd' => 'Restart Univ. Plug\'n\'Play', 'apcupsd' => 'Restart UPS Daemon', 'zabbix' => 'Restart Zabbix Monitor', @@ -206,6 +207,8 @@ $result = restartPROCESS($process, 35, $result, 'init'); } elseif ($process === 'zabbix') { $result = restartPROCESS($process, 36, $result, 'init', 4); + } elseif ($process === 'stunnel') { + $result = restartPROCESS($process, 37, $result, 'init'); } elseif ($process === 'cron') { $result = updateCRON('root', 30, $result); } @@ -313,6 +316,8 @@ putHtml('<p style="color: green;">UPS Daemon has Restarted.</p>'); } elseif ($result == 36) { putHtml('<p style="color: green;">Zabbix Monitoring has Restarted.</p>'); + } elseif ($result == 37) { + putHtml('<p style="color: green;">Stunnel Proxy has Restarted.</p>'); } elseif ($result == 99) { putHtml('<p style="color: red;">Action Failed.</p>'); } elseif ($result == 999) { Modified: branches/1.0/package/webinterface/altweb/admin/network.php =================================================================== --- branches/1.0/package/webinterface/altweb/admin/network.php 2012-09-04 03:18:06 UTC (rev 5662) +++ branches/1.0/package/webinterface/altweb/admin/network.php 2012-09-04 21:28:09 UTC (rev 5663) @@ -876,6 +876,8 @@ $result = restartPROCESS($process, 35, $result, 'init'); } elseif ($process === 'zabbix') { $result = restartPROCESS($process, 36, $result, 'init', 4); + } elseif ($process === 'stunnel') { + $result = restartPROCESS($process, 37, $result, 'init'); } } else { $result = 2; @@ -946,6 +948,8 @@ putHtml('<p style="color: green;">UPS Daemon has Restarted.</p>'); } elseif ($result == 36) { putHtml('<p style="color: green;">Zabbix Monitoring has Restarted.</p>'); + } elseif ($result == 37) { + putHtml('<p style="color: green;">Stunnel Proxy has Restarted.</p>'); } elseif ($result == 99) { putHtml('<p style="color: red;">Action Failed.</p>'); } elseif ($result == 100) { @@ -1021,6 +1025,8 @@ putHtml('<option value="racoon"'.$sel.'>Restart IPsec VPN</option>'); $sel = ($reboot_restart === 'pptpd') ? ' selected="selected"' : ''; putHtml('<option value="pptpd"'.$sel.'>Restart PPTP VPN Server</option>'); + $sel = ($reboot_restart === 'stunnel') ? ' selected="selected"' : ''; + putHtml('<option value="stunnel"'.$sel.'>Restart Stunnel Proxy</option>'); $sel = ($reboot_restart === 'miniupnpd') ? ' selected="selected"' : ''; putHtml('<option value="miniupnpd"'.$sel.'>Restart Univ. Plug\'n\'Play</option>'); $sel = ($reboot_restart === 'apcupsd') ? ' selected="selected"' : ''; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |