@header('HTTP/1.0 302 Moved Temporarily', true, 302);
            @header('Status: 302 Moved Temporarily', true, 302);
        } else {
            return false;
        }
    }
    @header('Location: ' . $location);
    return true;
}
define('GS_WEB_REWRITE', array_key_exists('REDIRECT_URL', $_SERVER) || array_key_exists('_GS_HAVE_REWRITE', $_SERVER) || array_key_exists('REDIRECT__GS_HAVE_REWRITE', $_SERVER));
$dispatcher_errors_html = array();
$GS_INSTALLATION_TYPE = gs_get_conf('GS_INSTALLATION_TYPE');
if (gs_get_conf('GS_INSTALLATION_TYPE_SINGLE')) {
    require_once GS_DIR . 'htdocs/gui/setup/inc/aux-fns.php';
    if (gs_setup_autoshow()) {
        $url = http_get_request_url(false);
        if ($url != false) {
            $url .= dirName($_SERVER['SCRIPT_NAME']) . '/setup/';
            if (http_redirect_temporarily($url, false, true)) {
                echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', "\n";
                echo '<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">', "\n";
                echo '<head>', "\n";
                echo '<title>Gemeinschaft</title>', "\n";
                echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />', "\n";
                echo '</head>', "\n";
                echo '<body>', "\n";
                echo '<br /><p align="center"><a href="setup/">Setup</a></p>', "\n";
                echo '</body>', "\n";
                echo '</html>';
                exit;
            }
예제 #2
0
    //echo " $requested_section $requested_module ";
    ?>
<form method="post" action="<?php 
    $url_argp_arts = array();
    foreach ($_GET as $k => $v) {
        if (!in_array($k, array('s', 'm', 'login_pwd'), true)) {
            $url_arg_parts[] = urlEncode($k) . '=' . urlEncode($v);
        }
    }
    echo htmlEnt(gs_url($requested_section, $requested_module, array_key_exists('sudo', $_REQUEST) ? $_REQUEST['sudo'] : null, implode('&', $url_argp_arts)));
    ?>
">
<?php 
    if ($interesting_module) {
        echo gs_form_hidden($requested_section, $requested_module, array_key_exists('sudo', $_REQUEST) ? $_REQUEST['sudo'] : null), "\n";
        $orig_request_uri = http_get_request_url();
        if ($orig_request_uri != false) {
            echo '<input type="hidden" name="login_request_uri" value="', htmlEnt($orig_request_uri), '" />', "\n";
        }
    }
    ?>

<label for="ipt-login_user"><?php 
    echo __('Benutzername');
    ?>
:</label><br />
<?php 
    if (@$_REQUEST['login_user'] != '') {
        $login_user_prefill = $_REQUEST['login_user'];
    } elseif (@$_REQUEST['sudo'] != '' && !in_array($_REQUEST['sudo'], array('my'), true)) {
        $login_user_prefill = $_REQUEST['sudo'];