Changeset 551
- Timestamp:
- Mar 29, 2009, 2:10:27 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 1 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Readme.txt
r531 r551 4 4 1) Konfigurační soubory 5 5 6 - Ve složkce inc zkopírovat soubor db.sample.php na db.php a vyplnit konfigurační údaje.6 - Ve složkce inc zkopírovat soubor config.sample.php na config.php a vyplnit konfigurační údaje. 7 7 - Ve složkce gh_system zkopírovat soubor conn.sample.php na conn.php a vyplnit konfigurační údaje. 8 8 - Ve složkce bug_tracker zkopírovat soubor nastaveni.sample.php na nastaveni.php a vyplnit konfigurační údaje. -
trunk/inc
- Property svn:ignore
-
old new 1 db.php1 config.php
-
- Property svn:ignore
-
trunk/inc/html.php
r550 r551 46 46 public function Start() 47 47 { 48 $code = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"> 49 <html> 50 <head> 51 <meta http-equiv=\"Content-Type\" content=\"text/html; charset=".$this->CfgChck("charset")."\" /> 52 <meta http-equiv=\"Content-Language\" content=\"cs\" /> 53 <meta http-equiv=\"Cache-Control\" content=\"no-cache\" /> 54 <meta http-equiv='Pragma' content='no-cache' /> 55 <meta http-equiv='Expires' content='-1' /> 56 <meta name=\"author\" content=\"".$this->CfgChck("author")."\" /> 57 <meta name=\"copyright\" content=\"".$this->CfgChck("copyright")."\" /> 58 <meta name='robots' content='index,follow' /> 59 <meta name='googlebot' content='index,follow,snippet,archive' /> 60 <link href=\"".$this->CfgChck("favicon").".ico\" rel=\"shortcut icon\" /> 61 <link href=\"inc/teamspeakdisplay/teamspeakdisplay.css\" rel=\"stylesheet\" type=\"text/css\"> 62 <title>".$this->CfgChck("title")."</title> 63 <meta name=\"description\" content=\"".$this->CfgChck("description")."\" /> 64 <meta name=\"keywords\" content=\"".$this->CfgChck("keywords")."\" /> 65 <link rel=\"stylesheet\" type=\"text/css\" href=\"styles/style.css\" /> 66 <script type=\"text/javascript\" src=\"styles/global.js\"></script> 67 <!--[if IE]><link rel=\"stylesheet\" type=\"text/css\" href=\"styles/ie.css\" /><![endif]--> 68 </head> 69 <body>"; 48 global $Config; 49 50 $code = '<?xml version="1.0" encoding="utf-8"?>'. 51 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'. 52 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">'. 53 '<head>'. 54 '<meta http-equiv="content-type" content="application/xhtml+xml; charset='.$Config['Web']['Charset'].'" />'. 55 '<meta http-equiv="content-Language" content="cs" />'. 56 '<meta name="robots" content="index,follow" />'. 57 '<meta name="googlebot" content="index,follow,snippet,archive" />'. 58 '<link href="imgs/fav.ico" rel="shortcut icon" />'. 59 '<title>'.$Config['Web']['Title'].'</title>'. 60 '<meta name="description" content="'.$Config['Web']['Description'].'" />'. 61 '<meta name="keywords" content="'.$Config['Web']['Keywords'].'" />'. 62 '<link rel="stylesheet" type="text/css" href="styles/style.css" />'. 63 '<link href="inc/teamspeakdisplay/teamspeakdisplay.css" rel="stylesheet" type="text/css" />'. 64 '<link rel="alternate" title="Články" href="rss.php?category=articles" type="application/rss+xml" />'. 65 '<script type="text/javascript" src="styles/global.js"></script>'. 66 '<!--[if IE]><link rel="stylesheet" type="text/css" href="styles/ie.css" /><![endif]-->'. 67 '</head>'. 68 '<body>'; 70 69 $this->TimerStart(); 71 70 echo($code); … … 198 197 global $db_webu; 199 198 199 echo('<table class="NewsCategoryTable">'. 200 '<tr>'. 201 '<td><a href="?page=servernews">Server novinky</a></td>'. 202 '<td><a href="?page=gmnews">GM novinky</a></td>'. 203 '<td><a href="?page=gamenews">In-game novinky</a></td>'. 204 '<td><a href="?page=articles">Články</a></td>'. 205 '<td><a href="?page=main">Vše</a></td>'. 206 '</tr></table><br />'); 207 $this->QuickNew(); 208 200 209 if($kategorie == "all") 201 210 { … … 219 228 while($row = mysql_fetch_array($result)) 220 229 { 230 $row['text'] = str_replace('<br>', '<br />', $row['text']); 221 231 switch ($row["category"]) 222 232 { … … 242 252 $time = mktime(0, 0, 0, $date[1], $date[2], $date[0]); 243 253 $human_date = date ("d.m.Y", $time); 244 echo("<table align=\"center\" border=\"1\" width=\"500\"> 245 <tr> 246 <td><b>".$row["title"]."</b></td> 247 <td width=\"100\">".$human_date."</td> 248 </tr> 249 <tr> 250 <td colspan=\"2\"> 251 ".$row["text"]." 252 </td> 253 </tr> 254 <tr> 255 <td>Sekce : <a href=\"?page=".$link."\">".$cat."</a></td> 256 <td>".$row["autor"]."</td> 257 </tr> 258 </table> 259 <br />"); 260 } 261 echo("<p align=center>"); 254 echo('<table class="NewsQuickInfoTable">'. 255 '<tr>'. 256 '<td><strong>'.$row["title"].'</strong></td>'. 257 '<td style="width: 100px">'.$human_date.'</td>'. 258 '</tr>'. 259 '<tr>'. 260 '<td colspan="2">'.$row["text"].'</td>'. 261 '</tr>'. 262 '<tr>'. 263 '<td>Sekce : <a href="?page='.$link.'">'.$cat.'</a></td>'. 264 '<td>'.$row['autor'].'</td>'. 265 '</tr>'. 266 '</table>'. 267 '<br />'); 268 } 269 echo('<p style="text-align: center">'); 262 270 if($offset < $pocet) 263 271 { … … 266 274 if($offset > $limit) 267 275 { 268 echo(" <a href='$_SERVER[PHP_SELF]?offset=" . ($offset - $limit) . "'>starší --></a>\n"); 269 } 270 } else 271 { 272 echo("<center><h3>Žádný článek v této kategorii !</h3></center>"); 276 echo(' <a href="'.$_SERVER['PHP_SELF'].'?offset='.($offset - $limit).'">starší --></a>'); 277 } 278 echo('</p>'); 279 } else 280 { 281 echo('<h3 style="text-align: center">Žádný článek v této kategorii !</h3>'); 273 282 } 274 283 } … … 282 291 } else 283 292 { 284 echo('<table align="center" border="1" width="500">'.293 echo('<table class="NewsQuickInfoTable">'. 285 294 '<tr>'. 286 '<td>< b>Rychlý přehled</b></td>'.287 '<td width="100">'.date('d.m.Y', time()).'</td>'.295 '<td><strong>Rychlý přehled</strong></td>'. 296 '<td style="width: 100px;">'.date('d.m.Y', time()).'</td>'. 288 297 '</tr>'. 289 298 '<tr>'. 290 299 '<td colspan="2">'. 291 '< b>Server : </b>'.$server->ServerImg($server->ServerOnline('wow.zdechov.net', 8085)).'<b> (<a href="?page=online">'.$server->MangosOnline().' hráčů</a>) | Patch 3.0.9 | <a href="http://wow.zdechov.net/pages/realmlist.wtf">Realmlist</a> | Více info <a href="?page=server">zde</a></b>'.300 '<strong>Server : </strong>'.$server->ServerImg($server->ServerOnline('wow.zdechov.net', 8085)).'<b> (<a href="?page=online">'.$server->MangosOnline().' hráčů</a>) | Patch 3.0.9 | <a href="http://wow.zdechov.net/pages/realmlist.wtf">Realmlist</a> | Více info <a href="?page=server">zde</a></b>'. 292 301 '</td></tr></table><br />'); 293 302 } -
trunk/inc/server.php
r550 r551 71 71 if ($status) 72 72 { 73 return "<img src=\"imgs/inc/on.gif\"> <font color=\"#234303\" size=\"4\">Online</font>";73 return('<img src="imgs/inc/on.gif" alt="online" /> <span style="text-color: #234303; text-size: 4;">Online</span>'); 74 74 } 75 75 else 76 76 { 77 return "<img src=\"imgs/inc/off.gif\"> <font color=\"#990000\" size=\"4\">Offline</font>";77 return('<img src="imgs/inc/off.gif" alt="offline" /> <span style="text-color: #990000; text-size: 4;">Offline</span>'); 78 78 } 79 79 } -
trunk/index.php
r550 r551 17 17 18 18 echo('<div id="page">'. 19 '<style>'. 20 '#header{height: 174px;background-image: url(imgs/web/headers/header'.rand(0, $num_headers - 1).'.jpg);}'. 21 'a {font-family: Times New Roman; color: #4c4c4c; text-decoration: none; }'. 22 'a:hover {font-family: Times New Roman; color: black; text-decoration: underline; } '. 23 '</style>'. 24 '<div id="header"></div>'. 19 '<div id="header" style="background-image: url(imgs/web/headers/header'.rand(0, $num_headers - 1).'.jpg);"></div>'. 25 20 '<div id="top"></div>'. 26 21 '<div id="menu">'); … … 31 26 array('link' => '?page=register', 'Text' => 'Registrace'), 32 27 array('link' => '?page=begin', 'Text' => 'Jak začít'), 33 array('link' => 'forum/', 'Text' => 'Fórum' , 'Target' => '_blank'),28 array('link' => 'forum/', 'Text' => 'Fórum'), 34 29 array('link' => '?page=gmteam', 'Text' => 'GM Tým'), 35 30 array('link' => '?page=acc', 'Text' => 'Správa účtu'), … … 62 57 63 58 64 echo " 65 <center> 66 <b>Naše ikonka :</b><br /> 67 <a href=\"http://wow.zdechov.net/\"><img src=\"imgs/web/hof_ban.png\" alt=\"WoW Server Heroes of Fantasy\" border=\"0\" /></a><br /> 68 <b>Odkazy :</b><br /> 69 <a href=\"http://servery.wowresource.eu/\"><img src=\"http://servery.wowresource.eu/templates/img/bannery/banner_maly.gif\" alt=\"WoW Server status\" border=\"0\" /></a><br /> 70 <a href=\"http://www.wowhead.com\" target=\"_blank\"><img src=\"http://www.wowhead.com/images/badge_88x31.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"\" /></a><br /> 71 <a href=\"http://firefox.czilla.cz/\"><img alt=\"Získejte Firefox!\" title=\"Získejte Firefox!\" style=\"border:none; width:88px;height:31px\" src=\"http://firefox.czilla.cz/img/p/cz-ff-88x31.gif\" /></a> 72 <a href=\"http://wowpreklad.zdechov.net/\"><img src=\"http://wowpreklad.zdechov.net/banners/baner_88_31.jpg\" alt=\"baner_http://wowpreklad.zdechov.net/\" border=\"0\" height=\"31\" width=\"88\"></a> 73 <b>Statistika :</b><br /> 74 <a href=\"http://www.toplist.cz/\" target=\"_blank\"><img src=\"http://toplist.cz/count.asp?logo=mc&ID=324802\" border=\"0\" width=\"88\" height=\"60\" alt=\"counter\"></a><br /><br /> 75 Počet přístupů: <br /><A HREF=\"http://counter.cnw.cz/\" TARGET=_parent> 76 <IMG SRC=\"http://counter.cnw.cz/monika.cgi?wowzdechov&7&000000&FFFFFF&on\" BORDER=0 ALT=\"CNW:Counter\"></A> 77 78 </center> 79 </div> 80 <div id=\"content\">"; 59 echo('<div class="Banners">'. 60 '<strong>Naše ikonka :</strong><br />'. 61 '<a href="http://wow.zdechov.net/"><img src="imgs/web/hof_ban.png" alt="WoW Server Heroes of Fantasy" /></a><br />'. 62 '<strong>Odkazy :</strong><br />'. 63 '<a href="http://servery.wowresource.eu/"><img src="http://servery.wowresource.eu/templates/img/bannery/banner_maly.gif" alt="WoW Server status" /></a><br />'. 64 '<a href="http://www.wowhead.com"><img src="http://www.wowhead.com/images/badge_88x31.gif" width="88" height="31" alt="" /></a><br />'. 65 '<a href="http://wowpreklad.zdechov.net/"><img src="http://wowpreklad.zdechov.net/banners/baner_88_31.jpg" alt="baner_http://wowpreklad.zdechov.net/" height="31" width="88" /></a>'. 66 '<strong>Statistika :</strong><br />'. 67 '<a href="http://www.toplist.cz/"><img src="http://toplist.cz/count.asp?logo=mc&ID=324802" width="88" height="60" alt="counter" /></a><br /><br />'. 68 'Počet přístupů: <br /><a href="http://counter.cnw.cz/">'. 69 '<img src="http://counter.cnw.cz/monika.cgi?wowzdechov&7&000000&FFFFFF&on" alt="CNW:Counter" /></a>'. 70 '</div>'. 71 '</div>'. 72 '<div id="content">'); 81 73 82 74 // obsah start … … 84 76 if(isset($_GET["logout"]) AND $player->Check()) 85 77 { 86 echo "<center>";78 echo('<center>'); 87 79 $player->Logout(); 88 echo "</center>";80 echo('</center>'); 89 81 $include = 0; 90 82 } … … 94 86 else include_once('pages/main.php'); 95 87 } 96 echo('</div><div id="footer"><p align="center"><br></p><div id="copyright"><a href="?page=autori">Vývoj webu</a></div></div></div>');88 echo('</div><div id="footer"><p><br /></p><div id="copyright"><a href="?page=autori">Vývoj webu</a></div></div></div>'); 97 89 98 90 $html->Stop(); -
trunk/pages/articles.php
r405 r551 1 1 <?php 2 echo " 3 <table align=\"center\" border=\"1\" width=\"500\"> 4 <tr> 5 <td align=\"center\"><a href=\"?page=servernews\">Server novinky</a></td> 6 <td align=\"center\"><a href=\"?page=gmnews\">GM novinky</a></td> 7 <td align=\"center\"><a href=\"?page=gamenews\">In-game novinky</a></td> 8 <td align=\"center\"><a href=\"?page=articles\">Články</a></td> 9 <td align=\"center\"><a href=\"?page=main\">Vše</a></td> 10 </tr> 11 </table> 12 <br /> 13 "; 14 QuickNew(); 15 $html -> ShowNews("4"); 2 3 $html->ShowNews(4); 4 16 5 ?> -
trunk/pages/download.php
r422 r551 1 1 <?php 2 3 4 2 5 3 include('files.php'); … … 17 15 } 18 16 } 19 echo('<tr><td><br >20 <a href="http://wow.zdechov.net:6969/">Heroes of Fantasy BitTorrent Tracker</a><br >21 <a href="http://www.utorrent.com/download.php">Stáhnout BitTorrent klienta uTorrent</a><br >17 echo('<tr><td><br /> 18 <a href="http://wow.zdechov.net:6969/">Heroes of Fantasy BitTorrent Tracker</a><br /> 19 <a href="http://www.utorrent.com/download.php">Stáhnout BitTorrent klienta uTorrent</a><br /> 22 20 <a href="http://www.slunecnice.cz/sw/torrent-harvester/">Stáhnout Torrent Harvester na hledání torrentů</a> 23 21 </td></tr>'); -
trunk/pages/gamenews.php
r550 r551 1 1 <?php 2 2 3 echo("<table align=\"center\" border=\"1\" width=\"500\"> 4 <tr> 5 <td align=\"center\"><a href=\"?page=servernews\">Server novinky</a></td> 6 <td align=\"center\"><a href=\"?page=gmnews\">GM novinky</a></td> 7 <td align=\"center\"><a href=\"?page=gamenews\">In-game novinky</a></td> 8 <td align=\"center\"><a href=\"?page=articles\">Články</a></td> 9 <td align=\"center\"><a href=\"?page=main\">Vše</a></td> 10 </tr> 11 </table> 12 <br />"); 13 $html->QuickNew(); 14 $html -> ShowNews(3); 3 $html->ShowNews(3); 15 4 16 5 ?> -
trunk/pages/gmlog.php
r547 r551 4 4 $pocet_radku = 50; //KOLIK RADKU Z LOGU SE BUDE ZOBRAZOVAT 5 5 6 echo"<table align=center bordercolor='black' border=2><tr><td align=center><strong>Cas</strong><td align=center><strong>P ríkaz</strong><td align=center><strong>GM</strong><td align=center><strong>Vybrán</strong></tr>";6 echo"<table align=center bordercolor='black' border=2><tr><td align=center><strong>Cas</strong><td align=center><strong>Příkaz</strong><td align=center><strong>GM</strong><td align=center><strong>Vybrán</strong></tr>"; 7 7 8 8 9 9 10 10 11 echo "<img src=\"imgs/gm.jpg\">";11 echo('<img src="imgs/gm.jpg" alt="gm">'); 12 12 include($config); 13 13 $data = file($gmlog); 14 14 $radku = count($data); 15 15 $i = 0; 16 echo "<br >";16 echo "<br />"; 17 17 18 18 while($i < $pocet_radku){ -
trunk/pages/gmnews.php
r550 r551 1 1 <?php 2 echo " 3 <table align=\"center\" border=\"1\" width=\"500\"> 4 <tr> 5 <td align=\"center\"><a href=\"?page=servernews\">Server novinky</a></td> 6 <td align=\"center\"><a href=\"?page=gmnews\">GM novinky</a></td> 7 <td align=\"center\"><a href=\"?page=gamenews\">In-game novinky</a></td> 8 <td align=\"center\"><a href=\"?page=articles\">Články</a></td> 9 <td align=\"center\"><a href=\"?page=main\">Vše</a></td> 10 </tr> 11 </table> 12 <br /> 13 "; 14 $html->QuickNew(); 15 $html->ShowNews("2"); 2 3 $html->ShowNews(2); 4 16 5 ?> -
trunk/pages/main.php
r550 r551 1 1 <?php 2 2 3 echo('<table align="center" border="1" width="500">'.4 '<tr>'.5 '<td align="center"><a href="?page=servernews">Server novinky</a></td>'.6 '<td align="center"><a href="?page=gmnews">GM novinky</a></td>'.7 '<td align="center"><a href="?page=gamenews">In-game novinky</a></td>'.8 '<td align="center"><a href="?page=articles">Články</a></td>'.9 '<td align="center"><a href="?page=main">Vše</a></td>'.10 '</tr>'.11 '</table>'.12 '<br />');13 14 $html->QuickNew();15 3 $html->ShowNews('all'); 16 4 -
trunk/pages/search.php
r405 r551 1 1 <?php 2 echo "<center><h3>Vyhledávání :</h3></center>";3 2 4 5 if (isset($_POST["find"]) AND $_POST["find_char"] != "")3 echo('<center><h3>Vyhledávání :</h3></center>'); 4 if(isset($_POST['find']) and $_POST['find_char'] != '') 6 5 { 7 8 9 $find = str_replace(" ", "+",$_POST["find_char"]); 10 11 echo " 12 13 <table align=\"center\" width=\"300\"> 14 <tr> 15 <td colspan=\"2\"><b>Vyhledáno na :</b></td> 16 </tr> 17 <tr> 18 <td>Stránky ohledně WoW</td> 19 <td>Vyhledávače</td> 20 </tr> 21 <tr> 22 <td><a href=\"http://wow.allakhazam.com/search.html?q=".$find."\" target=\"_blank\">Allakhazam</a></td> 23 <td><a href=\"http://www.google.cz/search?hl=cs&q=".$find."\" target=\"_blank\">Google</a></td> 24 </tr> 25 <tr> 26 <td><a href=\"http://www.wowhead.com/?search=".$find."\" target=\"_blank\">Wowhead</a></td> 27 <td><a href=\"http://search.yahoo.com/search?p=".$find."\" target=\"_blank\">Yahoo</a></td> 28 </tr> 29 <tr> 30 <td><a href=\"http://thottbot.com/?s=".$find."\" target=\"_blank\">Thottbot</a></td> 31 <td>-</td> 32 </tr> 33 <tr> 34 <td><a href=\"http://www.wowwiki.com/Special:Search?search=".$find."&go=1\" target=\"_blank\">WoWWiky</a></td> 35 <td>-</td> 36 </tr> 37 <tr> 38 <td colspan=\"2\"><a href=\"?page=search\">Nové vyhledávání</a></td> 39 </tr> 40 </table> 41 42 "; 43 44 45 46 } 47 else 6 $find = str_replace(' ', '+', $_POST['find_char']); 7 echo('<table align="center" width="300">'. 8 '<tr>'. 9 '<td colspan="2"><b>Vyhledáno na :</b></td>'. 10 '</tr>'. 11 '<tr>'. 12 '<td>Stránky ohledně WoW</td>'. 13 '.<td>Vyhledávače</td>'. 14 '</tr>'. 15 '<tr>'. 16 '<td><a href="http://wow.allakhazam.com/search.html?q='.$find.'" target="_blank">Allakhazam</a></td>'. 17 '<td><a href="http://www.google.cz/search?hl=cs&q='.$find.'" target="_blank">Google</a></td>'. 18 '</tr>'. 19 '<tr>'. 20 '<td><a href="http://www.wowhead.com/?search='.$find.'" target="_blank">Wowhead</a></td>'. 21 '<td><a href="http://search.yahoo.com/search?p='.$find.'" target="_blank">Yahoo</a></td>'. 22 '</tr>'. 23 '<tr>'. 24 '<td><a href="http://thottbot.com/?s='.$find.'" target="_blank">Thottbot</a></td>'. 25 '<td>-</td>'. 26 '</tr>'. 27 '<tr>'. 28 '<td><a href="http://www.wowwiki.com/Special:Search?search='.$find.'&go=1" target="_blank">WoWWiky</a></td>'. 29 '<td>-</td>'. 30 '</tr>'. 31 '<tr>'. 32 '<td colspan="2"><a href="?page=search">Nové vyhledávání</a></td>'. 33 '</tr>'. 34 '</table>'); 35 } else 48 36 { 49 echo " 50 <form method=\"post\"> 51 <table align=\"center\"> 52 <tr> 53 <td> 54 Klíčové slovo k vyhledání</td> 55 <td> 56 <input type=\"text\" name=\"find_char\"></td> 57 </tr> 58 <tr> 59 <td colspan=\"2\" align=\"right\"> 60 <input type=\"submit\" value=\"Hledat\" name=\"find\"></td> 61 </tr> 62 </table> 63 </form> 64 "; 37 echo('<form method="post">'. 38 '<table align="center">'. 39 '<tr>'. 40 '<td>'. 41 'Klíčové slovo k vyhledání</td>'. 42 '<td>'. 43 '<input type="text" name="find_char"></td>'. 44 '</tr>'. 45 '<tr>'. 46 '<td colspan="2" align="right">'. 47 '<input type="submit" value="Hledat" name="find"></td>'. 48 '</tr></table></form>'); 65 49 } 66 50 67 68 51 ?> -
trunk/pages/servernews.php
r550 r551 1 1 <?php 2 2 3 echo("<table align=\"center\" border=\"1\" width=\"500\"> 4 <tr> 5 <td align=\"center\"><a href=\"?page=servernews\">Server novinky</a></td> 6 <td align=\"center\"><a href=\"?page=gmnews\">GM novinky</a></td> 7 <td align=\"center\"><a href=\"?page=gamenews\">In-game novinky</a></td> 8 <td align=\"center\"><a href=\"?page=articles\">Články</a></td> 9 <td align=\"center\"><a href=\"?page=main\">Vše</a></td> 10 </tr> 11 </table> 12 <br />"); 13 $html->QuickNew(); 14 $html -> ShowNews(1); 3 $html->ShowNews(1); 15 4 16 5 ?> -
trunk/rss.php
r477 r551 1 <?php2 header('Content-Type: text/xml; charset=utf-8');3 header('Expires: ' . date('D, d M Y H:i:s') . ' GMT');4 header('Last-Modified: ' .date('D, d M Y H:i:s') . ' GMT');5 6 7 include_once("./inc/db.php");8 9 ?>10 <<?php ?>?xml version="1.0" encoding="UTF-8"?>11 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">12 <channel>13 <title>HoF Ticket RSS</title>14 <link>http://wow.zdechov.net/</link>15 <description>HoF Ticket RSS</description>16 <language>cs</language>17 <lastBuildDate><?php echo date("j/m/Y H:i:s").""; ?></lastBuildDate>18 <atom:link href="http://www.samuraj-cz.com/rss/" rel="self" type="application/rss+xml" />19 20 1 <?php 21 2 22 mysql_connect("$db_server", "$db_user", "$db_pass"); 23 mysql_select_db($db_characters); 24 mysql_query("SET NAMES 'utf8'"); 25 $result = mysql_query("SELECT * FROM character_ticket ORDER BY ticket_lastchange DESC, ticket_id DESC LIMIT 20 "); 26 while($rec = mysql_fetch_array($result)) { 27 $guid = $rec["guid"]; 28 $time = $rec["ticket_lastchange"]; 29 $human_date = date("d.m.Y H:i", strtotime($time)); 30 $result2 = mysql_query("SELECT name FROM characters where guid='$guid' "); 31 while($rec2 = mysql_fetch_array($result2)) { 32 $name = $rec2["name"]; 33 } 34 ?> 35 <item> 36 37 <title><?php echo "<br><b>$name</b></br>"; ?> sss</title> 38 <pubDate><?php echo"$human_date";?></pubDate> 39 <link>http://wow.zdechov.net/beta</link> 40 <description><?php echo "<br>".htmlspecialchars(strip_tags($rec[ticket_text]))." </br>"; ?></description> 41 42 43 </item> 44 <?php 45 } 3 header("Content-Type: text/xml"); 4 5 include('inc/db.php'); 6 include('inc/rss_generator.php'); 7 8 $NewsCount = 10; 9 $Items = array(); 10 11 $DbResult = $db->query('SELECT UNIX_TIMESTAMP(date), articles.* FROM articles ORDER BY date DESC LIMIT '.$NewsCount); 12 while($Row = $DbResult->fetch_array()) 13 { 14 $Items[] = array( 15 'Title' => $Row['title'], 16 'Link' => 'http://'.$_SERVER['SERVER_NAME'].$Config['Web']['BaseURL'], 17 'Description' => $Row['text']." (".$Row['autor'].")", 18 'Time' => $Row['UNIX_TIMESTAMP(date)'], 19 ); 20 } 21 22 echo(GenerateRSS(array( 23 'Title' => $Config['Web']['Title'], 24 'Link' => $Config['Web']['BaseURL'], 25 'Description' => $Config['Web']['Description'], 26 'WebmasterEmail' => $Config['Web']['AdminEmail'], 27 'Items' => $Items), $Config['Web']['Charset'])); 46 28 47 29 ?> 48 </channel>49 </rss> -
trunk/styles/style.css
r547 r551 1 /* CSS Document */ 2 body { 3 height: 100%; 4 background-image: url(../imgs/web/bg.jpg); 5 background-repeat: repeat-x; 6 background-color: black; 7 margin-top: -10px; 8 } 9 #page { 10 width: 982px; 11 min-height:100%; 12 height:auto !important; 13 height:100%; 14 background-image: url(../imgs/web/middle.jpg); 15 position: absolute; 16 top: 0px; 17 right: 50%; 18 margin-right: -491px; 19 margin-bottom: 0px; 20 } 21 #top { 22 top: 174px; 23 height: 90px; 24 background-image: url(../imgs/web/top_menu.jpg); 25 } 26 #footer { 27 position: absolute; 28 top: 100%; 29 width: 982px; 30 height: 100px; 31 margin-top: -100px; 32 background-image: url(../imgs/web/bottom.jpg); 33 z-index: 1; 34 } 35 #copyright { 36 margin-left: 140px; 37 font-size:12px; 38 } 39 #menu { 40 top: 200px; 41 width: 150px; 42 margin-left: 110px; 43 margin-top: -50px; 44 height: auto; 45 text-align: justify; 46 padding-bottom: 100px; 47 z-index: 5; 48 float: left; 49 } 50 #content { 51 top: 200px; 52 width: 540px; 53 margin-left: 60px; 54 margin-top: -50px; 55 height: auto; 56 text-align: justify; 57 padding-bottom: 100px; 58 z-index: 5; 59 float: left; 60 } 61 #mainmenu a { 62 display: block; 63 width: 150px; 64 height: 33px; 65 line-height: 33px; 66 margin-top: -21px; 67 overflow: hidden; 68 color: white; 69 font-weight: bold; 70 font-family: Verdana; 71 font-size: 12px; 72 background-image: URL('../imgs/web/deselected.jpg'); 73 text-decoration: none; 74 text-align: center; 75 margin-bottom: 1px; 76 } 1 body 2 { 3 height: 100%; 4 background-image: url(../imgs/web/bg.jpg); 5 background-repeat: repeat-x; 6 background-color: black; 7 margin-top: -10px; 8 } 9 10 #page 11 { 12 width: 982px; 13 min-height:100%; 14 height:auto !important; 15 height:100%; 16 background-image: url(../imgs/web/middle.jpg); 17 position: absolute; 18 top: 0px; 19 right: 50%; 20 margin-right: -491px; 21 margin-bottom: 0px; 22 } 23 24 #top 25 { 26 top: 174px; 27 height: 90px; 28 background-image: url(../imgs/web/top_menu.jpg); 29 } 30 31 #footer 32 { 33 position: absolute; 34 top: 100%; 35 width: 982px; 36 height: 100px; 37 margin-top: -100px; 38 background-image: url(../imgs/web/bottom.jpg); 39 z-index: 1; 40 } 41 42 #copyright 43 { 44 margin-left: 140px; 45 font-size:12px; 46 } 47 48 #menu 49 { 50 top: 200px; 51 width: 150px; 52 margin-left: 110px; 53 margin-top: -50px; 54 height: auto; 55 text-align: justify; 56 padding-bottom: 100px; 57 z-index: 5; 58 float: left; 59 } 60 61 #content 62 { 63 top: 200px; 64 width: 540px; 65 margin-left: 60px; 66 margin-top: -50px; 67 height: auto; 68 text-align: justify; 69 padding-bottom: 100px; 70 z-index: 5; 71 float: left; 72 } 73 74 #mainmenu a 75 { 76 display: block; 77 width: 150px; 78 height: 33px; 79 line-height: 33px; 80 margin-top: -21px; 81 overflow: hidden; 82 color: white; 83 font-weight: bold; 84 font-family: Verdana; 85 font-size: 12px; 86 background-image: URL('../imgs/web/deselected.jpg'); 87 text-decoration: none; 88 text-align: center; 89 margin-bottom: 1px; 90 } 91 77 92 #mainmenu a:hover 78 { 79 color: yellow; 80 background-image: URL('../imgs/web/selected.jpg'); 81 } 82 input { 83 color: black; 84 border: 1px solid black; 85 background-color: transparent; 86 } 87 textarea { 88 color: black; 89 background-color: transparent; 90 border: 1px solid black 91 } 92 select { 93 color: black; 94 background-color: #daaf6b; 95 border: 1px solid black 96 } 97 table { 98 border-collapse: collapse ; 99 border-color: rgb(48,48,48); 100 } 93 { 94 color: yellow; 95 background-image: URL('../imgs/web/selected.jpg'); 96 } 101 97 98 input 99 { 100 color: black; 101 border: 1px solid black; 102 background-color: transparent; 103 } 104 105 textarea 106 { 107 color: black; 108 background-color: transparent; 109 border: 1px solid black 110 } 111 112 select 113 { 114 color: black; 115 background-color: #daaf6b; 116 border: 1px solid black 117 } 118 119 table 120 { 121 border-collapse: collapse ; 122 border-color: rgb(48,48,48); 123 } 124 125 #header 126 { 127 height: 174px; 128 background-image: url(imgs/web/headers/header'.rand(0, $num_headers - 1).'.jpg); 129 } 130 131 a 132 { 133 font-family: Times New Roman; 134 color: #4c4c4c; 135 text-decoration: none; 136 } 137 138 a:hover 139 { 140 font-family: Times New Roman; 141 color: black; 142 text-decoration: underline; 143 } 144 145 .NewsCategoryTable 146 { 147 border-width: 1px; 148 border-style: solid; 149 width: 500px; 150 margin-left:auto; 151 margin-right:auto; 152 text-align:center; 153 } 154 155 .NewsCategoryTable td 156 { 157 text-align: center; 158 border-width: 1px; 159 border-style: solid; 160 } 161 162 .NewsQuickInfoTable 163 { 164 border-width: 1px; 165 border-style: solid; 166 width: 500px; 167 margin-left:auto; 168 margin-right:auto; 169 text-align:center; 170 } 171 172 .NewsQuickInfoTable td 173 { 174 text-align: left; 175 border-width: 1px; 176 border-style: solid; 177 } 178 179 .Banners 180 { 181 text-align: center; 182 } 183 184 .Banners img 185 { 186 border-width: 0px; 187 }
Note:
See TracChangeset
for help on using the changeset viewer.