grégoire
Invité n'ayant pas de compte PHPfrance
05 déc. 2012, 12:54
Bonjour,
Pourquoi n'y ai je pas pensé avec style="margin-top ç'est ok !
cependant j'ai la couleur verte du texte qui s'affiche pour la disponibilité, et pour le déja pris alors que le déja pris dois être afficher en rouge.
if (
ereg("No match for", $buf) ||
ereg("NOT FOUND", $buf) ||
ereg("Status: FREE", $buf) ||
ereg("No entries found", $buf) ||
ereg("Not found", $buf) ||
ereg("AVAIL", $buf)) {
echo '"<p><strong> Le nom de domaine <font color=\"green\">"' . $_POST['domaine'] . '"</font> semble libre</strong><img src="/modules/whoisdomaine/images/ok.gif" height="32" width="32" hspace="10px" style="float:right; margin-top:-7px; margin-right:142px;"/><p>';
} else {
echo '"<p><strong> Le nom de domaine <font color=\"red\">"' . $_POST['domaine'] . '"</font> est déjà pris</strong><img src="/modules/whoisdomaine/images/lock.gif" height="32" width="32" hspace="10px" style="float:right; margin-top:-10px; margin-right:157px;"/><p>';
if ($server) {
echo "<pre>";
$fp = fsockopen($server, 43, $errno, $errstr, 10);
fputs($fp, $_POST['domaine'] . "\r\n");
while (!feof($fp))
print fgets($fp, 128);
fclose($fp);
echo "</pre>";
} else {
echo "<pre>$buf</pre>";
}
}
}
}