<?php /*
 See http://srwz.us/source.php?page=style for the source of style.php
 See http://srwz.us/source.php?page=isMobileDevice for the source of isMobileDevice.php
 See http://srwz.us/source.php?page=source for the source of source.php
 Feel free to steal this code (as long as you give credit to me)!
*/ 
?><?php

date_default_timezone_set
("US/Central");

$links = array(
 
'Scott Wallace' => array(
  
'name' => "Scott-Wallace.net",
  
'icon' => "/images/scott-wallace.png",
  
'url' => "http://www.scott-wallace.net/",
  
'desc' => "Web design services"
 
),
 
'Zooomr' => array(
  
'name' => "Zooomr",
  
'icon' => "/images/photos.png",
  
'url' => "http://www.zooomr.com/photos/scottywz/",
  
'desc' => "Photos that I have taken; most are released under a Creative Commons license"
 
),
 
'Last.fm' => array(
  
'name' => "Last.fm",
  
'icon' => "/images/last-fm.png",
  
'url' => "http://www.last.fm/user/ScottyWZ",
  
'desc' => "My Last.fm profile, including my music listening habits"
 
),
 
'GreenMidget' => array(
  
'name' => "Green Midget Caf&eacute;",
  
'icon' => "/images/greenmidgetcafe.png",
  
'url' => "http://www.greenmidgetcafe.com/",
  
'desc' => "A tribute to Monty Python's \"SPAM\" sketch"
 
),
 
'Wikipedia' => array(
  
'name' => "User:ScottyWZ",
  
'icon' => "/images/wikipedia.png",
  
'url' => "http://en.wikipedia.org/wiki/User:ScottyWZ",
  
'desc' => "My user page on the English Wikipedia"
 
),
 
'Source' => array(
  
'name' => "source.php",
  
'icon' => "/images/sourcephp.png",
  
'url' => "/source.php",
  
'desc' => "PHP source code of this site"
 
),
);
$order = array(
 
'Scott Wallace',
 
'Zooomr',
 
'Last.fm',
 
'GreenMidget',
 
'Wikipedia',
 
'Source',
);

$scheme = (isset($_GET['scheme']) && $_GET['scheme'] !== "") ? $_GET['scheme'] : "default";

include 
"isMobileDevice.php";

?><!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=utf-8" />
  <title>Scott Wallace</title>
  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
  <!--openid-->
   <link rel="openid.server" href="http://www.myopenid.com/server" />
   <link rel="openid.delegate" href="http://scottywz.myopenid.com/" />
   <meta http-equiv="X-XRDS-Location" content="http://scottywz.myopenid.com/xrds" />
  <!--/openid-->
  <meta name="author" content="Scott Wallace" />
  <!--[if IE]><script type="text/javascript" src="/global/js/ie7/ie7-standard-p.js"></script>
  <link rel="stylesheet" type="text/css" href="/pngtrans.css" /><![endif]-->
  <link rel="stylesheet" type="text/css" href="/style.php?scheme=<?php echo $scheme?>" />
  <meta name="viewport" content="width=540; initial-scale=0.59; minimum-scale=0.59" />
 </head>
 <body<?php 
if (isMobileDevice())
 echo 
" class=\"mobile device_".isMobileDevice(true)."\"";
?>>
  <div id="header">
   <div class="h1" id="logo"><img src="/images/banner.png" alt="Scott Wallace" /></div>
  </div>
  <div id="body"><?php
foreach ($order as $id) {
 
$site $links[$id];
?>
   <div class="site">
    <a href="<?php echo $site['url']; ?>">
     <span class="h2"><img src="<?php echo $site['icon']; ?>" alt="Icon" /><?php echo $site['name']; ?></span><?php if ($site['desc']) { ?><br />
     <span class="desc"><?php echo $site['desc']; ?></span><?php } echo "\n"?>
    </a>
   </div>
<?php
}
?>
  </div>
  <div id="footer">
   <p>Copyright &copy; <?php echo (date("Y") == 2006) ? "2006" "2006-".date("Y"); ?> Scott Wallace.</p>
   <p>Send spam to <a href="mailto:spam@greenmidgetcafe.com">spam@greenmidgetcafe.com</a></p>
  </div>
  <p>
   <a href="http://validator.w3.org/check?uri=referer">
    <img src="/images/xhtml_1-0.png" alt="Valid XHTML 1.0" class="b8015" />
   </a>&nbsp;&nbsp;
   <a href="http://jigsaw.w3.org/css-validator/check/referer">
    <img src="/images/css.png" alt="Valid CSS" class="b8015" />
   </a>
  </p>
  <script type="text/javascript">
   var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
   document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
   var pageTracker = _gat._getTracker("UA-382238-3");
   pageTracker._initData();
   pageTracker._trackPageview();
  </script>
 </body>
</html>