install/includes/stages/sysreqs.php
changeset 404 fb4f9e6f378f
parent 348 87e08a6e4fec
child 536 218a627eb53e
equal deleted inserted replaced
403:2c9745b5c09d 404:fb4f9e6f378f
    41   $cv = not($cv);
    41   $cv = not($cv);
    42   $val = eval($code);
    42   $val = eval($code);
    43   if($val)
    43   if($val)
    44   {
    44   {
    45     if($cv) $color='CCFFCC'; else $color='AAFFAA';
    45     if($cv) $color='CCFFCC'; else $color='AAFFAA';
    46     echo "<tr><td style='background-color: #$color; width: 500px; padding: 5px;'>$desc</td><td style='padding-left: 10px;'><img alt='Test passed' src='../images/good.gif' /></td></tr>";
    46     echo "<tr><td style='background-color: #$color; width: 500px; padding: 5px;'>$desc</td><td style='padding-left: 10px;'><img alt='Test passed' src='../images/check.png' /></td></tr>";
    47   } elseif(!$val && $warn) {
    47   } elseif(!$val && $warn) {
    48     if($cv) $color='FFFFCC'; else $color='FFFFAA';
    48     if($cv) $color='FFFFCC'; else $color='FFFFAA';
    49     echo "<tr><td style='background-color: #$color; width: 500px; padding: 5px;'>$desc<br /><b>$extended_desc</b></td><td style='padding-left: 10px;'><img alt='Test passed with warning' src='../images/unknown.gif' /></td></tr>";
    49     echo "<tr><td style='background-color: #$color; width: 500px; padding: 5px;'>$desc<br /><b>$extended_desc</b></td><td style='padding-left: 10px;'><img alt='Test passed with warning' src='../images/checkunk.png' /></td></tr>";
    50     $warned = true;
    50     $warned = true;
    51   } else {
    51   } else {
    52     if($cv) $color='FFCCCC'; else $color='FFAAAA';
    52     if($cv) $color='FFCCCC'; else $color='FFAAAA';
    53     echo "<tr><td style='background-color: #$color; width: 500px; padding: 5px;'>$desc<br /><b>$extended_desc</b></td><td style='padding-left: 10px;'><img alt='Test failed' src='../images/bad.gif' /></td></tr>";
    53     echo "<tr><td style='background-color: #$color; width: 500px; padding: 5px;'>$desc<br /><b>$extended_desc</b></td><td style='padding-left: 10px;'><img alt='Test failed' src='../images/checkbad.png' /></td></tr>";
    54     $failed = true;
    54     $failed = true;
    55   }
    55   }
    56 }
    56 }
    57 function is_apache()
    57 function is_apache()
    58 {
    58 {