Exemplo n.º 1
0
    ?>
</td>
            <?php 
    $ok = $ok && $test;
    ?>
        </tr>
    <?php 
}
?>

    <?php 
if ($ok) {
    ?>
        <tr>
            <?php 
    $test = Setup::mysql_select_db_check($db_name);
    ?>
            <td class="ui-widget-content"><b>MySQL</b> database connection test</td>
            <td class="<?php 
    echo $test ? "ui-state-highlight" : "ui-state-error";
    ?>
"><b>MySQL</b> database <b><?php 
    echo $db_name;
    ?>
</b> <b><?php 
    echo $test ? "IS CONNECTABLE" : "IS NOT CONNECTABLE";
    ?>
 - <b style="color:<?php 
    echo $test ? "green" : "red";
    ?>
"><?php