/**  
 * @see  verifyAll() Verification of First Name
 * @return boolean TRUE == OK, FALSE == empty
 */
function verifyAll()
{
    if (verifyCaptcha() && verifyUsername() && verifyEmail() && verifyFisrtName() && verifyLastName() && verifyPassword1() && verifyPassword2() && verifyTelephoneNumber()) {
        if (verifyCorrespond()) {
            //echo ' Passwords OK <br />';
            //echo '<br />Communication with the database<br />';
            include "PhpmyadminCommunication.php";
        }
        //echo 'Any field are filled <br />';
    }
}
function main()
{
    $success = false;
    $capachaResponse = verifyCaptcha();
    $curlResponse = array();
    if ($capachaResponse) {
        if ($capachaResponse->success) {
            $curlResponse = sendEmail();
            if ($curlResponse) {
                $success = $curlResponse["success"];
            }
        }
    }
    print json_encode(array("success" => $success, "capachaResponse" => $capachaResponse, "curlResponse" => $curlResponse));
}