|
From: <abe...@us...> - 2010-10-21 01:24:27
|
Revision: 4566
http://astlinux.svn.sourceforge.net/astlinux/?rev=4566&view=rev
Author: abelbeck
Date: 2010-10-21 01:24:20 +0000 (Thu, 21 Oct 2010)
Log Message:
-----------
Web interface, Network and Edit tabs, add 'Restart HTTP & HTTPS'
Modified Paths:
--------------
branches/0.7/package/webinterface/altweb/admin/edit.php
branches/0.7/package/webinterface/altweb/admin/network.php
branches/0.7/package/webinterface/altweb/common/version.php
Modified: branches/0.7/package/webinterface/altweb/admin/edit.php
===================================================================
--- branches/0.7/package/webinterface/altweb/admin/edit.php 2010-10-21 01:07:33 UTC (rev 4565)
+++ branches/0.7/package/webinterface/altweb/admin/edit.php 2010-10-21 01:24:20 UTC (rev 4566)
@@ -23,6 +23,7 @@
'dynamicdns' => 'Restart Dynamic DNS',
'ntpd' => 'Restart NTP Time',
'msmtp' => 'Restart SMTP Mail',
+ 'mini_httpd' => 'Restart HTTP & HTTPS',
'racoon' => 'Restart IPsec VPN',
'openvpn' => 'Restart OpenVPN Server',
'openvpnclient' => 'Restart OpenVPN Client',
@@ -192,6 +193,8 @@
$result = restartPROCESS($process, 28, $result, 'init');
} elseif ($process === 'radvd') {
$result = restartPROCESS($process, 32, $result, 'init');
+ } elseif ($process === 'mini_httpd') {
+ $result = restartPROCESS($process, 33, $result, 'init');
} elseif ($process === 'cron') {
$result = updateCRON('root', 30, $result);
}
@@ -287,6 +290,8 @@
putHtml('<p style="color: green;">SMTP Mail has Restarted.</p>');
} elseif ($result == 32) {
putHtml('<p style="color: green;">IPv6 Autoconfig (radvd) has Restarted.</p>');
+ } elseif ($result == 33) {
+ putHtml('<p style="color: green;">HTTP & HTTPS Server has Restarted.</p>');
} elseif ($result == 99) {
putHtml('<p style="color: red;">Action Failed.</p>');
} elseif ($result == 999) {
Modified: branches/0.7/package/webinterface/altweb/admin/network.php
===================================================================
--- branches/0.7/package/webinterface/altweb/admin/network.php 2010-10-21 01:07:33 UTC (rev 4565)
+++ branches/0.7/package/webinterface/altweb/admin/network.php 2010-10-21 01:24:20 UTC (rev 4566)
@@ -730,6 +730,8 @@
$result = restartPROCESS($process, 28, $result, 'init');
} elseif ($process === 'radvd') {
$result = restartPROCESS($process, 32, $result, 'init');
+ } elseif ($process === 'mini_httpd') {
+ $result = restartPROCESS($process, 33, $result, 'init');
}
} else {
$result = 2;
@@ -791,6 +793,8 @@
putHtml('<p style="color: green;">SMTP Mail has Restarted.</p>');
} elseif ($result == 32) {
putHtml('<p style="color: green;">IPv6 Autoconfig (radvd) has Restarted.</p>');
+ } elseif ($result == 33) {
+ putHtml('<p style="color: green;">HTTP & HTTPS Server has Restarted.</p>');
} elseif ($result == 99) {
putHtml('<p style="color: red;">Action Failed.</p>');
} elseif ($result == 100) {
@@ -840,6 +844,8 @@
putHtml('<option value="ntpd"'.$sel.'>Restart NTP Time</option>');
$sel = ($reboot_restart === 'msmtp') ? ' selected="selected"' : '';
putHtml('<option value="msmtp"'.$sel.'>Restart SMTP Mail</option>');
+ $sel = ($reboot_restart === 'mini_httpd') ? ' selected="selected"' : '';
+ putHtml('<option value="mini_httpd"'.$sel.'>Restart HTTP & HTTPS</option>');
$sel = ($reboot_restart === 'racoon') ? ' selected="selected"' : '';
putHtml('<option value="racoon"'.$sel.'>Restart IPsec VPN</option>');
$sel = ($reboot_restart === 'openvpn') ? ' selected="selected"' : '';
Modified: branches/0.7/package/webinterface/altweb/common/version.php
===================================================================
--- branches/0.7/package/webinterface/altweb/common/version.php 2010-10-21 01:07:33 UTC (rev 4565)
+++ branches/0.7/package/webinterface/altweb/common/version.php 2010-10-21 01:24:20 UTC (rev 4566)
@@ -1,6 +1,6 @@
<?php
// version.php for AstLinux Alternate Web Interface
-$GUI_VERSION = '1.7.02';
+$GUI_VERSION = '1.7.03';
?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|