| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Barru. | WhatIsMySystem.com I'm currently making a site similar to whatismysystem.com here, what other features could I add to it? Please include the PHP/HTML/Javascript. I've looked on HotScripts.com but I couldnt find anything that I wanted. The source code is here: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>{ ( Your System ) }</title>
<style type="text/css">
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-weight: bold;
}
-->
</style>
</head>
<body background="bg.gif">
<br />
<div align = "center"><table width="461" border="2" cellpadding="2" cellspacing="2" bordercolor="#A9D3FE" background="bg2.gif">
<tr>
<td width="230.5" background="bg2.gif"><?php
$browsers = "mozilla msie gecko firefox ";
$browsers.= "konqueror safari netscape navigator ";
$browsers.= "opera mosaic lynx amaya omniweb";
$browsers = split(" ", $browsers);
$nua = strToLower( $_SERVER['HTTP_USER_AGENT']);
$l = strlen($nua);
for ($i=0; $i<count($browsers); $i++){
$browser = $browsers[$i];
$n = stristr($nua, $browser);
if(strlen($n)>0){
$GLOBALS["ver"] = "";
$GLOBALS["nav"] = $browser;
$j=strpos($nua, $GLOBALS["nav"])+$n+strlen($GLOBALS["nav"])+1;
for (; $j<=$l; $j++){
$s = substr ($nua, $j, 1);
if(is_numeric($GLOBALS["ver"].$s) )
$GLOBALS["ver"] .= $s;
else
break;
}
}
}
echo "<span class='style1'>Browser: " . $GLOBALS["nav"] . " " . $GLOBALS["ver"] . "<br /></span>";
?></td>
<td background="bg2.gif"><?php
if($_SERVER['HTTP_REFERER']==""){
$referer = "none";
}else{
$referer = $_SERVER['HTTP_REFERER'];
}
echo "<span class='style1'>Referer: " . $referer . "<br /> </span>";
?></td></tr>
<tr>
<td background="bg2.gif"><?php
echo "<span class='style1'>IP: " . $_SERVER["REMOTE_ADDR"] . "</span>";
?></td>
<td background="bg2.gif"><script type='text/javascript'>
w = screen.width;
h = screen.height;
document.write('<span class="style1">Resolution: ', w, ' × ', h + "<br></span>");</script></td>
</tr>
<tr><td background="bg2.gif"><script type='text/javascript'>
document.write('<span class="style1">Color Depth: ')
document.write(window.screen.colorDepth + "<br></span>")
</script></td>
<td background="bg2.gif"><script type='text/javascript'>document.write("<span class='style1'>Available View Area: ")
document.write(window.screen.availWidth + "*")
document.write(window.screen.availHeight + "<br></span>")</script>
</tr>
</table></div>
</body>
</html>
__________________ Last edited by Mikor; 10-23-2005 at 03:32 AM. |
| |
| | #2 (permalink) |
| NamePros Regular |
__________________ Poll: Are you addicted to NamePros? · I love it. 24/7. I'm just so addicted to it! · I don't think so. Spending 10 hours a day on a forum is not an addiction · I don't think so. Byt my psychologist says I am. · What's NamePros? :notme: · (Results) |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |