Subversion Repositories ALCASAR

Rev

Rev 2491 | Rev 2521 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2491 Rev 2492
Line 169... Line 169...
169
$MainServiceStatus['radiusd'] = checkServiceStatus("radiusd");
169
$MainServiceStatus['radiusd'] = checkServiceStatus("radiusd");
170
$MainServiceStatus['chilli'] = checkServiceStatus("chilli");
170
$MainServiceStatus['chilli'] = checkServiceStatus("chilli");
171
$MainServiceStatus['mysqld'] = checkServiceStatus("mysqld");
171
$MainServiceStatus['mysqld'] = checkServiceStatus("mysqld");
172
$MainServiceStatus['lighttpd'] = checkServiceStatus("lighttpd");
172
$MainServiceStatus['lighttpd'] = checkServiceStatus("lighttpd");
173
$MainServiceStatus['dnsmasq'] = checkServiceStatus("dnsmasq");
173
$MainServiceStatus['dnsmasq'] = checkServiceStatus("dnsmasq");
174
$MainServiceStatus['ulogd_ssh'] = checkServiceStatus("ulogd-ssh");
174
$MainServiceStatus['ulogd-ssh'] = checkServiceStatus("ulogd-ssh");
175
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
175
$MainServiceStatus['ulogd-ext-access'] = checkServiceStatus("ulogd-ext-access");
176
$MainServiceStatus['ulogd_traceability'] = checkServiceStatus("ulogd-traceability");
176
$MainServiceStatus['ulogd-traceability'] = checkServiceStatus("ulogd-traceability");
177
$MainServiceStatus['nfsen'] = checkServiceStatus("nfsen");
177
$MainServiceStatus['nfsen'] = checkServiceStatus("nfsen");
178
$MainServiceStatus['fail2ban'] = checkServiceStatus("fail2ban");
178
$MainServiceStatus['fail2ban'] = checkServiceStatus("fail2ban");
179
$MainServiceStatus['vnstat'] = checkServiceStatus("vnstat");
179
$MainServiceStatus['vnstat'] = checkServiceStatus("vnstat");
180
 
180
 
181
$FilterServiceStatus = array();
181
$FilterServiceStatus = array();
182
$FilterServiceStatus['dnsmasq_blacklist'] = checkServiceStatus("dnsmasq-blacklist");
182
$FilterServiceStatus['dnsmasq-blacklist'] = checkServiceStatus("dnsmasq-blacklist");
183
$FilterServiceStatus['dnsmasq_whitelist'] = checkServiceStatus("dnsmasq-whitelist");
183
$FilterServiceStatus['dnsmasq-whitelist'] = checkServiceStatus("dnsmasq-whitelist");
184
$FilterServiceStatus['dnsmasq_blackhole'] = checkServiceStatus("dnsmasq-blackhole");
184
$FilterServiceStatus['dnsmasq-blackhole'] = checkServiceStatus("dnsmasq-blackhole");
185
$filterServiceStatus['dansguardian'] = checkServiceStatus("dansguardian");
185
$filterServiceStatus['dansguardian'] = checkServiceStatus("dansguardian");
186
$FilterServiceStatus['havp'] = checkServiceStatus("havp");
186
$FilterServiceStatus['havp'] = checkServiceStatus("havp");
187
$FilterServiceStatus['tinyproxy'] = checkServiceStatus("tinyproxy");
187
$FilterServiceStatus['tinyproxy'] = checkServiceStatus("tinyproxy");
188
$FilterServiceStatus['freshclam'] = checkServiceStatus("freshclam");
188
$FilterServiceStatus['freshclam'] = checkServiceStatus("freshclam");
189
 
189
 
Line 212... Line 212...
212
	<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"><?php echo $l_service_title;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr>
212
	<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"><?php echo $l_service_title;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr>
