예제 #1
0
파일: aux-fns.php 프로젝트: rkania/GS3
function gs_setup_autoshow()
{
    if (gs_setup_possible()) {
        @(include_once GS_DIR . 'inc/keyval.php');
        $val = gs_keyval_get('setup_pwd');
        if ($val == '') {
            return true;
        }
        $val = gs_keyval_get('setup_show');
        if ($val === 'autoshow') {
            return true;
        }
    }
    return false;
}
예제 #2
0
파일: index.php 프로젝트: rkania/GS3
require_once GS_DIR . 'htdocs/gui/setup/inc/aux-fns.php';
require_once GS_DIR . 'inc/keyval.php';
# set URL path
#
$GS_URL_PATH = dirName(dirName(@$_SERVER['SCRIPT_NAME']));
if (subStr($GS_URL_PATH, -1, 1) != '/') {
    $GS_URL_PATH .= '/';
}
define('GS_URL_PATH', $GS_URL_PATH);
unset($GS_URL_PATH);
# get type of installation
#
$GS_INSTALLATION_TYPE = gs_get_conf('GS_INSTALLATION_TYPE');
# setup possible on this installation?
#
if (!gs_setup_possible()) {
    @header('Content-Type: text/plain; charset=utf-8');
    echo 'Setup via GUI not possible for your installation!', "\n";
    exit(1);
}
# some headers
#
@header('Content-Type: text/html; charset=utf-8');
@header('Pragma: no-cache');
@header('Cache-Control: private, no-cache, must-revalidate');
@header('Expires: 0');
@header('Vary: *');
# start or bind to session
#
# start session even if GS_GUI_SESSIONS==false so $_SESSION is
# superglobal