0 ? $response : array()); //creating response array $hash = (isset($_GET['hash']) && strip_tags($_GET['hash']) != "" ? trim(strip_tags($_GET['hash'])) : ""); if($_SERVER['REQUEST_METHOD'] == 'POST') { include dirname(__FILE__) . '/api/signupCreate.php'; // mit single $login === TRUE werden zwei fälle abgedeckt. ist der login vorhanden, weil bereits angemeldet, zurück zur url Seite. Wenn account creat, dann $login === TRUE und hier weiterleiten zur url Seite. if (isset($response['success']) && $response['success'] === TRUE) { header("Status: 302 Moved Temporarily"); header("Location: ". LINK_SIGNUP_EMAIL .'?url='. $url . '&action=send'); exit(); } $FC = array(); $FC_fields = Array('firstName', 'lastName', 'email'); // write content from textfield into an array /* read POST from field as $FC_fields */ $Decimal_fields = array(); if (count($FC_fields) > 0) { foreach($FC_fields as $FC_field) { $FC[$FC_field] = (isset($_POST[$FC_field]) && strip_tags($_POST[$FC_field])!="") ? trim(strip_tags($_POST[$FC_field])) : ""; } } } elseif ($_SERVER['REQUEST_METHOD'] == 'GET' && $hash != '') { header("Status: 302 Moved Temporarily"); header("Location: ". LINK_SIGNUP_EMAIL .'?hash='. $hash); exit(); } ?>