<?php

error_reporting(E_ALL);
if (cfr('ROOT')) {
    set_time_limit(0);
    $sysInfo=new SystemHwInfo();
    $hostOs=$sysInfo->getOs();
    if ($hostOs=='FreeBSD') {
        $teleport = new UnicornTeleport();
        if (ubRouting::checkGet(UnicornTeleport::ROUTE_DOWNLOAD)) {
            $teleport->catchFileDownload();
        } else {
            show_window(__('Unicorn Teleport'), $teleport->renderTeleportForm());
        }
    } else {
        show_error(__('Sorry your system is currently unsupported'));
    }
    show_window('', wf_BackLink(DevConsole::URL_ME));
    zb_billingStats(true);
} else {
    show_error(__('Access denied'));
}