die;
        } else {
            return md5($pass_string);
        }
    }
}
$host = $_SERVER['HTTP_HOST'];
$config_included = false;
if ($host == "localhost" || $host == "127.0.0.1" || strrpos($host, "localhost") >= 0 || strrpos($host, "127.0.0.1") >= 0) {
    if (file_exists(__DIR__ . '/../config/local') && file_exists(__DIR__ . '/../config/local/dbconfig.php')) {
        $config_included = true;
        require_once __DIR__ . '/../config/local/dbconfig.php';
    }
} else {
    if (strrpos($host, ".")) {
        if (file_exists(__DIR__ . '/../config/production') && file_exists(__DIR__ . '/../config/production/dbconfig.php')) {
            $config_included = true;
            require_once __DIR__ . '/../config/production/dbconfig.php';
        }
    }
}
if (!$config_included) {
    if (file_exists(__DIR__ . '/../config') && file_exists(__DIR__ . '/../config/dbconfig.php')) {
        require_once __DIR__ . '/../config/dbconfig.php';
    } else {
        echo "dbconfig file is missing";
        die;
    }
}
BasicModel::$dbconfig = $dbconfig;
BasicModel::init();