Example #1
0
    if (!file_exists($sudo_check) || !file_exists($sudo_sudo_check)) {
        _test_result('FEHLER (Test-Skript nicht gefunden)', 'warn');
    } else {
        $err = 0;
        $out = array();
        @exec($sudo_check . ' 1>>/dev/null 2>>/dev/null', $out, $err);
        if ($err !== 0) {
            _test_result(sPrintF('FEHLER (User "%s" hat nicht genügend Rechte)', $username), 'warn');
        } else {
            $err = 0;
            $out = array();
            @exec($sudo_sudo_check . ' 1>>/dev/null 2>>/dev/null', $out, $err);
            if ($err !== 0) {
                _test_result(sPrintF('FEHLER (User "%s" hat nicht genügend Rechte)', 'root'), 'warn');
            } else {
                _test_result('OK', 'ok');
                //$can_continue = true;
            }
        }
    }
}
?>
</td>
</tr>

</tbody>
</table>

<br />
<hr />
<?php 
Example #2
0
    ?>
</td>
</tr>
<tr>
	<td>&nbsp;</td>
	<td><tt>mod_mime</tt></td>
	<td><?php 
    echo array_key_exists('mod_mime', $apache_mods) ? _test_result('OK', 'ok') : _test_result('NICHT GELADEN', 'warn');
    ?>
</td>
</tr>
<tr>
	<td>&nbsp;</td>
	<td><tt>mod_rewrite</tt></td>
	<td><?php 
    echo array_key_exists('mod_rewrite', $apache_mods) ? _test_result('OK', 'ok') : _test_result('NICHT OPTIMAL', 'notice');
    ?>
</td>
</tr>
<?php 
}
?>

<?php 
/*
<tr>
	<td>HTTP Keep-Alive:</td>
	<td><?php
		//flush();
		//print_r(apache_response_headers());