예제 #1
0
  public Object generateContent(PhpWebEnvironment webEnv) throws IOException, ServletException {

    /* Start of block */
    super.startBlock("__wp_pass_block1");
    gVars.webEnv = webEnv;

    /* Condensed dynamic construct: 513604 */ require(gVars, gConsts, Wp_configPage.class);

    if (booleanval(Options.get_magic_quotes_gpc(gVars.webEnv))) {
      gVars.webEnv._POST.putValue(
          "post_password",
          Strings.stripslashes(gVars.webEnv, strval(gVars.webEnv._POST.getValue("post_password"))));
    }

    // 10 days
    Network.setcookie(
        gVars.webEnv,
        "wp-postpass_" + gConsts.getCOOKIEHASH(),
        strval(gVars.webEnv._POST.getValue("post_password")),
        DateTime.time() + 864000,
        gConsts.getCOOKIEPATH());

    getIncluded(PluggablePage.class, gVars, gConsts)
        .wp_safe_redirect(getIncluded(FunctionsPage.class, gVars, gConsts).wp_get_referer(), 302);

    return DEFAULT_VAL;
  }