NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page WhatIsMySystem.com

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-23-2005, 04:26 AM THREAD STARTER               #1 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




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 04:32 AM.
Barrucadu is offline  
Old 10-23-2005, 08:59 AM   #2 (permalink)
NamePros Regular
 
NuPagady's Avatar
Join Date: Jul 2005
Location: Lithuania
Posts: 482
NuPagady is on a distinguished road
 



You ou may want to check this thread:
http://www.namepros.com/showthread.p...ght=%24_server
NuPagady is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:24 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger