Changeset 556 for trunk/pages
- Timestamp:
- Mar 29, 2009, 6:45:56 PM (16 years ago)
- Location:
- trunk/pages
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/dotation.php
r499 r556 1 1 <?php 2 echo"<h3>Příspěvky na server:</h3> 2 3 echo('<h3>Příspěvky na server:</h3> 3 4 <p> 4 Přispěvkem na server budete mít kvalitnější hraní a dobrý pocit. I neoficiální servery musí pokrýt svou údržbu a vývoj a tyto peníze se nebudou zneužívat.<br> 5 <br> 6 <table align=\"center\" border=\"1\" width=\"500\"> 5 Přispěvkem na server budete mít kvalitnější hraní a dobrý pocit. I neoficiální servery musí pokrýt svou údržbu a vývoj a tyto peníze se nebudou zneužívat.</p> 6 <table class="gmlog"> 7 7 <tr> 8 <t d align=\"center\">Odměna</a></td>9 <t d align=\"center\">Příspěvek(CZK)</a></td>8 <th>Odměna</th> 9 <th>Příspěvek(CZK)</th> 10 10 </tr> 11 11 <tr> 12 <td align=\"center\">Přejmenování</td>13 <td align=\"center\">50</td>12 <td>Přejmenování</td> 13 <td>50</td> 14 14 </tr> 15 15 <tr> 16 <td align=\"center\">Převod postavy (z účtu na účet)</td>17 <td align=\"center\">50</td>16 <td>Převod postavy (z účtu na účet)</td> 17 <td>50</td> 18 18 </tr> 19 19 <tr> 20 <td align=\"center\">Převod postavy (z jiného/na jiný server)</td>21 <td align=\"center\">Neprovádí se</td>20 <td>Převod postavy (z jiného/na jiný server)</td> 21 <td>Neprovádí se</td> 22 22 </tr> 23 23 <tr> 24 <td align=\"center\">Obnovení postavy ze zálohy</td>25 <td align=\"center\">200</td>24 <td>Obnovení postavy ze zálohy</td> 25 <td>200</td> 26 26 </tr> 27 27 <tr> 28 <td align=\"center\">Unban (první, pak se cena zdvojnásobuje)</td>29 <td align=\"center\">200</td>28 <td>Unban (první, pak se cena zdvojnásobuje)</td> 29 <td>200</td> 30 30 </tr> 31 31 <tr> 32 <td align=\"center\">PvP Mount či Spectral Tiger + 36-místný batůžek</td>33 <td align=\"center\">300</td>32 <td>PvP Mount či Spectral Tiger + 36-místný batůžek</td> 33 <td>300</td> 34 34 </tr> 35 35 </table> 36 <br> 37 Své příspěvky posílejte na účet 670100-2202937132/6210, předem vřele děkujeme.<br> 38 Peníze můžete poslat bankovním převodem z jiného účtu nebo vložit přímo v hotovosti v některé bance na přepážce nebo také na poště. Do zprávy pro příjemce uvěďte slovo WoW, svůj nick a jméno svého účtu na serveru, případně krátký text, který tu bude v případě nezávadnosti zobrazen.<br> 39 <br> 40 Příspěvky jsou dobrovolné a nevymahatelné nazpět. Vybrané peníze budou použity na financování provozu a zlepšování serveru.<br> 41 </p>"; 36 <p> 37 Své příspěvky posílejte na účet 670100-2202937132/6210, předem vřele děkujeme.<br /> 38 Peníze můžete poslat bankovním převodem z jiného účtu nebo vložit přímo v hotovosti v některé bance na přepážce nebo také na poště. Do zprávy pro příjemce uvěďte slovo WoW, svůj nick a jméno svého účtu na serveru, případně krátký text, který tu bude v případě nezávadnosti zobrazen.<br /> 39 </p><p> 40 Příspěvky jsou dobrovolné a nevymahatelné nazpět. Vybrané peníze budou použity na financování provozu a zlepšování serveru. 41 </p>'); 42 42 43 $operace = array( 43 44 "buy" => "Nákup", … … 52 53 $load_money = $db -> query("SELECT SUM(`money`) FROM `finance`;") -> fetch_array(); 53 54 54 echo"<p><strong>Aktuální stav financí: ".$load_money[0]." Kč</strong></p>"; 55 echo " 56 <table border=\"1\" width=\"540\"> 57 <tr> 58 <th>Datum</th> 59 <th>Suma</th> 60 <th>Popis</th> 61 <th>Odměna</th> 62 </tr> 63 "; 64 $load_dotation = $db -> query("SELECT * FROM `finance` ORDER BY `id` DESC;"); 65 while ($row = $load_dotation -> fetch_array()) 55 echo('<p><strong>Aktuální stav financí: '.$load_money[0].' Kč</strong></p>'); 56 echo('<table class="gmlog">'. 57 '<tr>'. 58 '<th>Datum</th>'. 59 '<th>Suma</th>'. 60 '<th>Popis</th>'. 61 '<th>Odměna</th>'. 62 '</tr>'); 63 64 $load_dotation = $db->query('SELECT * FROM `finance` ORDER BY `id` DESC'); 65 while ($row = $load_dotation->fetch_array()) 66 { 67 $odmena = $row['odmena']; 68 69 if($row['time'] != '') 66 70 { 67 $odmena = $row["odmena"]; 68 69 if ($row["time"] != "") 70 { 71 72 //$date = $server -> HumanDate ($row["time"],0); 73 $date = $row["time"]; 74 } 75 else 76 { 77 $date = ""; 78 } 79 if($row["money"] > 0) 80 {$plus = "+";} else{$plus = "";} 81 echo " 82 <tr> 83 <td align=\"center\">".$date."</td> 84 <td align=\"center\">".$plus.$row["money"]."</td> 85 <td align=\"left\">".$operace[$row["operation"]]." ".$row["description"]."</td> 86 <td align=\"center\">".$odmena."</td> 87 </tr> 88 "; 71 //$date = $server -> HumanDate ($row["time"],0); 72 $date = $row['time']; 73 } else 74 { 75 $date = ''; 89 76 } 90 echo "</table>"; 77 if($row['money'] > 0) $plus = "+"; 78 else $plus = ''; 79 echo('<tr>'. 80 '<td>'.$date.'</td>'. 81 '<td>'.$plus.$row['money'].'</td>'. 82 '<td>'.$operace[$row['operation']].' '.$row['description'].'</td>'. 83 '<td>'.$odmena.'</td>'. 84 '</tr>'); 85 } 86 echo('</table>'); 91 87 92 88 ?> -
trunk/pages/download.php
r551 r556 3 3 include('files.php'); 4 4 echo('<h2 align="center">Soubory ke stažení:</h2>'); 5 echo('<div align="center" ><table width="80%" cellspacing="0">');5 echo('<div align="center" ><table class="DownloadTable">'); 6 6 foreach($Files as $GroupName => $Group) 7 7 { -
trunk/pages/events.php
r407 r556 1 1 <?php 2 2 3 $EventsLinks = array( 4 1 => array("http://wwpw.wowwiki.com/Midsummer_Fire_Festival", "http://www.worldofwarcraft.com/info/events/midsummer/"), 5 2 => array("http://www.wowwiki.com/Feast_of_Winter_Veil", "http://www.worldofwarcraft.com/info/events/winterveil/"), 6 3 => array("http://www.wowwiki.com/Darkmoon_Faire", "http://www.worldofwarcraft.com/info/basics/factions/darkmoon/"), 7 4 => array("http://www.wowwiki.com/Darkmoon_Faire", "http://www.worldofwarcraft.com/info/basics/factions/darkmoon/"), 8 5 => array("http://www.wowwiki.com/Darkmoon_Faire", "http://www.worldofwarcraft.com/info/basics/factions/darkmoon/"), 9 6 => array("http://www.wowwiki.com/New_Year", "http://www.worldofwarcraft.com/info/events/newyears/"), 10 7 => array("http://www.wowwiki.com/Lunar_Festival", "http://www.worldofwarcraft.com/info/events/lunarnewyears/"), 11 8 => array("http://www.wowwiki.com/Love_is_in_the_Air", "http://www.worldofwarcraft.com/info/events/loveisintheair/"), 12 9 => array("http://www.wowwiki.com/Noblegarden", "http://www.worldofwarcraft.com/community/ingameevents.html#noblegarden"), 13 10 => array("http://www.wowwiki.com/Children%27s_Week", "http://www.worldofwarcraft.com/info/events/childrensweek/"), 14 11 => array("http://www.wowwiki.com/Harvest_Festival", "http://www.worldofwarcraft.com/info/events/harvestfestival/"), 15 12 => array("http://www.wowwiki.com/Hallow%27s_End", "http://www.worldofwarcraft.com/info/events/hallowsend/"), 16 13 => array("http://www.wowwiki.com/Elemental_Invasions", "http://www.worldofwarcraft.com/community/ingameevents.html#elemental"), 17 14 => array("http://www.wowwiki.com/Stranglethorn_Fishing_Extravaganza", "http://www.worldofwarcraft.com/info/events/fishing/"), 18 15 => array("http://www.wowwiki.com/Stranglethorn_Fishing_Extravaganza", "http://www.worldofwarcraft.com/info/events/fishing/"), 19 16 => array("http://www.wowwiki.com/Gurubashi_Arena#Gurubashi_Arena_Booty_Run", "http://www.worldofwarcraft.com/community/ingameevents.html#gurubashi"), 20 17 => array("http://www.wowwiki.com/The_Scourge_Invasion", "http://www.worldofwarcraft.com/info/events/scourgeinvasion/"), 21 18 => array("", "http://www.worldofwarcraft.com/community/ingameevents.html#calltoarms"), 22 19 => array("", "http://www.worldofwarcraft.com/community/ingameevents.html#calltoarms"), 23 20 => array("", "http://www.worldofwarcraft.com/community/ingameevents.html#calltoarms"), 24 21 => array("", "http://www.worldofwarcraft.com/community/ingameevents.html#calltoarms"), 25 22 => array("http://www.wowwiki.com/Ahn%27Qiraj_War_Effort", "http://www.worldofwarcraft.com/wareffort/servers.html"), 26 23 => array("", ""), 27 24 => array("", ""), 28 25 => array("", "http://www.worldofwarcraft.com/community/ingameevents.html#calltoarms"), 29 26 => array("http://www.wowwiki.com/Brewfest", "http://www.worldofwarcraft.com/info/events/brewfest/"), 30 27 => array("", ""), 31 28 => array("http://www.wowwiki.com/Noblegarden", "http://www.worldofwarcraft.com/community/ingameevents.html#noblegarden"), 32 29 => array("http://www.wowwiki.com/Edge_of_Madness", ""), 33 30 => array("http://www.wowwiki.com/Edge_of_Madness", ""), 34 31 => array("http://www.wowwiki.com/Edge_of_Madness", ""), 35 32 => array("http://www.wowwiki.com/Edge_of_Madness", ""), 36 34 => array("http://www.wowwiki.com/L70ETC", ""), 3 $EventsLinks = array 4 ( 5 1 => array('http://wwpw.wowwiki.com/Midsummer_Fire_Festival', 'http://www.worldofwarcraft.com/info/events/midsummer/'), 6 2 => array('http://www.wowwiki.com/Feast_of_Winter_Veil', 'http://www.worldofwarcraft.com/info/events/winterveil/'), 7 3 => array('http://www.wowwiki.com/Darkmoon_Faire', 'http://www.worldofwarcraft.com/info/basics/factions/darkmoon/'), 8 4 => array('http://www.wowwiki.com/Darkmoon_Faire', 'http://www.worldofwarcraft.com/info/basics/factions/darkmoon/'), 9 5 => array('http://www.wowwiki.com/Darkmoon_Faire', 'http://www.worldofwarcraft.com/info/basics/factions/darkmoon/'), 10 6 => array('http://www.wowwiki.com/New_Year', 'http://www.worldofwarcraft.com/info/events/newyears/'), 11 7 => array('http://www.wowwiki.com/Lunar_Festival', 'http://www.worldofwarcraft.com/info/events/lunarnewyears/'), 12 8 => array('http://www.wowwiki.com/Love_is_in_the_Air', 'http://www.worldofwarcraft.com/info/events/loveisintheair/'), 13 9 => array('http://www.wowwiki.com/Noblegarden', 'http://www.worldofwarcraft.com/community/ingameevents.html#noblegarden'), 14 10 => array('http://www.wowwiki.com/Children%27s_Week', 'http://www.worldofwarcraft.com/info/events/childrensweek/'), 15 11 => array('http://www.wowwiki.com/Harvest_Festival', 'http://www.worldofwarcraft.com/info/events/harvestfestival/'), 16 12 => array('http://www.wowwiki.com/Hallow%27s_End', 'http://www.worldofwarcraft.com/info/events/hallowsend/'), 17 13 => array('http://www.wowwiki.com/Elemental_Invasions', 'http://www.worldofwarcraft.com/community/ingameevents.html#elemental'), 18 14 => array('http://www.wowwiki.com/Stranglethorn_Fishing_Extravaganza', 'http://www.worldofwarcraft.com/info/events/fishing/'), 19 15 => array('http://www.wowwiki.com/Stranglethorn_Fishing_Extravaganza', 'http://www.worldofwarcraft.com/info/events/fishing/'), 20 16 => array('http://www.wowwiki.com/Gurubashi_Arena#Gurubashi_Arena_Booty_Run', 'http://www.worldofwarcraft.com/community/ingameevents.html#gurubashi'), 21 17 => array('http://www.wowwiki.com/The_Scourge_Invasion', 'http://www.worldofwarcraft.com/info/events/scourgeinvasion/'), 22 18 => array('', 'http://www.worldofwarcraft.com/community/ingameevents.html#calltoarms'), 23 19 => array('', 'http://www.worldofwarcraft.com/community/ingameevents.html#calltoarms'), 24 20 => array('', 'http://www.worldofwarcraft.com/community/ingameevents.html#calltoarms'), 25 21 => array('', 'http://www.worldofwarcraft.com/community/ingameevents.html#calltoarms'), 26 22 => array('http://www.wowwiki.com/Ahn%27Qiraj_War_Effort', 'http://www.worldofwarcraft.com/wareffort/servers.html'), 27 23 => array('', ''), 28 24 => array('', ''), 29 25 => array('', 'http://www.worldofwarcraft.com/community/ingameevents.html#calltoarms'), 30 26 => array('http://www.wowwiki.com/Brewfest', 'http://www.worldofwarcraft.com/info/events/brewfest/'), 31 27 => array('', ''), 32 28 => array('http://www.wowwiki.com/Noblegarden', 'http://www.worldofwarcraft.com/community/ingameevents.html#noblegarden'), 33 29 => array('http://www.wowwiki.com/Edge_of_Madness', ''), 34 30 => array('http://www.wowwiki.com/Edge_of_Madness', ''), 35 31 => array('http://www.wowwiki.com/Edge_of_Madness', ''), 36 32 => array('http://www.wowwiki.com/Edge_of_Madness', ''), 37 34 => array('http://www.wowwiki.com/L70ETC', ''), 37 38 ); 38 39 39 40 function Events() 40 41 { 41 include("inc/db.php");42 include('inc/db.php'); 42 43 43 global $db, $EventsLinks; 44 $Events = array("Running" => array(), "Planned" => array()); 45 $db -> select_db("$db_mangos"); 44 global $db, $EventsLinks, $Config; 46 45 46 $Events = array('Running' => array(), 'Planned' => array()); 47 $db->select_db($Config['Mangos']['DatabaseMangos']); 47 48 48 $DbResult = $db->query( "SELECT *, UNIX_TIMESTAMP(start_time) as start FROM game_event WHERE end_time > NOW() AND start_time < NOW()");49 $DbResult = $db->query('SELECT *, UNIX_TIMESTAMP(start_time) as start FROM game_event WHERE end_time > NOW() AND start_time < NOW()'); 49 50 while($Row = $DbResult->fetch_array()) 50 51 { 51 if(!array_key_exists($Row[ "entry"], $EventsLinks)) $EventsLinks[$Row["entry"]] = array("", "");52 $Start = (floor((time() - $Row[ "start"]) / ($Row["occurence"] * 60))) * $Row["occurence"] * 60 + $Row["start"];53 $End = $Start + $Row[ "length"] * 60;54 if((time() > $Start) and (time() < $End)) $EventState = "Running";52 if(!array_key_exists($Row['entry'], $EventsLinks)) $EventsLinks[$Row['entry']] = array('', ''); 53 $Start = (floor((time() - $Row['start']) / ($Row['occurence'] * 60))) * $Row['occurence'] * 60 + $Row['start']; 54 $End = $Start + $Row['length'] * 60; 55 if((time() > $Start) and (time() < $End)) $EventState = 'Running'; 55 56 else 56 57 { 57 $EventState = "Planned";58 $Start += $Row[ "occurence"] * 60;59 $End += $Row[ "occurence"] * 60;58 $EventState = 'Planned'; 59 $Start += $Row['occurence'] * 60; 60 $End += $Row['occurence'] * 60; 60 61 } 61 $Events[$EventState][$Row[ "start"]] = array("StartTime" => $Start, "EndTime" => $End, "Title" => $Row["description"], "WoWWiki" => $EventsLinks[$Row["entry"]][0], "Official" => $EventsLinks[$Row["entry"]][1]);62 $Events[$EventState][$Row['start']] = array('StartTime' => $Start, 'EndTime' => $End, 'Title' => $Row['description'], 'WoWWiki' => $EventsLinks[$Row['entry']][0], 'Official' => $EventsLinks[$Row['entry']][1]); 62 63 } 63 64 64 65 // Add events not started so far 65 //$DbResult = $db->select( "game_event", "*, UNIX_TIMESTAMP(start_time) as start", "start_time > NOW()");66 $DbResult = $db->query( "SELECT * , UNIX_TIMESTAMP(start_time) as start FROM game_event WHERE start_time > NOW()");66 //$DbResult = $db->select('game_event', '*, UNIX_TIMESTAMP(start_time) as start', 'start_time > NOW()'); 67 $DbResult = $db->query('SELECT * , UNIX_TIMESTAMP(start_time) as start FROM game_event WHERE start_time > NOW()'); 67 68 while($Row = $DbResult->fetch_array()) 68 69 { 69 if(!array_key_exists($Row[ "entry"], $EventsLinks)) $EventsLinks[$Row["entry"]] = array("", "");70 $Events[ "Planned"][$Row["start"]] = array("StartTime" => $Row["start"], "EndTime" => ($Row["start"] + $Row["length"] * 60), "Title" => $Row["description"], "WoWWiki" => $EventsLinks[$Row["entry"]][0], "Official" => $EventsLinks[$Row["entry"]][1]);70 if(!array_key_exists($Row['entry'], $EventsLinks)) $EventsLinks[$Row['entry']] = array('', ''); 71 $Events['Planned'][$Row['start']] = array('StartTime' => $Row['start'], 'EndTime' => ($Row['start'] + $Row['length'] * 60), 'Title' => $Row['description'], 'WoWWiki' => $EventsLinks[$Row['entry']][0], 'Official' => $EventsLinks[$Row['entry']][1]); 71 72 } 72 73 73 sort($Events[ "Running"]);74 sort($Events[ "Planned"]);74 sort($Events['Running']); 75 sort($Events['Planned']); 75 76 76 77 return($Events); … … 81 82 foreach($Events as $Event) 82 83 { 83 echo( "<tr><td align=\"Left\">".$Event["Title"]."</td><td align=\"right\">".date("j.n.Y H:i", $Event["StartTime"])."</td><td align=\"right\">".date("j.n.Y H:i", $Event["EndTime"])."</td>");84 if($Event[ "WoWWiki"] != "") echo("<td><a href=\"".$Event["WoWWiki"]."\">wowwiki</a></td>");85 else echo( "<td> </td>");86 if($Event[ "Official"] != "") echo("<td><a href=\"".$Event["Official"]."\">worldofwarcraft</a></td>"); else echo("<td> </td>");87 echo( "</tr>");84 echo('<tr><td>'.$Event['Title'].'</td><td>'.date('j.n.Y H:i', $Event['StartTime']).'</td><td>'.date('j.n.Y H:i', $Event['EndTime']).'</td>'); 85 if($Event['WoWWiki'] != '') echo('<td><a href="'.$Event['WoWWiki'].'">wowwiki</a>'); 86 else echo('<td> '); 87 if($Event['Official'] != '') echo(' <a href="'.$Event['Official'].'">worldofwarcraft</a></td>'); else echo(' </td>'); 88 echo('</tr>'); 88 89 } 89 90 } 90 91 91 92 93 94 echo"<center><h3>Události ve hře :</h3></center>"; 92 echo('<center><h3>Události ve hře :</h3></center>'); 95 93 96 94 $Events = Events(); 97 echo "<table border=\"1\" cellpadding=\"3\" cellspacing=\"0\" width=\"540\" align=\"center\">"; 98 echo"<tr><th>Název</th><th>Začátek</th><th>Konec</th><th>Informace</th><th>Informace</th></tr>"; 99 echo"<tr><td colspan=\"5\"><b>Probíhající akce</b></td></tr>"; 100 ShowEventList($Events["Running"]); 101 echo"<tr><td colspan=\"5\"><b>Plánované akce</b></td></tr>"; 102 ShowEventList($Events["Planned"]); 103 echo"</table>"; 104 105 95 echo('<table class="gmlog">'); 96 echo('<tr><th>Název</th><th>Začátek</th><th>Konec</th><th>Informace</th></tr>'); 97 echo('<tr><td colspan="5"><b>Probíhající akce</b></td></tr>'); 98 ShowEventList($Events['Running']); 99 echo('<tr><td colspan="5"><b>Plánované akce</b></td></tr>'); 100 ShowEventList($Events['Planned']); 101 echo('</table>'); 106 102 107 103 ?> 108 109 110 111 112 -
trunk/pages/gmlog.php
r551 r556 1 1 <?php 2 $gmlog = "/a/mangos1/logs/GM_Commands.log"; //CESTA K GM LOGU 3 $ config = "../gh_system/conn.php"; //CESTA KE CONN.PHP2 3 $gmlog = $Config['Mangos']['GMCommandsLog']; 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říkaz</strong><td align=center><strong>GM</strong><td align=center><strong>Vybrán</strong></tr>"; 6 echo('<img src="imgs/gm.jpg" alt="gm" /><br />'); 7 echo('<table class="gmlog"><tr><th>Čas</th><th>Příkaz</th><th>GM</th><th>Vybrán</th></tr>'); 7 8 8 9 10 11 echo('<img src="imgs/gm.jpg" alt="gm">');12 include($config);13 9 $data = file($gmlog); 14 10 $radku = count($data); 15 11 $i = 0; 16 echo "<br />";17 12 18 while($i < $pocet_radku){ 19 $radek = $radku-1; 20 $pole=explode(" ",$data[$radek]); 13 $db->select_db($Config['Mangos']['DatabaseCharacters']); 21 14 22 if($pole[3]=="announce"): 23 $prikaz = "announce ..."; 24 else: 25 $prikaz=explode("[","$pole[3] $pole[4] $pole[5] $pole[6] $pole[7] $pole[8] $pole[9]"); 26 $prikaz = $prikaz[0]; 27 endif; 15 while($i < $pocet_radku) 16 { 17 $radek = $radku - 1; 18 $pole = explode(' ', $data[$radek]); 28 19 29 $prikaz_pole=explode("[","$pole[3] $pole[4] $pole[5] $pole[6] $pole[7] $pole[8] $pole[9]"); 30 $hrac_pole=explode("Player:",$data[$radek]); 31 $hrac=explode(" ",$hrac_pole[1]); 32 $vybran_pole=explode("Selected:",$data[$radek]); 33 $vybran=explode(" ",$vybran_pole[1]); 20 if($pole[3] == 'announce') $prikaz = 'announce ...'; 21 else 22 { 23 $prikaz = explode('[', $pole[3].' '.$pole[4].' '.$pole[5].' '.$pole[6].' '.$pole[7].' '.$pole[8].' '.$pole[9]); 24 $prikaz = $prikaz[0]; 25 } 34 26 35 if($vybran[1]=="player"): 36 $guid_pole=explode("GUID:",$vybran_pole[1]); 37 $guid=explode(")]",$guid_pole[1]); 27 $prikaz_pole = explode('[', $pole[3].' '.$pole[4].' '.$pole[5].' '.$pole[6].' '.$pole[7].' '.$pole[8].' '.$pole[9]); 28 $hrac_pole = explode('Player:', $data[$radek]); 29 $hrac = explode(' ', $hrac_pole[1]); 30 $vybran_pole = explode('Selected:', $data[$radek]); 31 $vybran = explode(' ', $vybran_pole[1]); 38 32 39 mysql_connect($SQL_Server, $SQL_Uzivatel, $SQL_Heslo); 40 mysql_select_db($Databaze_characters); 41 mysql_query("SET NAMES 'utf8'"); 42 $pocet = mysql_num_rows(mysql_query("SELECT guid FROM characters where guid=$guid[0]")); 43 if($pocet!=0): 44 $query = mysql_query("SELECT * FROM characters where guid=$guid[0]"); 45 while ($radek = mysql_fetch_array($query) ) { 46 $vybran_radek = $radek['name']; 47 $vybran = "hráč $vybran_radek"; 48 } 49 else: 50 $vybran = "<i>neznámý hrác</i>"; 51 endif; 52 else: 53 $vybran = $vybran[1]; 54 endif; 33 if($vybran[1] == 'player') 34 { 35 $guid_pole = explode('GUID:', $vybran_pole[1]); 36 $guid = explode(')]', $guid_pole[1]); 37 38 $DbResult = $db->query('SELECT name FROM characters WHERE guid='.$guid[0]); 39 if($DbResult->num_rows > 0) 40 { 41 $radek = $DbResult->fetch_assoc(); 42 $vybran_radek = $radek['name']; 43 $vybran = 'hráč '.$vybran_radek; 44 } else $vybran = '<i>neznámý hráč</i>'; 45 } else $vybran = $vybran[1]; 55 46 56 echo"<tr><td align=center>$pole[0] $pole[1]<td align=center>$prikaz<td align=center>$hrac[1]<td align=center>$vybran</tr>";57 $i = $i+1;58 $radku = $radku-1;47 echo('<tr><td>'.$pole[0].' '.$pole[1].'</td><td>'.$prikaz.'</td><td>'.$hrac[1].'</td><td>'.$vybran.'</td></tr>'); 48 $i = $i + 1; 49 $radku = $radku - 1; 59 50 } 60 echo "</table>";51 echo('</table>'); 61 52 62 53 ?> -
trunk/pages/server.php
r550 r556 1 1 <?php 2 2 3 // Settings 4 $server_setings = array 5 ( 6 "mangos" => " MaNGOS rev. 7528", 7 "udb" => "UDB 0.11.0 rev. 370", 8 "sd2" => "ScriptDev2 rev. 912", 9 ); 10 11 echo("<center><h3>Server Heroes of Fantasy :</h3> 12 <table align=\"center\" border=\"1\" width=\"540\"> 3 echo('<h3 style="text-align: center;">Server Heroes of Fantasy :</h3>'. 4 '<table class="gmlog"> 13 5 <tr> 14 <td colspan= \"2\"><b>Statistiky :</b></td>6 <td colspan="2"><strong>Statistiky :</strong></td> 15 7 </tr> 16 8 <tr> 17 9 <td>Herní server je</td> 18 <td> ".$server -> ServerImg($server -> ServerOnline("wow.zdechov.net", 8085))."</td>10 <td>'.$server->ServerImg($server->ServerOnline('wow.zdechov.net', 8085)).'</td> 19 11 </tr> 20 12 21 13 <tr> 22 14 <td>Ve hře přítomno</td> 23 <td> ".$server -> MangosOnline()."hráčů</td>15 <td>'.$server->MangosOnline().' hráčů</td> 24 16 </tr> 25 17 <tr> 26 18 <td>Server beží bez restartu</td> 27 <td> ".$server -> ServerUptime()."(hodiny)</td>19 <td>'.$server->ServerUptime().' (hodiny)</td> 28 20 </tr> 29 21 <tr> 30 22 <td>V databázi uloženo</td> 31 <td> ".$server -> AccountCount()."účtů</td>23 <td>'.$server->AccountCount().' účtů</td> 32 24 </tr> 33 25 <tr> 34 26 <td>V databázi uloženo</td> 35 <td> ".$server -> CharacterCount()."postav</td>27 <td>'.$server->CharacterCount().' postav</td> 36 28 </tr> 37 29 <tr> 38 <td><a href= \"?page=teamspeak\">TeamSpeak</a> server je</td>39 <td> ".$server -> ServerImg($server -> ServerOnline("game.zdechov.net", 51234))."</td>30 <td><a href="?page=teamspeak">TeamSpeak</a> server je</td> 31 <td>'.$server->ServerImg($server->ServerOnline('game.zdechov.net', 51234)).'</td> 40 32 </tr> 41 33 <tr> 42 <td><a href= \"http://game.zdechov.net:6969/\" target=\"_blank\">Torrent</a> server je</td>43 <td> ".$server -> ServerImg($server -> ServerOnline("game.zdechov.net", 6969))."</td>34 <td><a href="http://game.zdechov.net:6969/">Torrent</a> server je</td> 35 <td>'.$server->ServerImg($server->ServerOnline('game.zdechov.net', 6969)).'</td> 44 36 </tr> 45 37 <tr> 46 <td colspan= \"2\"><b>Software :</b></td>38 <td colspan="2"><strong>Software :</strong></td> 47 39 </tr> 48 40 <tr> … … 52 44 <tr> 53 45 <td>Aktuální WoW emulátor</td> 54 <td> ".$server_setings["mangos"]."</td>46 <td>MaNGOS rev.'.$Config['Mangos']['Revision'].'</td> 55 47 </tr> 56 48 <tr> 57 49 <td>Aktuální WoW databáze</td> 58 <td> ".$server_setings["udb"]."</td>50 <td>UDB '.$Config['Mangos']['UDBVersion'].' rev. '.$Config['Mangos']['UDBRevision'].'</td> 59 51 </tr> 60 52 <tr> 61 53 <td>ScriptDev2</td> 62 <td> ".$server_setings["sd2"]."</td>54 <td>Scriptdev2 rev. '.$Config['Mangos']['ScriptDev2Revision'].'</td> 63 55 </tr> 64 56 <tr> 65 <td colspan= \"2\"><b>Nastavení MaNGOSU :</b></td>57 <td colspan="2"><strong>Nastavení MaNGOSU :</strong></td> 66 58 </tr> 67 59 <tr> … … 94 86 </tr> 95 87 <tr> 96 <td colspan= \"2\"><b>Hardware :</b></td>88 <td colspan="2"><b>Hardware :</b></td> 97 89 </tr> 98 90 <tr> … … 117 109 </tr> 118 110 <tr> 119 <td colspan= \"2\"><b>Grafické statistiky serveru :</b></td>111 <td colspan="2"><strong>Grafické statistiky serveru :</strong></td> 120 112 </tr> 121 113 <tr> 122 114 <td>Stránka projektu</td> 123 <td><a href= \"http://stat.zdechov.net/game/\" target=\"_blank\">stat.zdechov.net/game/</a></td>115 <td><a href="http://stat.zdechov.net/game/">stat.zdechov.net/game/</a></td> 124 116 </tr> 125 </table> </center>");117 </table>'); 126 118 127 119 ?>
Note:
See TracChangeset
for help on using the changeset viewer.