changeset 519:50ce4311214e

Sync.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 19 Jan 2008 22:27:10 +0000
parents 99fe667061e4
children 8dad8286cce9
files www/common.inc.php www/loc.php www/ss.php www/wizards.txt
diffstat 4 files changed, 56 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/www/common.inc.php	Sat Jan 19 22:26:16 2008 +0000
+++ b/www/common.inc.php	Sat Jan 19 22:27:10 2008 +0000
@@ -1,5 +1,5 @@
 <?
-function printPageHeader($title)
+function printPageHeader($title, $extra = "")
 {
 global $pageCSS, $pageCharset;
 echo "<?xml version=\"1.0\" encoding=\"".$pageCharset."\"?>\n";
@@ -12,6 +12,7 @@
  <title><? echo $title ?></title>
  <link href="<? echo $pageCSS ?>" rel="stylesheet" type="text/css" />
  <meta name="keywords" content="batmud,map,laenor,lucentium,rothikgen,desolathya,furnachia,mud,mush,mmorpg,mmo,massively,multiplayer,online,network,game,ggr,pupunen"/>
+ <? echo $extra; ?>
 </head>
 <body>
 <!-- ============================================= -->
--- a/www/loc.php	Sat Jan 19 22:26:16 2008 +0000
+++ b/www/loc.php	Sat Jan 19 22:27:10 2008 +0000
@@ -28,7 +28,8 @@
 
 /* Initialization
  */
-printPageHeader($pageTitle." - Locations");
+printPageHeader($pageTitle." - Locations",
+  "<script type=\"text/javascript\" src=\"tooltip.js\"></script>");
 //echo "<div><b>DEVELOPMENT VERSION</b></div>";
 
 $locTable = array();
@@ -167,14 +168,15 @@
 
   ksort($alphaTable, SORT_STRING);
 
-
   /* Print locations per first character
    */
+  $locationTips = array();
   $totalLoc = 0;
   $maxRow = 6;
   while (list($key, $value) = each($alphaTable)) {
     if (count($value) > 0) {
       asort($value);
+      
       echo "<h3><a name=\"".strtolower($key)."\"></a>".$key."</h3>\n";
       echo "<table class=\"loc\" width=\"95%\">\n";
       $n = 0;
@@ -194,6 +196,15 @@
           echo htmlentities($iv["name"])."</a>";
         }
         
+        if (isset($iv["freeform"]) && strlen($iv["freeform"]) > 0) {
+          echo " <img src=\"question.png\" onmouseover=\"stt(".$totalLoc.");\" onmouseout=\"htt();\" />\n";
+          
+          $locationTips[$totalLoc] = array(
+            "title" => $iv["name"],
+            "desc" => $iv["freeform"]
+          );
+        }        
+        
         if (count($iv["coders"]) > 0 && $showCoders) {
           $isSG = preg_match("/[SG]/", $iv["flags"]);
           if ((!isset($coderName) && !$isSG) || isset($coderName)) {
@@ -226,8 +237,17 @@
       echo "</table>\n";
     }
   }
+  
+  echo "<p><b>".$totalLoc."</b> locations.</p>\n";
 
-  echo "<p><b>".$totalLoc."</b> locations.</p>\n";
+  /* Print out location tooltip HTML
+   */
+  reset($locationTips);
+  while (list($key, $value) = each($locationTips)) {
+    echo "<div class=\"tooltip\" id=\"tt".$key.
+    "\"><div class=\"holder\"><b>".htmlentities($value["title"]).
+    "</b><br />".htmlentities($value["desc"])."</div></div>\n";
+  }
 } else {
   echo "<p><b>No locations known!</b></p>\n";
 }
--- a/www/ss.php	Sat Jan 19 22:26:16 2008 +0000
+++ b/www/ss.php	Sat Jan 19 22:27:10 2008 +0000
@@ -59,7 +59,15 @@
         " <tr>\n".
         "  <td>".htmlentities($ik)."</td>\n".
         "  <td class=\"".$iv["continent"]."\">".htmlentities($iv["name"])."</td>\n".
-        "  <td>".$continentList[$iv["continent"]]."</td>\n".
+        "  <td>";
+        
+        $t = $iv["continent"];
+        if (isset($continentList[$t]))
+          echo $continentList[$t];
+        else
+          echo $specialList[$t];
+        
+        echo "</td>\n".
         " </tr>\n";
   }
   echo "</table>\n".
--- a/www/wizards.txt	Sat Jan 19 22:26:16 2008 +0000
+++ b/www/wizards.txt	Sat Jan 19 22:27:10 2008 +0000
@@ -9,7 +9,7 @@
 	megalomaniac obsession for documentation which sometimes
 	grows larger than the projects themselves.$
 
-Femko;bat;bat://album91/aae.sized.jpg;
+Femko;bat;img/femko.jpg;
 	The kinky wizard from Germany, the land of beer and bratwurst,
 	und lederhosen. His known work includes sub-areas in the
 	Valley of the Kings, such as the ship in Sesmia and Liscom's tower.
@@ -49,7 +49,7 @@
 	it</a> for many interesting insights into his mysterious world,
 	and the origins of <b>Trilloch</b> himself.$
 
-Zin;bat;bat://album19/aax.jpg;
+Zin;bat;img/zin.jpg;
 	Feared, hated and loved, <b>Zin</b> is one of the grand archwizards of the
 	realm. His contributions include areas and the whole new Nun
 	guild (Sisters of Las), and the related quests/tasks.$
@@ -255,8 +255,27 @@
 
 Jaina;bat;img/jaina.jpg;$
 
+#Mandrake;;bat://fdsa;$
+
+Neth;;img/neth.jpg;$
+
+Hablo;bat;img/hablo.jpg;
+	Has done lots of maintenance of areas, and worked on approving
+	other wizards' code. As to personal projects, Hablo has produced
+	Monastery of Beldarus, Rusty Shield bar, ship-related stuff for
+	Melemkor and some raceguilds. He also worked on Nun guild.
+	$
+
+Zhaman;;img/zhaman.jpg;
+	Coder of the "infamous" Kender mansion.
+	$
+
 ####################################################################
-Kimvais;;;$
+Hackop;;;
+	Capture the Flag event, Specified Tell Status ability.
+	$
+
+Kimvais;http://k.77.fi/;img/kimvais.jpg;$
 Arakorni;;;$
 Machaon;;;$
 Sai;;;$
@@ -264,13 +283,11 @@
 Era;;;$
 Corto;;;$
 Grizzt;;;$
-Hablo;bat;;Rusty Shield bar, ship-related stuff for Melemkor, some raceguilds.$
 Enandor;;;$
 Runeaxe;;;Besides his numerous areas, he coded the new Barbarian guild.$
 Darkbaron;;;$
 Lametoby;;;$
 Ruubio;;;$
-Neth;;;$
 Banba;;;$
 Belzoni;;;$
 Blitzer;;;$
@@ -293,7 +310,6 @@
 Gala;;;$
 Gem;;;Mudmarried to Jaf, the creator of BatMUD.$
 Gront;;;$
-Hackop;;;$
 Haplo;;;$
 Henri;;;$
 Horse;;;$
@@ -306,7 +322,6 @@
 Luupy;;;$
 Madrid;;;$
 Malack;;;$
-Mandrake;;;$
 Marlor;;;Original coder of Stifsim.$
 Matte;;;$
 Merri;;;Expanded Zoso's Caverns of the Undying, adding Massive iron statue and Listar.$