This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
* File functions: Shows results history of fights PvP
|
| 4 |
* Game time
|
| 5 |
*
|
| 6 |
* @name : fight_logs.php
|
| 7 |
* @copyright : (C) 2004,2005,2006 Orodlin Team based on Vallheru Engine ver 1.3
|
| 8 |
* @author : Dellas <Pawel.Dudziec@gmail.com>
|
| 9 |
* @version : 1.3
|
| 10 |
* @since : 21.03.2007
|
| 11 |
*
|
| 12 |
*/
|
| 13 |
|
| 14 |
$title = "Historia walk";
|
| 15 |
require_once("includes/head.php");
|
| 16 |
|
| 17 |
global $player;
|
| 18 |
|
| 19 |
/**
|
| 20 |
* Get the localization for game
|
| 21 |
*/
|
| 22 |
require_once("languages/".$player -> lang."/fightlogs.php");
|
| 23 |
|
| 24 |
if (!isset($_GET['view']) ||!ereg("^[1-9][0-9]*$", $_GET['view']))
|
| 25 |
{
|
| 26 |
$_GET['view'] = $player -> id;
|
| 27 |
}
|
| 28 |
$strInfo = ($_GET['view'] == $player ->id)? INFO : INFO1.' <a href="view.php?view='.$_GET['view'].'">'.INFO2.' '.$_GET['view'].'</a> '.INFO3;
|
| 29 |
|
| 30 |
$query = $db -> Execute("SELECT `logs` FROM `fight_logs` WHERE `owner`=".$_GET['view']);
|
| 31 |
$strLog = $query -> fields['logs'];
|
| 32 |
|
| 33 |
$arrLogs1 = array();
|
| 34 |
$arrText = array();
|
| 35 |
$arrDate = array();
|
| 36 |
|
| 37 |
$arrLogs1 = explode( "\n", $strLog );
|
| 38 |
|
| 39 |
foreach ($arrLogs1 as $key => $value)
|
| 40 |
{
|
| 41 |
$arrTemp = explode("\t", $value);
|
| 42 |
$arrDate[$key] = $arrTemp[0];
|
| 43 |
$arrText[$key] = $arrTemp[1];
|
| 44 |
}
|
| 45 |
|
| 46 |
/**
|
| 47 |
* Assign variables to template and display page
|
| 48 |
*/
|
| 49 |
$smarty -> assign(array("Tinfo" => $strInfo,
|
| 50 |
"arrText" => $arrText,
|
| 51 |
"arrDate" => $arrDate));
|
| 52 |
$smarty -> display ('fightlogs.tpl');
|
| 53 |
require_once("includes/foot.php");
|
| 54 |
?>
|