}
}
if (isset($SPECIAL_VALUES["multi_go_back"]) && !empty($SPECIAL_VALUES["multi_go_back"])) {
    if (!IsSetSession("FormList") || GetSession("FormIndex") == 0) {
        ErrorWithIgnore("go_back", GetMessage(MSG_GO_BACK), false, false);
    }
    MultiKeep();
    // store any "multi_keep" data just submitted
    //
    // save back to the session any variables that have been specified in
    // multi_keep
    //
    if (isset($SPECIAL_VALUES["multi_keep"]) && !empty($SPECIAL_VALUES["multi_keep"])) {
        $SessionAccessor->CopyOut($aAllRawValues, $SPECIAL_VALUES["multi_keep"]);
    }
    MultiFormReturn(GetSession("FormIndex") - 1);
    //    echo "Form index = ".GetSession("FormIndex");
    exit;
}
//
// This is the check for spiders; I can't imagine a spider will
// ever use the POST method.
//
if ($bIsGetMethod && count($aFormVars) == 0) {
    if (!$ALLOW_GET_METHOD && $bHasGetData) {
        CreatePage(GetMessage(MSG_GET_DISALLOWED), GetMessage(MSG_FORM_ERROR));
    } else {
        CreatePage(GetMessage(MSG_NO_DATA_PAGE), GetMessage(MSG_FORM_ERROR));
    }
    ZapSession();
    exit;
Exemplo n.º 2
0
            // load the license and register the module
            //
            $GeoIP = new FMGeoIP($GEOIP_LIC);
            if (!$GeoIP->RegisterModule($FMCalc)) {
                Error("reg_module", GetMessage(MSG_REGISTER_MODULE, array("NAME" => "FMGeoIP", "ERROR" => $GeoIP->GetError())), false, false);
            }
        }
    }
}
if (isset($SPECIAL_VALUES["multi_go_back"]) && !empty($SPECIAL_VALUES["multi_go_back"])) {
    if (!isset($aSessionVars["FormList"]) || $aSessionVars["FormIndex"] == 0) {
        ErrorWithIgnore("go_back", GetMessage(MSG_GO_BACK), false, false);
    }
    MultiKeep();
    // store any "multi_keep" data just submitted
    MultiFormReturn($aSessionVars["FormIndex"] - 1);
    //    echo "Form index = ".$aSessionVars["FormIndex"];
    exit;
}
//
// This is the check for spiders; I can't imagine a spider will
// ever use the POST method.
//
if ($bIsGetMethod && count($aFormVars) == 0) {
    CreatePage(GetMessage(MSG_NO_DATA_PAGE));
    ZapSession();
    exit;
}
//
// Hook system: before performing required and conditions etc.
//