Location: PHPKode > projects > OTWG - Online Turn based War Game > otwg/index.php
<?php
/*  Copyright 2006, Robert Widell, KodApa & the OTWG project @ Sourceforge
	See http://sourceforge.net/projects/otwg/ for the latest news

	This file is part of OTWG.

    OTWG is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    OTWG is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with OTWG; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
		
   // always include the class2.php file - this is the main e107 file
   require_once("../../class2.php");
   
   // this generates all the HTML up to the start of the main section
   require_once(HEADERF);

   // write your PHP code to generate the required HTML here
   $text = "Currently playing <strong>".$otwg_scenario_name."</strong> v".$otwg_scenario_version." by ".$otwg_scenario_author;
   $text .= "<br>".$otwg_scenario_briefing;
   $text .= "<br>".$otwg_scenario_description;
   $text .= "<br><img src='resources/images/".$otwg_scenario_image."'/>";
   
   $text .= "<br>This scenario has ".$otwg_scenario_no_of_sides." sides:";
   $counter = 0;
   foreach ($otwg_side_name as $sides_in_scenario)
	{
		$text .= "<br><a href='".e_PLUGIN_ABS."OTWG/src/game/sides.php?side_id=".$otwg_scenario_sides_ID[$counter]."'>".$sides_in_scenario."</a>";
		$counter++;
	}

   // Ensure the pages HTML is rendered using the theme layout.
   $ns->tablerender(OTWG_TITLE, $text);

   // this generates all the HTML (menus etc.) after the end of the main section
   require_once(FOOTERF);
?>
Return current item: OTWG - Online Turn based War Game