Your browser must have JavaScript enabled in order to view this page.
 >  >
 
Welcome Guest#214 Login/register    Go to Bottom
Go to Top

Source for file alley2.php

Documentation is available at alley2.php

  1. <?php
  2. /**
  3.  * A dark alley
  4.  *
  5.  * DutchPIPE version 0.4; PHP version 5
  6.  *
  7.  * LICENSE: This source file is subject to version 1.0 of the DutchPIPE license.
  8.  * If you did not receive a copy of the DutchPIPE license, you can obtain one at
  9.  * http://dutchpipe.org/license/1_0.txt or by sending a note to
  10.  * license@dutchpipe.org, in which case you will be mailed a copy immediately.
  11.  *
  12.  * @package    DutchPIPE
  13.  * @subpackage dpuniverse_page
  14.  * @author     Lennert Stock <ls@dutchpipe.org>
  15.  * @copyright  2006, 2007 Lennert Stock
  16.  * @license    http://dutchpipe.org/license/1_0.txt  DutchPIPE License
  17.  * @version    Subversion: $Id: alley2.php 278 2007-08-19 22:52:25Z ls $
  18.  * @link       http://dutchpipe.org/manual/package/DutchPIPE
  19.  * @see        DpPage
  20.  */
  21.  
  22. /**
  23.  * Builts upon the standard DpPage class
  24.  */
  25. inherit(DPUNIVERSE_STD_PATH 'DpPage.php');
  26.  
  27. /**
  28.  * A dark alley
  29.  *
  30.  * @package    DutchPIPE
  31.  * @subpackage dpuniverse_page
  32.  * @author     Lennert Stock <ls@dutchpipe.org>
  33.  * @copyright  2006, 2007 Lennert Stock
  34.  * @license    http://dutchpipe.org/license/1_0.txt  DutchPIPE License
  35.  * @version    Release: 0.2.1
  36.  * @link       http://dutchpipe.org/manual/package/DutchPIPE
  37.  * @see        DpPage
  38.  */
  39. final class Alley2 extends DpPage
  40. {
  41.     /**
  42.      * Sets up the page at object creation time
  43.      */
  44.     public function createDpPage()
  45.     {
  46.         // Standard setup calls:
  47.         $this->title dp_text('A dark alley');
  48.         $this->body '<img src="' DPUNIVERSE_IMAGE_URL 'alley2.jpg"
  49. width="450" height="339" border="0" usemap="#alley2_map" alt=""
  50. style="border: solid 1px black; margin-right: 10px" title="" alt=""
  51. align="left" />
  52. <div style="width: 220px; float: left">
  53. <br /><b>'
  54.             . dp_text('A Dark Alley''</b><br />'
  55.             . sprintf(dp_text('<p align="justify">You are in a dark alley.
  56. Better get out of here quick.</p><p align="justify">To the
  57. <a href="%s">southeast</a> you see a square.</p>'),
  58.             DPSERVER_CLIENT_URL '?location=/page/square.php')
  59.             . '</div><br clear="all" />';
  60.         $this->setNavigationTrail(
  61.             array(DPUNIVERSE_NAVLOGO''),
  62.             array(dp_text('Showcases')DPUNIVERSE_PAGE_PATH
  63.             . 'showcases.php'));
  64.         $this->addExit(array(dp_text('se')dp_text('square')),
  65.             DPUNIVERSE_PAGE_PATH 'square.php'NULL,
  66.             array('alley2_map''square_area''rect''165,303,450,339'));
  67.     }
  68.  
  69.     /**
  70.      * Called at regular intervals
  71.      */
  72.     public function resetDpPage()
  73.     {
  74.         $this->makePresent(DPUNIVERSE_NPC_PATH 'drunk.php');
  75.     }
  76. }
  77. ?>

Documentation generated on Mon, 03 Sep 2007 22:18:27 +0200 by phpDocumentor 1.3.0RC6

Click me!
Guest#214
 
 
 
  Go to Top
 
 
Input Field OptionsClose Input Field Go to Top
 
Legal Notices | Copyright © 2006, 2007 Lennert Stock. All rights reserved. Last update: Mon Sep 03 2007, 21:50 CET.