static function booking_get_confirm_code()
 {
     $email = $_POST['email'];
     $code = $_POST['code'];
     $post = $_POST;
     $client_pass = "";
     $cursor = Dispatcher::$mysqli->query("select * from confirm_codes where code='{$code}'");
     $row = $cursor->fetch_assoc();
     if (!empty($row)) {
         $client_pass = $row['code'];
     }
     if (!empty($code) && $code == $client_pass) {
         MainController::booking_create_reservation($post);
     } else {
         echo json_encode(array('valid' => false));
     }
 }