Re: [mezinfos]

j'aurais besoin d'un petit coup de mains si ca vous dérange pas voici ce que j'ai modifié comme code dans le bloc.php


Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php
  2. $bloc = "
  3. <!-- Debut du Bloc -->
  4. <CENTER>
  5. <SCRIPT LANGUAGE=\"JavaScript\">
  6. document.write(\"<b>Addresse IP</b><br> $REMOTE_ADDR\");
  7. document.write(\"<hr><b>Résolution</b><br>\" +screen.width+ \"x\" +screen.height+ \"x\" +window.screen.colorDepth);
  8.  
  9. document.write(\"<hr><b>Navigateur</b><br>\" +navigator.appName);
  10.  
  11. var ua = navigator.userAgent
  12. if (ua.indexOf(\"Linux\") > -1) name = \"Linux: The Best OS\";
  13. else if (ua.indexOf(\"PPC Mac OS X\") > -1) name = \"Mac OS >= X\";
  14. else if (ua.indexOf(\"Macintosh\")> -1) name =\"Mac OS <= 9\";
  15. else if (ua.indexOf(\"95\") > -1 && ua.indexOf(\"Win\") >-1) name=\"Windows 95\";
  16. else if (ua.indexOf(\"98\") > -1 && ua.indexOf(\"Win\") > -1) name=\"Windows 98\";
  17. else if (ua.indexOf(\"Windows NT 5.0\") > -1) name=\"Windows 2000\";
  18. else if (ua.indexOf(\"Windows NT 5.1\") > -1) name =\"Windows XP\";
  19. else if (ua.indexOf(\"Windows NT 6.0\") > -1) name =\"Windows Vista\";
  20. else if (ua.indexOf(\"Windows NT 6.1\") > -1) name =\"Windows Seven\";
  21. else name  = \"Undeterminded OS\";
  22. document.write(\"<hr><b>Plateforme</b><br>\" +name);
  23. </script>
  24. </CENTER>
  25. <!-- Fin du Bloc -->";
  26. Bloc ($result_blocs->parametre1,$bloc) ;


Sujet écrit par Musicgroove le jeudi 29 avril 2010 à 21:46

[ Imprimer ] - [ Fermer la fenêtre ]