This is the PHP source code to qii.sf.net.
To view the source to this source viewer, go here.
<?
//Our section name, "front" by default. Avoid haxor by removing all ".."s
$go = str_replace("..", "", $_GET["go"]);
if (!
$go) $go = "front";
$gofile = "content/".$go.".txt";
?><!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>
  <title>qii - Queer IRC Interface</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="author" content="Nick Parker" />
  <meta name="generator" content="GNU Emacs" />
  <meta name="keywords" content="gay.com, gay.com chat, chat, chat client, irc, chatroom, gay, lesbian, glbt, qii, queer" />
  <meta name="description" content="An open source Gay.com chat client." />
  <style type="text/css" media="screen">
   @import url( /layout/qii.css );
  </style>
  <meta name="geo.country" content="US" />
  <meta name="dc.language" content="en" />
  <meta name="copyright" content="Creative Commons BY NC SA" />
</head>
<body>
<div id="rap">
  <div id="menu1"><div id="menu2"><div id="menu3">
   <a href="/go/about">About</a><br />
   <a href="/go/screenshots">Screenshots</a><br />
   <a href="/go/download">Download</a><br />
   <a href="/go/help">Help</a>
  </div></div></div>
  <div id="content1"><div id="content2"><div id="content3">
     <div class="storytitle"><? if ($go != "front") echo ucwords($go); else echo "Welcome!"; ?></div>
     <div class="storycontent">
   <?
      
//if content file is there, load it, otherwise error.
      
if (file_exists($gofile)) {
        
$filecontents = file($gofile);
         while (list (
$line_num, $line) = each ($filecontents)) {
           echo
"        ".$line;
         }
       } else {
         echo
"Could not find content file for \"$go\".";
       }
      
?>
          </div>
  </div></div><?
/*KHTML has a wierd layout bug where it cuts off the last few
  inches from the bottom of the page. This makes up for that
  by adding a a blank image that matches the cutoff length.
  I wouldn't normally do this sort of thing for just one shitty
  browser, but this is a defect serious enough to be worth working
  around. (I'd rather not have large chunks of the site physically
  unviewable to users.)*/
if (strstr($_SERVER["HTTP_USER_AGENT"],"Safari") || strstr($_SERVER["HTTP_USER_AGENT"],"Konqueror")) {
  echo
"<!-- If your browser (KHTML-based) didn't suck, I wouldn't have to add blank space to the bottom of this page so that you could read it. -->";
  echo
'<img src="/layout/safarisucks.png" width="515" height="251" alt="KHTML Sucks" \>';
}
?></div>
</div>
</body></html>