PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: homeCont.php Size: 5.30 KB
/usr/local/lsws/admin/html.6.3.2/service/homeCont.php

<?php

$state = DUtil::getGoodVal(DUtil::grab_input("get","state"));

if($state == 'restarted') {
	echo GUIBase::message('',ucwords(strtolower($product->product)).' has been gracefully restarted.','success');
	$product->refreshVersion();
}
if (!empty($service->messages)) {
    foreach ($service->messages as $msg) {
        echo GUIBase::message('', $msg[1], $msg[0]);
    }
}

$product_info = ucwords(strtolower($product->product));
if ($product->type == 'LSWS')  {
	$product_info .= ' - ' . ucwords(strtolower($product->edition)) . ' Edition';
}
$product_info .= ' - Version <a href="serviceMgr.php?vl=3" title="Version Management">' . ucwords(strtolower($product->version)) . '</a>';

$debug = '';
if ($service->debugOn === true) {
    $debug = '(Currently is ON)';
}
elseif ($service->debugOn === false) {
    $debug = '(Currently is OFF)';
}
else {
    $debug = '(Currently is Unknown)';
}
?>

<h2><?php echo $product_info;?></h2>


<table width="100%" class=xtbl border="0" cellpadding="5" cellspacing="1">
<tr class="xtbl_header"><td class="xtbl_title" colspan="3"><?php echo $service->serv['name'] . ' ( PID = ' . $service->serv['pid'] . ')';?></td></tr>
<tr>
	<td class="xtbl_label">Apply Changes / Graceful Restart</td>
	<td class="xtbl_value icon"><a href="javascript:go('restart','')"><img alt="Apply Changes / Graceful Restart" title="Apply Changes / Graceful Restart" src="/static/images/icons/refresh.gif"></a></td>
	<td class="xtbl_label">Server Log Viewer</td>
	<td class="xtbl_value icon"><a href="/service/serviceMgr.php?vl=1"><img alt="Server Log Viewer" title="Server Log Viewer" src="/static/images/icons/record.gif"></a></td>
</tr>

<tr>
	<td class="xtbl_label">Toggle Debug Logging <?php echo $debug;?></td>
	<td class="xtbl_value icon"><a href="javascript:toggle()"><img alt="Toggle Debug Logging" title="Toggle Debug Logging" src="/static/images/icons/debug.gif"></a></td>
	<td class="xtbl_label">Real-Time Statistics</td>
	<td class="xtbl_value icon"><a href="/service/serviceMgr.php?vl=2"><img alt="Real-Time Statistics" title="Real-Time Statistics" src="/static/images/icons/report.gif"></a></td>
</tr>

<tr>
	<td class="xtbl_label">Restart Detached PHP Processes</td>
	<td class="xtbl_value icon"><a href="javascript:go('RESET_ALL_PHP_PROCESSES', '-')"><img alt="Restart Detached PHP Processes" title="Restart Detached PHP Processes" src="/static/images/icons/refresh.gif"></a></td>
	<td class="xtbl_label">Real-Time Requests Snapshot</td>
	<td class="xtbl_value icon"><a href="/service/serviceMgr.php?vl=4"><img alt="Real-Time Requests Snapshot" title="Real-Time Requests Snapshot" src="/static/images/icons/report.gif"></a></td>
</tr>

</table>


		<table width="100%" class="xtbl" border="0" cellpadding="5" cellspacing="1">
			<tr class="xtbl_header"><td colspan="5" class="xtbl_title">Listeners</td></tr>
			<tr class="xtbl_title2"><td>&nbsp;</td><td>Status</td><td>Name</td><td>Address</td><td>Virtual Host Mappings</td></tr>
