| 1 |
<?php |
| 2 |
/** |
| 3 |
* File functions: |
| 4 |
* Main file of chat - bot Innkeeper and private talk to other players |
| 5 |
* |
| 6 |
* @name : chat.php |
| 7 |
* @copyright : (C) 2004,2005,2006, 2007 Vallheru Team based on Gamers-Fusion ver 2.5 |
| 8 |
* @author : thindil <thindil@users.sourceforge.net> |
| 9 |
* @author : eyescream <tduda@users.sourceforge.net> |
| 10 |
* @version : 1.3 |
| 11 |
* @since : 17.04.2007 |
| 12 |
* |
| 13 |
*/ |
| 14 |
|
| 15 |
// |
| 16 |
// |
| 17 |
// This program is free software; you can redistribute it and/or modify |
| 18 |
// it under the terms of the GNU General Public License as published by |
| 19 |
// the Free Software Foundation; either version 2 of the License, or |
| 20 |
// (at your option) any later version. |
| 21 |
// |
| 22 |
// This program is distributed in the hope that it will be useful, |
| 23 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 24 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 25 |
// GNU General Public License for more details. |
| 26 |
// |
| 27 |
// You should have received a copy of the GNU General Public License |
| 28 |
// along with this program; if not, write to the Free Software |
| 29 |
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 30 |
// |
| 31 |
// $Id$ |
| 32 |
|
| 33 |
$title = 'Tawerna'; |
| 34 |
$title1 = $title; |
| 35 |
require_once('includes/head.php'); |
| 36 |
|
| 37 |
/** |
| 38 |
* Get the localization for game |
| 39 |
*/ |
| 40 |
require_once('languages/'.$player -> lang.'/chat.php'); |
| 41 |
|
| 42 |
if (!isset($_GET['room'])) $_GET['room'] = 'izba'; |
| 43 |
$smarty -> assign(array( |
| 44 |
'Room' => $_GET['room'], |
| 45 |
'Playerid' => $player -> id, |
| 46 |
'Gender' => $player -> gender |
| 47 |
)); |
| 48 |
$smarty -> display ('chat.tpl'); |
| 49 |
|
| 50 |
require_once('includes/foot.php'); |
| 51 |
?> |