<?php
if (eregi('(Nintendo Wii)', $_SERVER['HTTP_USER_AGENT'])) echo 'wii=true'; else echo 'wii=false';
?>
if (wii == false) {
trace ('You must be using a Wii to send your score.');
} else {
trace ('Score sent!');
}
myData = new LoadVars();
myData.onLoad = function() {
if(this.wii == 'false')
{
iswii.text = 'You don\'t have a Wii!';
} else {
iswii.text = 'You\'re using a Wii!';
}
};
myData.load("http://tests.blankcolors.com/checkwii.php");