213
<?php foreach( $MainServiceStatus as $serviceName => $statusOK ) { ?>
213
<?php foreach( $MainServiceStatus as $serviceName => $statusOK ) { ?>
214
<tr>
214
<tr>
215
	<?php if ($statusOK) { ?>
215
	<?php if ($statusOK) { ?>
216
    <td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
216
    <td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
217
	<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
217
	<td align="center"><?php $comment=str_replace('-', '_', "l_$serviceName"); echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
218
    <td width="80" align="center">---</td>
218
    <td width="80" align="center">---</td>
219
    <td width="80" align="center"><?php if ($serviceName != "chilli") { echo "<a href=\"".$_SERVER['PHP_SELF']."?action=stop&service=$serviceName\"> $l_service_stop</a>"; } else echo "---";?></td>
219
    <td width="80" align="center"><?php if ($serviceName != "chilli") { echo "<a href=\"".$_SERVER['PHP_SELF']."?action=stop&service=$serviceName\"> $l_service_stop</a>"; } else echo "---";?></td>
220
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=$serviceName\"> $l_service_restart";?></a></td>
220
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=$serviceName\"> $l_service_restart";?></a></td>
221
	<?php } else { ?>
221
	<?php } else { ?>
222
    <td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
222
    <td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
223
    <td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
223
    <td align="center"><?php $comment=str_replace('-', '_', "l_$serviceName"); echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
224
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=$serviceName\"> $l_service_start";?></a></td>
224
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=$serviceName\"> $l_service_start";?></a></td>
225
    <td width="80" align="center">---</td>
225
    <td width="80" align="center">---</td>
226
    <td width="80" align="center">---</td>
226
    <td width="80" align="center">---</td>
227
    <?php } ?>
227
    <?php } ?>
228
</tr>
228
</tr>
Line 237... Line 237...
237
<!--	<TR align="center"> -->
237
<!--	<TR align="center"> -->
238
<?php foreach( $FilterServiceStatus as $serviceName => $statusOK ) { ?>
238
<?php foreach( $FilterServiceStatus as $serviceName => $statusOK ) { ?>
239
<tr>
239
<tr>
240
	<?php if ($statusOK) { ?>
240
	<?php if ($statusOK) { ?>
241
    <td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
241
    <td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
242
	<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
242
	<td align="center"><?php $comment=str_replace('-', '_', "l_$serviceName"); echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
243
    <td width="80" align="center">---</td>
243
    <td width="80" align="center">---</td>
244
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=stop&service=$serviceName\"> $l_service_stop";?></a></td>
244
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=stop&service=$serviceName\"> $l_service_stop";?></a></td>
245
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=$serviceName\"> $l_service_restart";?></a></td>
245
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=$serviceName\"> $l_service_restart";?></a></td>
246
	<?php } else { ?>
246
	<?php } else { ?>
247
    <td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
247
    <td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
248
    <td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
248
    <td align="center"><?php $comment=str_replace('-', '_', "l_$serviceName"); echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
249
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=$serviceName\"> $l_service_start";?></a></td>
249
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=$serviceName\"> $l_service_start";?></a></td>
250
    <td width="80" align="center">---</td>
250
    <td width="80" align="center">---</td>
251
    <td width="80" align="center">---</td>
251
    <td width="80" align="center">---</td>
252
    <?php } ?>
252
    <?php } ?>
253
</tr>
253
</tr>
Line 261... Line 261...
261
	<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"><?php echo $l_service_title;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr>
261
	<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"><?php echo $l_service_title;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr>
262
<?php foreach( $OptServiceStatus as $serviceName => $statusOK ) { ?>
262
<?php foreach( $OptServiceStatus as $serviceName => $statusOK ) { ?>
263
<tr>
263
<tr>
264
	<?php if ($statusOK) { ?>
264
	<?php if ($statusOK) { ?>
265
    <td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
265
    <td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
266
	<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
266
	<td align="center"><?php $comment=str_replace('-', '_', "l_$serviceName"); echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
267
    <td width="80" align="center">---</td>
267
    <td width="80" align="center">---</td>
268
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=stop&service=$serviceName\"> $l_service_stop";?></a></td>
268
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=stop&service=$serviceName\"> $l_service_stop";?></a></td>
269
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=$serviceName\"> $l_service_restart";?></a></td>
269
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=$serviceName\"> $l_service_restart";?></a></td>
270
	<?php } else { ?>
270
	<?php } else { ?>
271
    <td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
271
    <td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
272
    <td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
272
    <td align="center"><?php $comment=str_replace('-', '_', "l_$serviceName"); echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
273
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=$serviceName\"> $l_service_start";?></a></td>
273
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=$serviceName\"> $l_service_start";?></a></td>
274
    <td width="80" align="center">---</td>
274
    <td width="80" align="center">---</td>
275
    <td width="80" align="center">---</td>
275
    <td width="80" align="center">---</td>
276
    <?php } ?>
276
    <?php } ?>
277
</tr>
277
</tr>