$translation = \DynCom\mysyde\common\classes\Registry::get("translation"); if ( isset($_REQUEST["save"])) { save(); } function save() { /* $passwordOptions = get_password_options(); $hashedPasswordsWebkey = password_hash(filter_input(INPUT_POST,'input_websiteKey'),PASSWORD_DEFAULT,$passwordOptions); $hashedPasswordsSecretkey = password_hash(filter_input(INPUT_POST,'input_secretKey'),PASSWORD_DEFAULT,$passwordOptions); $query = "UPDATE google_recaptcha SET websitekey = '" . $hashedPasswordsWebkey . "', secretkey = '" . $hashedPasswordsSecretkey . "' WHERE id = 0 LIMIT 1"; */ //Prüfen der Key $secretKey = ''; $query = "SELECT * FROM google_recaptcha"; $result = @mysqli_query($GLOBALS['mysql_con'], $query); $websiteKey = $_POST['websiteKey']; $secretKey = $_POST['secretKey']; if(@mysqli_num_rows($result) > 0){ $reCaptcha = @mysqli_fetch_array($result); $query = "UPDATE google_recaptcha SET websitekey = '".$websiteKey."', secretkey = '".$secretKey."' WHERE id = ".$reCaptcha['id']; }else{ $query = "INSERT INTO google_recaptcha (websitekey, secretkey) VALUES ( '".$websiteKey."',". "'".$secretKey."')"; } $result = @mysqli_query($GLOBALS['mysql_con'], $query); $responseKey = $_POST['g-recaptcha-response']; echo $responseKey; } $messages = array(); $error = FALSE; $translation = \DynCom\mysyde\common\classes\Registry::get("translation"); $formname = "form_recaptcha"; ?>