Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !

IP DANS UN CARDE COLORISEZ


Information sur la source

Catégorie :Divers Niveau : Débutant Date de création : 22/02/2002 Date de mise à jour : 22/02/2002 16:17:49 Vu : 2 563

Note :
4 / 10 - par 1 personne
4,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10

Commentaire sur cette source (1)
Ajouter un commentaire et/ou une note

Description

Ben votre ip s'affiche dans un cadre configurable...
Exemple ip.php3?bg=yellow&clair=white...
 

Source

  • <?
  • $htm ="<html>";
  • $htm .="<head>";
  • $htm .="</head>";
  • $htm .="<body >";
  • echo $htm;
  • $ip = getenv("REMOTE_ADDR");
  • // bgcolor =$bg
  • // bordercolorlight = $clair
  • // bordercolordark = $foncee
  • // bordercolor = $bordure
  • // width = $width
  • // cellpadding = $marge
  • // cellspacing = $espacement
  • // cellpadding = Marge de la cellule
  • // cellspacing = Espacement
  • // width = Largeur
  • // bordercolor = couleur bordure
  • // bordercolordark = couleur foncée
  • // bordercolorlight = couleur clair
  • // bgcolor = couleur de fond
  • if($marge == "") $marge="0";
  • if($espacement == "") $espacement="0";
  • if($width != "") $width ="".$width."%";
  • if($width == "") $width = "15%";
  • if($bordure == "") $bordure = "yellow";
  • if($foncee == "") $foncee = "white";
  • if($clair == "") $clair = "black";
  • if($bg == "") $bg = "white";
  • $num = "121";
  • $center = "center";
  • $affiche_ip = "<div align='$center'><table bgcolor='$bg' border cellpadding='$marge' cellspacing='$espacement' width='$width' bordercolor='$bordure' bordercolordark='$foncee' bordercolorlight='$clair'>";
  • $affiche_ip .= "<tr>";
  • $affiche_ip .= "<td width= '$num' align='$center'><p>Votre IP</td>";
  • $affiche_ip .= "</tr>";
  • $affiche_ip .= "<tr>";
  • $affiche_ip .= "<td width='$num' align='$center'><p>".$ip."</td>";
  • $affiche_ip .= "</tr>";
  • $affiche_ip .= "</table></div>";
  • echo $affiche_ip;
  • echo "</body>";
  • echo "</html>";
  • ?>
<?
$htm ="<html>";
$htm .="<head>";
$htm .="</head>";
$htm .="<body >";
echo $htm;
$ip = getenv("REMOTE_ADDR");
// bgcolor =$bg
// bordercolorlight = $clair
// bordercolordark = $foncee
// bordercolor = $bordure
// width = $width
//  cellpadding = $marge
// cellspacing = $espacement
//  cellpadding = Marge de la cellule
// cellspacing = Espacement
// width = Largeur
// bordercolor = couleur bordure
// bordercolordark = couleur foncée
// bordercolorlight = couleur clair
// bgcolor = couleur de fond
if($marge == "") $marge="0";
if($espacement == "") $espacement="0";
if($width != "") $width ="".$width."%";
if($width == "") $width = "15%";
if($bordure == "") $bordure = "yellow";
if($foncee == "") $foncee = "white";
if($clair == "") $clair = "black";
if($bg == "") $bg = "white";
$num = "121";
$center = "center";
$affiche_ip = "<div align='$center'><table bgcolor='$bg' border cellpadding='$marge' cellspacing='$espacement' width='$width' bordercolor='$bordure' bordercolordark='$foncee' bordercolorlight='$clair'>";
$affiche_ip .= "<tr>";
$affiche_ip .= "<td width= '$num' align='$center'><p>Votre IP</td>";
$affiche_ip .= "</tr>";
$affiche_ip .= "<tr>";
$affiche_ip .= "<td width='$num' align='$center'><p>".$ip."</td>";
$affiche_ip .= "</tr>";
$affiche_ip .= "</table></div>";
echo $affiche_ip;
echo "</body>";
echo "</html>";
?> 

Conclusion

Voila voila fini
 

Commentaires et avis

signaler à un administrateur
Commentaire de Magicking le 05/03/2002 17:37:18

Dsl c'est po if($width != "") $width ="".$width."%";
Mais if($width = "") $width ="".$width."%";

Ajouter un commentaire



Nos sponsors

Sondage...

CalendriCode

Juillet 2009
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
2728293031  

Consulter la suite du CalendriCode

Comparez les prix Nouvelle version

Photothèque Nouveau !



Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés
Temps d'éxécution de la page : 0,218 sec

Google Coop CodeS-SourceS Google Coop CodeS-SourceS


Certaines images présentes sur le site (notament certains avatars) sont issues des collections IconShock, donc si vous souhaitez utiliser ces icons vous devez les acheter, ne les copiez pas et ne utilisez pas dans vos sites et applications sans les avoir commandé.