[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 10-23-2005, 03:26 AM   #1 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

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 03:32 AM.
Barrucadu is offline  
Old 10-23-2005, 07:59 AM   #2 (permalink)
NamePros Regular
 
NuPagady's Avatar
 
Join Date: Jul 2005
Location: Lithuania
Posts: 474
42.43 NP$ (Donate)

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 05:58 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85