- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
- <title>Vos informations</title>
- <?php
- if(!$ip=getenv('HTTP_CLIENT_IP'))
- {
- if(!$ip=getenv('HTTP_X_FORWARDED_FOR'))
- {
- if(!$ip=$_SERVER['REMOTE_ADDR'])
- {
- $ip=getenv('REMOTE_ADDR');
- }
- }
- }
- if(!isset($_POST['height']) || !isset($_POST['width']) || !isset($_POST['nb_plugins']))
- {
- echo '<script type="text/javascript">
- <!--
- function complete()
- {
- document.infos=document.getElementById("infos");
- document.infos.nb_plugins.value=navigator.plugins.length;
- document.infos.width.value=screen.width;
- document.infos.height.value=screen.height;
- document.infos.submit();
- }
- //-->
- </script>
- </head>
- <body onload="complete();">
- <form id="infos" action="'.$_SERVER['REQUEST_URI'].'" method="post">
- <input type="hidden" name="width" />
- <input type="hidden" name="height" />
- <input type="hidden" name="nb_plugins" />
- </form>';
- }
- else
- {
- echo '</head>
- <body>';
- echo 'Votre résolution est de '.$_POST['width'].'×'.$_POST['height'].'.<br />';
- echo 'Vous avez '.$_POST['nb_plugins'].' plugins installés.<br />';
- }
- echo 'Votre navigateur est '.$_SERVER['HTTP_USER_AGENT'].'.<br />Votre adresse IP est '.$ip.'.';
- ?>
- </body>
- </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Vos informations</title>
<?php
if(!$ip=getenv('HTTP_CLIENT_IP'))
{
if(!$ip=getenv('HTTP_X_FORWARDED_FOR'))
{
if(!$ip=$_SERVER['REMOTE_ADDR'])
{
$ip=getenv('REMOTE_ADDR');
}
}
}
if(!isset($_POST['height']) || !isset($_POST['width']) || !isset($_POST['nb_plugins']))
{
echo '<script type="text/javascript">
<!--
function complete()
{
document.infos=document.getElementById("infos");
document.infos.nb_plugins.value=navigator.plugins.length;
document.infos.width.value=screen.width;
document.infos.height.value=screen.height;
document.infos.submit();
}
//-->
</script>
</head>
<body onload="complete();">
<form id="infos" action="'.$_SERVER['REQUEST_URI'].'" method="post">
<input type="hidden" name="width" />
<input type="hidden" name="height" />
<input type="hidden" name="nb_plugins" />
</form>';
}
else
{
echo '</head>
<body>';
echo 'Votre résolution est de '.$_POST['width'].'×'.$_POST['height'].'.<br />';
echo 'Vous avez '.$_POST['nb_plugins'].' plugins installés.<br />';
}
echo 'Votre navigateur est '.$_SERVER['HTTP_USER_AGENT'].'.<br />Votre adresse IP est '.$ip.'.';
?>
</body>
</html>