Beispiel #1
0
                echo WEBPATH . '/' . ZENFOLDER, '/setup/index.php?checked';
                echo $task . $mod;
                ?>
" method="post"<?php 
                echo $hideGoButton;
                ?>
 >
									<input type="hidden" name="setUTF8URI" id="setUTF8URI" value="dont" />
									<input type="hidden" name="xsrfToken" value="<?php 
                echo $xsrftoken;
                ?>
" />
									<?php 
                if (isset($_REQUEST['autorun'])) {
                    if (!empty($_REQUEST['autorun'])) {
                        $auto = setup_sanitize($_REQUEST['autorun']);
                    } else {
                        $auto = 'admin';
                    }
                    ?>
										<input type="hidden" id="autorun" name="autorun" value="<?php 
                    echo html_encode($auto);
                    ?>
" />
										<?php 
                }
                ?>
									<p class="buttons"><button class="submitbutton" id="submitbutton" type="submit"	title="<?php 
                echo gettext('run setup');
                ?>
" ><img src="<?php 
Beispiel #2
0
        updateConfigItem('db_software', setup_sanitize($_POST['db_software']));
    }
    if (isset($_POST['db_user'])) {
        updateConfigItem('mysql_user', setup_sanitize($_POST['db_user']));
    }
    if (isset($_POST['db_pass'])) {
        updateConfigItem('mysql_pass', setup_sanitize($_POST['db_pass']));
    }
    if (isset($_POST['db_host'])) {
        updateConfigItem('mysql_host', setup_sanitize($_POST['db_host']));
    }
    if (isset($_POST['db_database'])) {
        updateConfigItem('mysql_database', setup_sanitize($_POST['db_database']));
    }
    if (isset($_POST['db_prefix'])) {
        updateConfigItem('mysql_prefix', setup_sanitize($_POST['db_prefix']));
    }
}
$permissions = array(0750, 0755, 0775, 0777);
// NOTE: also $permission_names array below
if ($updatechmod = isset($_REQUEST['chmod_permissions'])) {
    setupXSRFDefender();
    $selected = round($_REQUEST['chmod_permissions']);
    if ($selected >= 0 && $selected < count($permissions)) {
        $chmod = $permissions[$selected];
    } else {
        $updatechmod = false;
    }
}
if ($updatechmod || $newconfig) {
    if ($updatechmod || isset($_zp_conf_vars['CHMOD'])) {