Beispiel #1
0
/** 
 * print table with system checking results 
 * 
 * @param integer &$errCounter reference to error counter
 * @author Martin Havlat
 **/
function reportCheckingWeb(&$errCounter)
{
    echo '<h2>Web and PHP configuration</h2><table class="common" style="width: 100%;">';
    echo check_timeout($errCounter);
    echo check_php_settings($errCounter);
    echo checkPhpExtensions($errCounter);
    echo '</table>';
}
Beispiel #2
0
function do_migration_checks()
{
    $errors = 0;
    $check = check_php_version("../../info/");
    $errors += $check['errors'];
    echo $check['msg'];
    $check = check_php_settings();
    $errors += $check['errors'];
    echo $check['msg'];
    $check = check_db_loaded_extension('mysql');
    $errors += $check['errors'];
    echo $check['msg'];
    $check = check_session();
    $errors += $check['errors'];
    echo $check['msg'];
    $dirs_to_check = array('../../../gui/templates_c', '../../../logs');
    $check = check_with_feedback($dirs_to_check);
    echo $check['msg'];
    $errors += $check['errors'];
    return $errors;
}