global $_LANGUE,$_B3CLIC,$form;
$form++;
$mod = '';
/*if ($_POST['code']==$_SESSION['secur']['modulewhois'])
$codesecure = 1;*/
// Génération du code de sécurisé (Captcha) pour ce formulaire
//$_SESSION['secur']['modulewhois'] = substr(sha1(mt_rand(1, 10000000)), mt_rand(0, 10), 6);
// Verification du domaine
if (preg_match('#^[a-zA-Z0-9-]*.[a-zA-Z]{2,6}$#',trim($_POST['nomdedomaine']),$match))
$nomdedomaine = $match[0];
$mod='
Whois B3clic
Tapez le nom de domaine à interroger
';
if (isset($_POST['nomdedomaine']) )
{
if ($nomdedomaine != '')
$mod.='
Résultat pour '.$nomdedomaine.'
'.shell_exec('whois '.$nomdedomaine).'
';
else
$mod.='
Domaine non valide !
';
}
return $mod;
?>