@mysql_close($link);
}
if (isset($_GET['email'])) {
    if ($method == "registeruser") {
        $random = RandNumber(4);
        $result = "false";
        $result2 = "false";
        $isvalid = 'false';
        include "class.emailverify.php";
        $verify = new EmailVerify();
        $verify->debug_on = false;
        $verify->local_user = '******';
        //username of your address from which you are sending message to verify
        $verify->local_host = 'hundw.me';
        //domain name of your address
        if ($verify->verify($_GET['email'])) {
            $isvalid = 'true';
        } else {
            $isvalid = 'false';
        }
        if ($isvalid == 'true') {
            ////if email is available on the web
            /* connect to the db */
            $link = mysql_connect('localhost', 'root', '') or die('Cannot connect to the DB');
            mysql_select_db('users_db', $link) or die('Cannot select the DB');
            $sSql = "SELECT COUNT(*) AS `count` FROM `user`\n\t\t\tWHERE `email` = '{$_GET['email']}'";
            $result = mysql_result(mysql_query($sSql, $link), 0);
            //check for unique email
            $sSql2 = "SELECT COUNT(*) AS `count` FROM `user`\n\t\t\tWHERE `huno` = '{$_GET['huno']}'";
            $result2 = mysql_result(mysql_query($sSql2, $link), 0);
            //check for unique huno
コード例 #2
0
ファイル: example.php プロジェクト: ajjukht/emailverifier
<pre>
<?php 
include "class.emailverify.php";
$verify = new EmailVerify();
$verify->debug_on = true;
$verify->local_user = '******';
//username of your address from which you are sending message to verify
$verify->local_host = 'localhost';
//domain name of your address
if ($verify->verify('*****@*****.**')) {
    echo 'Valid email address';
} else {
    echo 'Invalid Email Address';
}
?>
</pre>