<?php
foreach( $service->listeners as $name=>$l )
{
	echo '<tr class="xtbl_value"><td class="icon"><img src="/static/images/icons/link.gif"></td>'."\n";
	if(strtoupper($l['status']) == 'RUNNING') {
		echo '<td width="25" class="status_running">';
	}
	else {
		echo '<td width="25" class="status_stopped>"';
	}

	echo $l['status'].'</td>';

	echo '<td width="120">'.$name . '</td><td>'. $l['addr'].'</td>';

	echo '<td >';

	if ( isset( $l['map'] ) )
	{
		echo '<table border="0" cellpadding="0" cellspacing="0">'."\n";
		foreach( $l['map'] as $vh => $lmap )
		{
			echo '<tr><td class="xtbl_value" style="font-size:11px;">['.$vh.'] ';
			echo( implode(' ', $lmap) );
			echo '</td></tr>';
		}
		echo '</table>' . "\n";
	}
	else
	{
		echo 'N/A';
	}
	echo "</td></tr>\n";
}
?>
		</table>

		<table width="100%" class="xtbl" border="0" cellpadding="5" cellspacing="1">
			<tr class="xtbl_header"><td colspan="4" class="xtbl_title">Virtual Hosts</td></tr>
			<tr class="xtbl_label">
				<td>&nbsp;</td><td>Status</td><td width="120">Name</td><td>Actions</td>
			</tr>
<?php
$vhosts = $service->vhosts;
ksort($vhosts);
foreach( $vhosts as $vh => $value )
{
	echo '<tr class="xtbl_value"><td class="icon"><img src="/static/images/icons/web.gif"></td>';
	$canStart = 0;
	$canStop = 1;
	$canRestart = 1;

	if ($value[1] == 'A') { //in config, not in status
		$canStop = 0;
		$canStart = 0;
		$canRestart = 0;
		echo '<td width="25" nowrap class="status_problem">Restart Required';
	}
	else if ( $value[0] == 1 ) { // active, default case
		echo '<td width="25" class="status_running">Running';
	}
	else {
		$canStart = 1;
		$canStop = 0;
		$canRestart = 0;
		echo '<td width="25" class="status_stopped">Stopped';
	}

	echo '</td>';
	echo '<td >' . $vh . '</td>';
	echo '<td nowrap>';
	if ( $canStart ) {
		echo '<a href="javascript:go('."'enable','$vh'". ')"><img alt="start" title="Enable" src="/static/images/icons/play.gif"></a>';
	}
	if ( $canStop ) {
		echo '<a href="javascript:go('."'disable','$vh'".')"><img alt="stop" title="Disable" src="/static/images/icons/stop.gif"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
	}
	if ( $canRestart ) {
		echo '<a href="javascript:go('."'restart','$vh'". ')"><img alt="restart" title="Restart" src="/static/images/icons/refresh.gif"></a>';
	}
	if ( isset( $service->awstats[$vh] ) )
	echo '<a href="' .  $service->awstats[$vh] . '" target="lswsAccessLogStat">Statistics</a>';
	echo "</td></tr>\n";
}
?>
        </table>

Directory Contents

Dirs: 0 × Files: 11

Name Size Perms Modified Actions
648 B lrw-r--r-- 2025-04-06 18:27:24
Edit Download
7.04 KB lrw-r--r-- 2025-04-06 18:27:24
Edit Download
3.21 KB lrw-r--r-- 2025-04-06 18:27:24
Edit Download
5.30 KB lrw-r--r-- 2025-04-06 18:27:24
Edit Download
2.10 KB lrw-r--r-- 2025-04-06 18:27:24
Edit Download
11.44 KB lrw-r--r-- 2025-04-06 18:27:24
Edit Download
6.89 KB lrw-r--r-- 2025-04-06 18:27:24
Edit Download
634 B lrw-r--r-- 2025-04-06 18:27:24
Edit Download
2.07 KB lrw-r--r-- 2025-04-06 18:27:24
Edit Download
3.42 KB lrw-r--r-- 2025-04-06 18:27:24
Edit Download
525 B lrw-r--r-- 2025-04-06 18:27:24
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI