Beispiel #1
0
}
define("USE_DEBIAN_BINARIES", setup_update::get_config_old("USE_DEBIAN_BINARIES", false, 0));
define("SMTP_REMINDER", setup_update::get_config_old("SMTP_REMINDER", false, ""));
if (empty($_SERVER["SERVER_ADDR"])) {
    $_SERVER["SERVER_ADDR"] = "127.0.0.1";
}
// TODO change
// setup::build_customizing(SIMPLE_CUSTOM."customize.php");
setup::dirs_create_default_folders();
if (isset($_REQUEST["install"]) and isset($_REQUEST["accept_gpl"]) and $_REQUEST["accept_gpl"] == "yes") {
    install();
} else {
    if (!empty($_REQUEST["lang"])) {
        setup::show_form($databases, !empty($_REQUEST["install"]), !empty($_REQUEST["accept_gpl"]));
    } else {
        setup::show_lang();
    }
}
function install()
{
    setup::out('
    <html>
    <head>
	<title>Simple Groupware & CMS</title>
	<style>
	  body { width:526px; margin:10px auto; }
	  body, a { color: #666666; font-size: 13px; font-family: Arial, Helvetica, Verdana, sans-serif; }
	  a { color: #0000FF; }
	</style>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>