verify_integrity() статический публичный Метод

Return values: 0 Nothing done (everything is probably OK). -1 Error (the error has been logged through trigger_error). 1 gitblog cache was updated. 2 gitdir is missing and need to be created (git init). 3 upgrade performed
static public verify_integrity ( )
Пример #1
0
<?php

require dirname(__FILE__) . '/../gitblog.php';
$integrity = gb::verify_integrity();
if (strpos($_SERVER['SCRIPT_NAME'], '/admin/setup.php') === false) {
    if ($integrity === 2) {
        header('Location: ' . gb_admin::$url . 'setup.php');
        exit(0);
    } else {
        gb::verify_config();
    }
}
$admin_conf = gb::data('admin');