%PDF- %PDF-
| Direktori : /data/www_bck/varak.net_bck/epgp.varak.net/ |
| Current File : //data/www_bck/varak.net_bck/epgp.varak.net/detail.php |
<?php
include "lib.php";
include "config.php";
$base = file_get_contents("epgp.base");
$tzac = getmicrotime();
$spojeni = pg_connect("host=$sql port=5432 dbname=$db user=$usr password=$pass");
$id = $_GET['id'];
$jmeno = trim(q("select name from characters where id=$id"));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>EPGP přehled - <?php echo $jmeno; ?>
</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script type="text/javascript" src="//wow.zamimg.com/widgets/power.js"></script><script>var wowhead_tooltips = { "colorlinks": true, "iconizelinks": true, "renamelinks": true }</script>
</head>
<body>
<!-- <script type="text/javascript" src="http://static.wowhead.com/widgets/power.js"></script> -->
<div id="wrap">
<div id="header">
<img src="images/header.jpg" width="768" height="120" alt="Time To Rest" />
</div>
<div id="content">
<h1>Detailní přehled - <?php echo $jmeno; ?></h1>
<table width="95%">
<tr>
<th width="10%">#</th>
<th width="20%">Čas</th>
<th width="50%">Popis</th>
<th width="10%">EP</th>
<th width="10%">GP</th>
</tr>
<?php
$i = 1;
$res = q("select \"time\", \"desc\", \"ep\", \"gp\" from \"log\" where \"character\"=$id order by \"time\" desc");
foreach($res as $row)
{
// Prace s itemem
$matches = array();
if(preg_match("/\\|[0-9a-f]+\\|Hitem:([0-9]+):[0-9:\\-]+\\|h\\[(.+?)\\]\\|h\\|r/", $row[1], $matches))
{
$row[1] = "<a href=\"http://www.wowhead.com/item=".$matches[1]."\" class=\"q4\">[".$matches[2]."]</a>";
}
echo "<tr>\n";
echo " <td width=\"10%\">$i</td>\n";
echo " <td width=\"20%\">".date("d. m. Y H:i:s", $row[0])."</td>\n";
echo " <td width=\"50%\">".$row[1]."</td>\n";
echo " <td width=\"10%\">".$row[2]."</td>\n";
echo " <td width=\"10%\">".$row[3]."</td>\n";
echo "</tr>\n";
$i++;
}
pg_close($spojeni);
$tkon = getmicrotime();
$time = $tkon-$tzac;
$time = sprintf("%01.4f", $time);
?>
</table>
</div>
<div id="footer"><?php echo "Generated in $time seconds | $queries SQL query executed |"; ?> © Revivalx @ Drak'Thul EU | Design by
<a href="http://www.ginger-ninja.net/" title="Ginger Ninja!">Ginger Ninja!</a>
</div>
</div>
</body>
</html>