public static function GenerateCaptcha()
 {
     $Session = new Session();
     flush();
     ob_clean();
     if (isset($_SESSION['generated_captcha']) && $_SESSION['generated_captcha'] != '') {
         $Session->unsetKeys(['generated_captcha']);
     }
     $InitialString = str_shuffle("abcdefghijklmnopqrstuvwxyz1234567890");
     $RandomString = substr($InitialString, 0, 9);
     $_SESSION['generated_captcha'] = $RandomString;
     $Session->updateSession($_SESSION);
     $CreateBlankImage = ImageCreate(200, 70) or die("Cannot Initialize new GD image stream");
     $BackgroundColor = ImageColorAllocateAlpha($CreateBlankImage, 255, 255, 255, 127);
     imagefill($CreateBlankImage, 0, 0, 0x7fff0000);
     $BackgroundColor = ImageColorAllocate($CreateBlankImage, 204, 255, 51);
     $TextColor = ImageColorAllocate($CreateBlankImage, 51, 51, 255);
     ImageString($CreateBlankImage, 5, 50, 25, $RandomString, $TextColor);
     ImagePng($CreateBlankImage);
 }
    public static function ClientVersion()
    {
        ob_start();
        phpinfo(INFO_MODULES);
        $Info = ob_get_contents();
        ob_end_clean();
        $Info = stristr($Info, 'Client API version');
        preg_match('/[1-9].[0-9].[1-9][0-9]/', $Info, $Match);
        $Client = $Match[0];
        return $Client;
    }
}
global $FCCore, $Database, $InstallationInProgress;
$Database = new Database($FCCore);
$InstallationInProgress = true;
if (isset($FCCore['Website']['Database']['host']) && $FCCore['Website']['Database']['host'] != '') {
    if (!isset($_SESSION['installation_in_progress'])) {
        if (session_status() == PHP_SESSION_NONE) {
            global $Session;
            $Session = new Session();
            $Session->startSimple();
        }
    }
} else {
    session_start();
    $_SESSION['preferredlanguage'] = '';
    $_SESSION['installation_in_progress'] = true;
    if (strpos($_SERVER['REQUEST_URI'], '/Install') === false) {
        header('Location: /Install');
    }
}