verify_config() static public method

static public verify_config ( )
Exemplo n.º 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');
Exemplo n.º 2
0
 static function verify()
 {
     if (self::verify_integrity() === 2) {
         header("Location: " . gb::$site_url . "gitblog/admin/setup.php");
         exit(0);
     }
     gb::verify_config();
 }