Esempio n. 1
0
                $jump_path = $pwd . '/jump.php';
                file_put_contents($jump_path, file_get_contents(constant('_JUMP_URL_')));
                setup_php_print('core installed. `' . $jump_path . '`', '1;34');
                include_once $jump_path;
            } else {
                $default_path = $pwd . "/core/";
                print 'core path[' . $default_path . ']: ';
                fscanf(STDIN, '%s', $install_path);
                $install_path = trim($install_path);
                $install_path = empty($install_path) ? $default_path : $install_path;
                if (!empty($install_path)) {
                    if (substr($install_path, -1) !== '/') {
                        $install_path .= '/';
                    }
                    if (!is_file($install_path . 'jump.php')) {
                        download_expand(constant('_CORE_URL_'), $install_path);
                    }
                    @(include_once $install_path . 'jump.php');
                    $jump_path = $install_path . 'jump.php';
                    setup_php_print('core installed. `' . $jump_path . '`', '1;34');
                }
            }
        }
    } catch (Exception $e) {
        setup_php_print($e->getMessage());
    }
    setup_php_print('use `' . $jump_path . '`', '35');
}
if (class_exists('Object')) {
    Setup::start();
} else {
Esempio n. 2
0
    }
}
if (php_sapi_name() != 'cli') {
    exit;
}
ini_set("display_errors", "On");
ini_set("display_startup_errors", "On");
ini_set("html_errors", "Off");
if (file_exists("./__settings__.php")) {
    @(include_once "./__settings__.php");
}
if (!class_exists("Object")) {
    $default_path = str_replace("\\", "/", getcwd()) . "/" . "core/";
    print "core path[" . $default_path . "]: ";
    fscanf(STDIN, "%s", $install_path);
    $install_path = trim($install_path);
    $install_path = empty($install_path) ? $default_path : $install_path;
    if (!empty($install_path)) {
        if (substr($install_path, -1) !== "/") {
            $install_path .= "/";
        }
        if (!is_file($install_path . "jump.php")) {
            download_expand(constant("_CORE_URL_"), $install_path);
        }
        @(include_once $install_path . "jump.php");
    }
}
if (class_exists("Object")) {
    Setup::start();
}
exit;