| 1 |
<?php |
| 2 |
/** |
| 3 |
* File functions: |
| 4 |
* List of donators to game |
| 5 |
* |
| 6 |
* @name : alley.php |
| 7 |
* @copyright : (C) 2006 Vallheru Team based on Gamers-Fusion ver 2.5 |
| 8 |
* @author : thindil <thindil@users.sourceforge.net> |
| 9 |
* @version : 1.1 |
| 10 |
* @since : 04.03.2006 |
| 11 |
* |
| 12 |
*/ |
| 13 |
|
| 14 |
// |
| 15 |
// |
| 16 |
// This program is free software; you can redistribute it and/or modify |
| 17 |
// it under the terms of the GNU General Public License as published by |
| 18 |
// the Free Software Foundation; either version 2 of the License, or |
| 19 |
// (at your option) any later version. |
| 20 |
// |
| 21 |
// This program is distributed in the hope that it will be useful, |
| 22 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 |
// GNU General Public License for more details. |
| 25 |
// |
| 26 |
// You should have received a copy of the GNU General Public License |
| 27 |
// along with this program; if not, write to the Free Software |
| 28 |
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 29 |
// |
| 30 |
// $Id: alley.php 566 2006-09-13 09:31:08Z thindil $ |
| 31 |
|
| 32 |
$title = "Aleja zasłużonych"; |
| 33 |
require_once("includes/head.php"); |
| 34 |
|
| 35 |
/** |
| 36 |
* Get the localization for game |
| 37 |
*/ |
| 38 |
require_once("languages/".$player -> lang."/alley.php"); |
| 39 |
|
| 40 |
if ($player -> location != 'Altara' && $player -> location != 'Ardulith') |
| 41 |
{ |
| 42 |
error (ERROR); |
| 43 |
} |
| 44 |
|
| 45 |
$objDonators = $db -> Execute("SELECT name FROM donators ORDER BY name"); |
| 46 |
$arrDonators = array(); |
| 47 |
$i = 0; |
| 48 |
while (!$objDonators -> EOF) |
| 49 |
{ |
| 50 |
$arrDonators[$i] = $objDonators -> fields['name']; |
| 51 |
$i ++; |
| 52 |
$objDonators -> MoveNext(); |
| 53 |
} |
| 54 |
$objDonators -> Close(); |
| 55 |
|
| 56 |
/** |
| 57 |
* Assign variables to template and display page |
| 58 |
*/ |
| 59 |
$smarty -> assign(array("Donators" => $arrDonators, |
| 60 |
"Alleyinfo" => ALLEY_INFO)); |
| 61 |
$smarty -> display ('alley.tpl'); |
| 62 |
|
| 63 |
require_once("includes/foot.php"); |
| 64 |
?> |