begin process at 2012 02 15 09:19:24
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Divers

 > IP DANS UN CARDE COLORISEZ

IP DANS UN CARDE COLORISEZ


 Information sur la source

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

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Divers Niveau :Débutant Date de création :22/02/2002 Date de mise à jour :22/02/2002 16:17:49 Vu :3 297

Auteur : Magicking

Ecrire un message privé
Site perso
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


 Sources du même auteur

Source avec Zip BNC & SERVEUR WEB CLASS/PHP5
CLASS POUR LES TEMPLATES
SQLBUILDER POUR LES MYSQL_QUERY FACILE(LOL)
ZIP
Source avec Zip PHPMYEXPLORER(ZIP,TELECHARGEMENT,REPRISE... (MAJ)

 Sources de la même categorie

Source avec Zip COMPTEUR DE CLIQUE PHP AVEC JQUERY par devgoneti
Source avec Zip LIVRE D'OR SIMPLE (POUR DÉBUTANT) par devgoneti
Source avec Zip SCRIPT TRAVAUX POUR VOTRE SITE par FleuryK
Source avec Zip Source avec une capture EL COYOTOS LIVRE D'OR PHP 5 par elcoyotos
COMPTEUR DE VISITE - FICHIER TXT - CODE MINIMAL par SuperChouquette

Commentaires et avis

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...

Comparez les prix

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
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

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,515 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales