WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
function httpPost($url, $data) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl); curl_close($curl); return $response;} // end function$url_request = LOGIN_URL;$url_this = WB_URL.$_SERVER['PHP_SELF'];$array_request = array( "redirect" => $url_this, "username" => "abc***", "password" => "12345***", "submit" => "submit");$myresult = httpPost($url_request, $array_request);echo $myresult;if (!$wb->is_authenticated()) {echo 'NO';} else {echo 'YES';} // end if
<form method="post" action="https://xxxxxxxxxxxxxxx/account/login.php"><input type="hidden" name="redirect" value="https://xxxxxxxxxxxxx/index.php"><p>Login Name<br /><input placeholder="" required style="width:100%" type="text" name="username" id="username_1" tabindex="1" class="field" onkeypress="return webLoginEnter(document.loginfrm.password);" value="" /></p><p>Passwort<br /><input placeholder="" required style="width:100%" type="password" name="password" id="password_1" tabindex="2" class="field" onkeypress="return webLoginEnter(document.loginfrm.cmdweblogin);" value="" /></p><input type="submit" name="submit" class="ctrl_btn_flex" id="unlock" value="Anmelden" /><input class="ctrl_btn_flex" id="mail" type="button" value="Zugang vergessen" onClick="window.open('https://xxxxxxxxxxxxxxxxx/account/forgot.php', '_self')" /></form>