Vous êtes ici Codes sources snippets  page-par-page  Vérifier votre nom de domaine

 

Vérifier votre nom de domaine

Vérifier votre nom de domaine
$100/an ou 210.000Ariary/an pour l’extension .COM et $130/an ou 290.000Ariary/an pour les autres extensions .NET, .ORG, .INFO, .BIZ, .MG
 
maminirina
Site de l'auteur Voir
Enregisté le 14 Fév 2016
Vu 1060 fois
  • Digg ce code sur digg.com
  • Bookmark ce code sur del.icio.us
  • Bookmark ce code sur Google
  • Bookmark ce code sur Yahoo
  • Ajoute Vérifier votre nom de domaine
  • Partage ce code sur Facebook
 
 
 
 

Code Source


.01
.02
.03
.04
.05
.06
.07
.08
.09
.10
.11
.12
.13
.14
.15
.16
.17
.18
.19
.20
.21
.22
.23
.24
.25
.26
.27
.28
.29
.30
.31
.32
.33
.34
.35
.36
.37
.38
.39
.40
.41
.42
.43
.44
.45
.46
.47
.48
.49
.50
.51
.52
.53
.54
.55
.56
.57
.58
.59
.60
.61
.62
.63
.64
.65
.66
.67
.68
.69
.70
.71
.72
.73
.74
.75
.76
.77
.78
.79
.80
.81
.82
.83
.84
.85
.86
.87
.88
.89
.90
.91
.92
.93
.94
.95
.96
.97
.98
.99
.100
.101
.102
.103
.104
.105
.106
.107
.108
.109
.110
.111
.112
.113
.114
.115
 
<?php
/******************************************************************************/
/*                                                                            */
/*                            ___           ____                              */
/*                           / _ \___ _  __|_  /    __                        */
/*                          / // / -_) |/ //_ < |/|/ /                        */
/*                         /____/\__/|___/____/__,__/                         */
/*                                                                            */
/*                                                                            */
/******************************************************************************/
/*                                                                            */
/* Titre          : Vérifier votre nom de domaine                             */
/*                                                                            */
/* URL            : http://www.dev3w.com/scripts14-PHP.htm                    */
/* Auteur         : maminirina                                                */
/* Date édition   : 14 Fév 2016                                               */
/* Website auteur : http://www.newebhosting.net                               */
/*                                                                            */
/******************************************************************************/
?>
<$result = '';
$theNdd = trim($_POST['theNdd']);
$theExt = $_POST['theExt'];

if (!empty($theNdd) AND !empty($theExt)) {

       $theNdd = preg_replace(array( '/http://www./',
                                     '/http:///',
                                     '/www./' ),
                              array( '', '', '') ,$theNdd);

       $theNdd = preg_replace(array( '/.eu/',
                                     '/.fr/',
                                     '/.com/',
                                     '/.net/',
                                     '/.org/',
                                     '/.info/',
                                     '/.biz/',
                                     '/.de/',
                                     '/.me.uk/',
                                     '/.co.uk/',
                                     '/.org.uk/',
                                     '/.ca/' ),
               array( '', '', '', '', '', '', '', '', '', '', '', '') ,$theNdd);

        $theNdd = escapeshellcmd($theNdd);
        //on definit les case du tableau à vérifier
        $caseForVerif['.net']=7;
        $caseForVerif['.com']=7;
        $caseForVerif['.org']=0;
        $caseForVerif['.fr']=13;
        $caseForVerif['.ca']=5;
        $caseForVerif['.info']=0;
        $caseForVerif['.biz']=1;
        $caseForVerif['.de']=35;
        $caseForVerif['.eu']=50;
        $caseForVerif['.me.uk']=30;
        $caseForVerif['.co.uk']=30;
        $caseForVerif['.org.uk']=40;
        //on definit les phrase à vérifier dans ces cases
        $strForVerif['.com']='No match for "'.$theNdd.'.COM".';
        $strForVerif['.fr']='%% No entries found in the AFNIC Database.';
        $strForVerif['.net']='No match for "'.$theNdd.'.NET".';
        $strForVerif['.org']='NOT FOUND';
        $strForVerif['.ca']='';
        $strForVerif['.info']='NOT FOUND';
        $strForVerif['.biz']='';
        $strForVerif['.de']='';
        $strForVerif['.eu']='';
        $strForVerif['.me.uk']='';
        $strForVerif['.co.uk']='';
        $strForVerif['.org.uk']='';
        foreach($theExt as $anExt) {
            $myArray="";
            $anExt=escapeshellcmd($anExt);
            exec('whois '.$theNdd.$anExt,$myArray,$retval);
            $result.=(strtolower($myArray[$caseForVerif[$anExt]])==
                      strtolower($strForVerif[$anExt]))?"->> ".$theNdd.$anExt."
                      est libre<br/>":"->> ".$theNdd.$anExt."
                      est déjà réservé<br />";
        }
}
?>

<form action="" name="formVeirfNdd" enctype="multipart/form-data" method="post">
www.<input type="text" name="theNdd" value="<?php echo $theNdd?>" />
<input name="theExt[]" type="checkbox" value=".com" id="com" checked><label
 for="com">.com</label>
<input name="theExt[]" type="checkbox" value=".eu" id="eu"><label
 for="eu">.eu</label>
<input name="theExt[]" type="checkbox" value=".fr" id="fr"><label
 for="fr">.fr</label>
<input name="theExt[]" type="checkbox" value=".net" id="net"><label
 for="net">.net</label>
<input name="theExt[]" type="checkbox" 
value=".org" id="org"><label for="org">.org</label>
<input name="theExt[]" type="checkbox" value=".info" id="info"><label
 for="info">.info</label>
<input name="theExt[]" type="checkbox" value=".ca" id="ca"><label
 for="ca">.ca</label>
<input name="theExt[]" type="checkbox" value=".biz" id="biz"><label
 for="biz">.biz</label>
<input name="theExt[]" type="checkbox" value=".de" id="de"><label
 for="de">.de</label>
<input name="theExt[]" type="checkbox" value=".me.uk" id="me.uk"><label
 for="me.uk">me.uk</label>
<input name="theExt[]" type="checkbox" value=".co.uk" id="co.uk"><label
 for="co.uk">co.uk</label>
<input name="theExt[]" type="checkbox" value=".org.uk" id="org.uk"><label
 for="org.uk">org.uk</label>
<input type="submit" value="Vérifier">
</form>

<?php echo '<h3>'.$result.'</h3>';  ?>

Ajouter un commentaire
Code de sécurité

Attention: Les champs marqués d'une étoile * sont obligatoires
 

Navigation

 
 
Annonce Google...
 

page par page

 
 

Catégories