getSecurityType() == DUPX_Security::SECURITY_NONE) { DUPX_HTTP::post_with_html($page_url, array( 'action_step' => '1', 'csrf_token' => DUPX_CSRF::generate('step1') )); exit; } //POSTBACK: valid security if ($security->securityCheck()) { DUPX_HTTP::post_with_html($page_url, array( 'action_step' => '1', 'csrf_token' => DUPX_CSRF::generate('step1'), 'secure-pass' => $_POST['secure-pass'], 'secure-archive' => $_POST['secure-archive'] ) ); exit; } $page_err = isset($_POST['secure-try']) ? 1 : 0; switch (DUPX_Security::getInstance()->getSecurityType()) { case DUPX_Security::SECURITY_PASSWORD: $errorMsg = 'Invalid Password! Please try again...'; break; case DUPX_Security::SECURITY_ARCHIVE: $errorMsg = 'Invalid Archive name! Please try again...'; break; case DUPX_Security::SECURITY_NONE: default: $errorMsg = ''; break; } $css_why_display = ($GLOBALS['DUPX_STATE']->mode === DUPX_InstallerMode::OverwriteInstall) ? "" : "no-display"; $archive_name = isset($_POST['secure-archive']) ? $_POST['secure-archive'] : ''; ?>