Changeset 14


Ignore:
Timestamp:
Aug 12, 2007, 2:13:09 AM (17 years ago)
Author:
george
Message:
  • Aktuality na webu byly přesunuty z textového PHP souboru do tabulky news v databázi wow. Za zobrazování aktualit je odpovědný soubor news.php. Nová SQL tabulka je uložena ve složce sql jako 14-news.sql.
  • Opravena struktura a HTML validita hlavních stránek.
  • Přidán společný skript database.php pro připojování k MySQL databázi. Databáze je inicializována vždy při načítání skriptu global.php. Změněno připojování k databázi na tento systém v několika skriptech.
  • Změna struktury souboru config.php.
  • Promazání nepotřebných souborů.
  • Vytvoření souboru config.sample.php v podsložce scripts minimanageru. Soubor config.php nadále není verzován a je nutné ho vytvořit jako kopii souboru config.sample.php a nastavit potřebné parametry. Uchovány musí být pouze soubory bez hesel nebo s implicitními hesly.
  • Byl přidán skript pro obsluhu chyb error.php.
Files:
6 added
18 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • config.sample.php

    r11 r14  
    11<?php
    22
    3 $MangosVerison = '0.6 beta';
    4 $MangosRevision = '4043';
    5 $SilverDBVersion = '0.6.3';
    6 $SilverDBChangeset = '199';
    7 $WoWServer = 'localhost';
    8 $DatabaseUser = 'root';
    9 $DatabasePassword = '';
    10 $DatabaseHost = 'localhost';
    11 $Charset = 'windows-1250';
    12 $BaseUrl = '/';
     3$Config = array(
     4  'Database' => array(
     5    'Host' => 'localhost',
     6    'User' => 'root',
     7    'Password' => '',
     8    'Database' => 'wow',
     9    'Prefix' => '',
     10    'Charset' => 'cp1250',
     11  ),
     12  'Style' => 'maron',
     13  'Mangos' => array(
     14    'Version' => '0.8 beta SVN',
     15    'Revision' => '4203',
     16    'SilverDBVersion' => '0.7',
     17    'SilverDBRevision' => '204',
     18  ),
     19  'Web' => array(
     20    'Charset' => 'windows-1250',
     21    'BaseURL' => '/',
     22    'WoWServerAddr' => 'localhost',
     23  ),
     24);
     25
     26// Deprecated
     27$MangosVerison = $Config['Mangos']['Version'];
     28$MangosRevision = $Config['Mangos']['Revision'];
     29$SilverDBVersion = $Config['Mangos']['SilverDBVersion'];
     30$SilverDBChangeset = $Config['Mangos']['SilverDBRevision'];
     31$WoWServer = $Config['Web']['WoWServerAddr'];
     32$DatabaseUser = $Config['Database']['User'];
     33$DatabasePassword = $Config['Database']['Password'];
     34$DatabaseHost = $Config['Database']['Host'];
     35$Charset = $Config['Web']['Charset'];
     36$BaseUrl = $Config['Web']['BaseURL'];
    1337
    1438?>
  • css/style.css

    r11 r14  
    77  width: 1005;
    88  background-image: url(images/background.jpg);
    9   background-repeat: no-repeat;
    10   border= 0;
     9  background-repeat: no-repeat; 
     10  border: 0;
    1111}
    1212.pHlavni{
     
    6565  color:#ffff33
    6666}
    67 .registrace{
     67.registrace_frame
     68{
    6869  color: #A0A0ff;
    6970}
     
    8182.TdSloupec{
    8283  padding-top: 20px;
     84  width: 250;
    8385}
    8486.SpanAktuality{
     
    139141}
    140142 
     143#SplitTable
     144{
     145}
     146
     147#SplitTable.td
     148{
     149  padding: 10px 10px 10px 10px;
     150}
     151
    141152.MiniTable
    142153{
     154  width: 250px;
    143155  color: white;
    144156  font-size: 14px;
    145157}
    146158
     159.MiniTable td
     160{
     161  vertical-align: top;
     162}
     163.NewsTable
     164{
     165  color: white;
     166  font-size: 11px;
     167        border: thin dotted;
     168}
     169.NewsItem
     170{
     171        border: 1px dotted white;
     172        background: #86272F;
     173        margin-top: 5px;
     174        padding: 0px 5px 5px 5px;
     175}
     176.NewsItemTitle
     177{
     178        border-bottom-width: thin;
     179        border-bottom-style: solid;
     180        margin-top: 0px;
     181        margin-bottom: 0px;
     182}
    147183div
    148184{
     
    150186  color:white;
    151187  font-family: Comic Sans MS;
    152 }}
     188}
     189#MainCell
     190{
     191  padding-left: 8px;
     192  padding-right: 5px;
     193}
     194#EmuInfo
     195{
     196  padding-left: 10px;
     197}
  • download_soubory/files.php

    r5 r14  
    3939          'title' => '2.1.0 na 2.1.1',
    4040          'torrent' => 'http://wow.zdechov.net:6969/torrents/WoW-2.1.0.6729-to-2.1.1.6739-enUS-patch.exe.torrent?910D6970ECA434183CA15751FF18A72861FFB5BC',
    41           'web' => 'http://www.google.cz/search?hl=cs&q=wow-1.12.0-enus-patch.exe&btnG=Vyhledat+Googlem&lr=',
     41          'web' => 'http://www.google.cz/search?hl=cs&amp;q=wow-1.12.0-enus-patch.exe&amp;btnG=Vyhledat+Googlem&amp;lr=',
    4242          'info' => '',
    4343        ),
  • finance/index.php

    r12 r14  
    1 <?
     1<?php
     2  include_once('../global.php');
     3  ShowHeader();
     4?>
    25
    3 include('administrace/george/db.php');
    4 include('config.php');
    5 DB_Init($DatabaseHost, $DatabaseUser, $DatabasePassword, 'wow');
    6 DB_Query('SET NAMES cp1250');
     6<TABLE width="100%" border="0">
     7<TR>
    78
     9
     10<TD width="3%" valign="top">
     11
     12<TD valign="top">
     13<P>
     14Pøispìjte na server budete mít kvalitnìjší hraní, dobrý pocit a budete zde uvedeni.<br>
     15Své pøíspìvky posílejte na úèet 86-7755240207/0100, pøedem vøele dík.<br>
     16Pení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>
     17<br>
     18Pøíspìvky jsou dobrovolné a nevymahatelné nazpìt. Vybrané peníze budou použity na financování provozu a zlepšování serveru.<br>
     19</P>
     20       
     21<?php
    822//       2.12.2006  +2400   Maron
    923/*
     
    8094  'contribution' => 'Pøispìvek od',
    8195);
    82 DB_Select('finance', 'SUM(money)');
    83 $Row = DB_Row();
     96$Result = $Database->select('finance', 'SUM(money)');
     97$Row = $Result->fetch_array();
    8498echo('<p><strong>Stav financí: '.$Row[0].' Kè</strong></p>');
    8599
    86100echo('<table style="font-size: small;" class="TableDonate" border="1" cellspacing="0" cellpadding="1">
    87101<tr><th>Datum</th><th>Suma</th><th>Popis</th></tr>');
    88 DB_Select('finance', '*', '1 ORDER BY time DESC');
    89 while($Row = DB_Row())
     102$Result = $Database->select('finance', '*', '1 ORDER BY time DESC');
     103while($Row = $Result->fetch_array())
    90104{
    91105  if($Row['money'] > 0)
     
    113127*/
    114128echo('</table>');
     129?>
    115130
     131</table>
     132
     133<?php
     134  ShowFooter();
    116135?>
     136
  • global.php

    r12 r14  
    11<?php
    22
     3session_start();
    34include('config.php');
     5include('database.php');
     6include('error.php');
     7$Database = new Database($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']);
     8$Database->Prefix = $Config['Database']['Prefix'];
     9$Database->charset($Config['Database']['Charset']);
     10
     11function HumanDate($DateTime)
     12{
     13  $DateTimeParts = explode(' ', $DateTime);
     14  $Parts = explode('-', $DateTimeParts[0]);
     15  if($DateTimeParts[0] != '0000-00-00') return(($Parts[2]*1).'.'.($Parts[1]*1).'.'.$Parts[0]);
     16  else return('&nbsp;');
     17}
    418
    519function ShowOnlinePlayerCount()
    620{
    7  global $WowEmuDirectory, $WoWServer;
     21  global $Database;
    822 //ini_set('allow_url_fopen', 'On');
    923  // World of Warcraft user stat
     
    1226  //$Content = fgets($File, 1000000);
    1327  //fclose($File);
    14   $Content = file_get_contents('http://'.$WoWServer.'/mangos/inc/stat2.php');
    15   if(strlen($Content) > 0)
    16   {
    17     $PlayerCount = substr_count($Content, '<player>');
    18     $P = 'hráèù';
    19     if($PlayerCount == 1) $P = 'hráè';
    20     else if(($PlayerCount >= 2) and ($PlayerCount <= 4)) $P = 'hráèi';
    21     echo($PlayerCount.' '.$P);
    22   } else echo('OFFLINE');
     28  $Database->select_db('realmd');
     29  $Result = $Database->select('account', 'COUNT(*)', 'online=1');
     30  $Row = $Result->fetch_array();
     31  $PlayerCount = $Row[0];
     32 
     33  if($PlayerCount == 1) $P = 'hráè';
     34  else if(($PlayerCount >= 2) and ($PlayerCount <= 4)) $P = 'hráèi';
     35  else $P = 'hráèù';
     36  echo($PlayerCount.' '.$P);
    2337}
    2438
     
    4256{
    4357  global $Charset, $BaseUrl;
    44   echo('
    45 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     58  echo('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    4659<HTML>
    4760<HEAD>
     
    5366  <style type="text/css" media="screen">@import url('.$BaseUrl.'css/style.css);</style>
    5467</HEAD> 
    55 
    56 
    5768<BODY text="#cccccc">
    5869
     
    113124</script>
    114125
    115 <TABLE align="center" class="TableHlavni" border="0">
     126<TABLE cellspacing="0" cellpadding="0" align="center" class="TableHlavni" border="0">
    116127  <TR>
    117128    <TD>
    118       <p class="pHlavni">
     129      <div class="pHlavni">
    119130      <br>
    120131      <br>
     
    132143  global $BaseUrl;
    133144  echo('
     145      </div>
    134146    </td>
    135     <TD class="TdSloupec" width="240" valign="top" align="center" >
    136 <div class="Nadpis">Heroes of Fantasy</div>
    137  <div class="DivText">
    138 ');
    139 
    140  ShowOnlinePlayerCount();
     147    <TD class="TdSloupec" valign="top" align="center">
     148      <div class="Nadpis">Heroes of Fantasy</div>
     149      <div class="DivText">');
     150
     151  ShowOnlinePlayerCount();
    141152 
    142 
    143 
    144 echo('
    145 <br>
     153echo('</div>
    146154<a href="'.$BaseUrl.'index.php" onMouseOver="swtch(&quot;2&quot;,&quot;home&quot;)" onMouseOut="swtch(&quot;1&quot;,&quot;home&quot;)"><IMG SRC="'.$BaseUrl.'images/home.jpg" name="home" alt="Home" border="0"></A>
    147155<a href="'.$BaseUrl.'server.php" onMouseOver="swtch(&quot;30&quot;,&quot;Server&quot;)" onMouseOut="swtch(&quot;29&quot;,&quot;Server&quot;)"><IMG SRC="'.$BaseUrl.'images/server.jpg" name="Server" alt="Server" border="0"></A>
    148 <a href="'.$BaseUrl.'donate.php" onMouseOver="swtch(&quot;4&quot;,&quot;donate&quot;)" onMouseOut="swtch(&quot;3&quot;,&quot;donate&quot;)"><IMG SRC="'.$BaseUrl.'images/donate.jpg" alt="donate" name="donate" border="0"></A>
     156<a href="'.$BaseUrl.'finance/" onMouseOver="swtch(&quot;4&quot;,&quot;donate&quot;)" onMouseOut="swtch(&quot;3&quot;,&quot;donate&quot;)"><IMG SRC="'.$BaseUrl.'images/donate.jpg" alt="donate" name="donate" border="0"></A>
    149157<a href="'.$BaseUrl.'download_soubory/" onMouseOver="swtch(&quot;6&quot;,&quot;download&quot;)" onMouseOut="swtch(&quot;5&quot;,&quot;download&quot;)"><IMG SRC="'.$BaseUrl.'images/download.jpg" alt="download" name="download" border="0"></A>
    150158<a href="'.$BaseUrl.'jak_zacit.php" onMouseOver="swtch(&quot;14&quot;,&quot;how&quot;)" onMouseOut="swtch(&quot;13&quot;,&quot;how&quot;)"><IMG SRC="'.$BaseUrl.'images/how.jpg" alt="how" name="how" border="0"></A>
     
    158166<a href="'.$BaseUrl.'Death%20Dealers%20Hratelne%20Rasy.php" onMouseOver="swtch(&quot;26&quot;,&quot;Rasy&quot;)" onMouseOut="swtch(&quot;25&quot;,&quot;Rasy&quot;)"><IMG SRC="'.$BaseUrl.'images/rasy.jpg" alt="Rasy" name="Rasy" border="0"></A>
    159167<a href="'.$BaseUrl.'Death%20Dealers%20Povolani.php" onMouseOver="swtch(&quot;22&quot;,&quot;Povolani&quot;)" onMouseOut="swtch(&quot;21&quot;,&quot;Povolani&quot;)"><IMG SRC="'.$BaseUrl.'images/povolani.jpg" alt="Povolani" name="Povolani" border="0"></A>
    160 <a href="'.$BaseUrl.'Death%20Dealers%20Profese.php" onMouseOver="swtch(&quot;24&quot;,&quot;profese&quot;)" onMouseOut="swtch(&quot;23&quot;,&quot;profese&quot;)"><IMG SRC="'.$BaseUrl.'images/profese.jpg" alt="profese" name="profese" border="0"></A>
    161 
    162 
    163 <TABLE width="220" border="1" align="center">
     168<a href="'.$BaseUrl.'Death%20Dealers%20Profese.php" onMouseOver="swtch(&quot;24&quot;,&quot;profese&quot;)" onMouseOut="swtch(&quot;23&quot;,&quot;profese&quot;)"><IMG SRC="'.$BaseUrl.'images/profese.jpg" alt="profese" name="profese" border="0"></A>');
     169
     170
     171/*
     172echo('<TABLE width="220" border="1" align="center">
    164173<TR><TD width="15%" valign="top">
    165174<P class="pAktuality">
     
    168177
    169178include('aktuality.php');
    170 
    171 echo('
    172 
    173 <A HREF="http://www.toplist.cz/" target="_blank"><IMG alt="pocitadlo"
    174 SRC="http://toplist.cz/count.asp?logo=mc&ID=324802"
     179*/
     180
     181echo('<A HREF="http://www.toplist.cz/" target="_blank"><IMG alt="pocitadlo"
     182SRC="http://toplist.cz/count.asp?logo=mc&amp;ID=324802"
    175183border="0" width="1" height="1"></A>
    176184
    177 
    178 </p>
    179 </td>
    180 </tr>
    181 </table>
    182 
    183     </div>
    184     </TD>
    185   </TR>
     185    </td>
     186  </tr>
    186187  <tr>
    187188    <td colspan="2">
     
    199200      </I> 
    200201 
    201  </DIV>
     202      </DIV>
    202203    </td>
    203204  </tr>
    204 </TABLE>
    205 </BODY>
     205  </TABLE>
     206  </BODY>
    206207</HTML>
    207208');
  • gm.php

    r11 r14  
    1717
    1818<?php
    19     include 'administrace/SubFiles/DatabaseConection.php';
    20     $Database = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword);
    21     $Database->SelectDatabase('wow');
    22 
    23     $ID = $Database->SQLCommand("SELECT * FROM user WHERE ban = 0");
    24     while ($Line = mysql_fetch_array($ID)) {
     19    $Database->select_db('wow');
     20    $Result = $Database->query('SELECT * FROM user WHERE ban = 0');
     21    while ($Line = $Result->fetch_array())
     22    {
    2523      echo '<table border="0">';
    2624      echo '<tr><td><p>Pøezdívka:</p></td>';;
     
    3634      }
    3735      $Acc = $Line['AccID'];
    38       $Database->SelectDatabase('mangos');
     36      $Database->select_db('mangos');
    3937      if ($Acc <> '0') {
    4038        echo '<tr><td><p>GM Postavy ve høe:</p></td>';
    4139        echo '<td><p><b>';
    42         $IDMangos = $Database->SQLCommand("SELECT * FROM `character` WHERE account = '$Acc'");
    43         while ($LineMangos = mysql_fetch_array($IDMangos)) {
     40        $ResultMangos = $Database->query('SELECT * FROM `character` WHERE account = "'.$Acc.'"');
     41        while ($LineMangos = $ResultMangos->fetch_array())
     42        {
    4443          if ($LineMangos['online'] == 1)       
    4544            echo $LineMangos['name'].'(online)  ';
  • guildy.php

    r11 r14  
    11<?
    22  include('global.php');
    3   $Charset = 'iso-8859-2';
     3  $Database->select_db('mangos');
    44  ShowHeader();
    55 
     
    88<TD valign="top">
    99<div class="DivText">');
    10 
    11 include('test/db.php');
    12 DB_Init($DatabaseHost, $DatabaseUser, $DatabasePassword, 'mangos');
    13 DB_Query('SET NAMES latin2');
    1410
    1511$RanksEN = array('Guildmaster', 'Veteran', 'Intendant', 'Support Officer', 'PR Officer', 'Officer', 'Famed Member',
     
    2218  echo('<table class="TableGuilda" style="align: center;" border="1" cellpadding="3" cellspacing="0" ><tr><th>Název</th><th>Poèet èlenù</th><th>Souèet levelù</th><th>Souèet bodù cti</th><th>Webové stránky</th></tr>');
    2319//  DB_Query(' COUNT(guild_member.guildid) as member_count FROM guild JOIN guild_member ON guild_member.guildid = guild.guildid GROUP BY guild.name ORDER BY member_count DESC');
    24   DB_Query('SELECT `guild`.name, guild.guildid, COUNT(`guild_member`.`guildid`) as member_count, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 35), " ", -1)) as guild_level, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 1421), " ", -1)) as guild_honor FROM `guild` JOIN `guild_member` ON `guild_member`.`guildid` = `guild`.`guildid` JOIN `character` ON `character`.`guid`= `guild_member`.`guid` GROUP BY guild.name ORDER BY guild.name');
    25   while($Guild = DB_Row())
     20  $Result = $Database->query('SELECT `guild`.name, guild.guildid, COUNT(`guild_member`.`guildid`) as member_count, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 35), " ", -1)) as guild_level, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 1421), " ", -1)) as guild_honor FROM `guild` JOIN `guild_member` ON `guild_member`.`guildid` = `guild`.`guildid` JOIN `character` ON `character`.`guid`= `guild_member`.`guid` GROUP BY guild.name ORDER BY guild.name');
     21  while($Guild = $Result->fetch_array())
    2622  {
    2723    echo('<tr><td><a href="?guild='.$Guild['guildid'].'">'.$Guild['name'].'</a></td><td>'.$Guild['member_count'].'</td><td>'.$Guild['guild_level'].'</td><td>'.$Guild['guild_honor'].'</td><td>&nbsp;</td></tr>');
     
    3026} else {
    3127  $_GET['guild'] = addslashes($_GET['guild']);
    32   DB_Query('SELECT `guild`.name, guild.guildid, guild.leaderguid, COUNT(`guild_member`.`guildid`) as member_count, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 35), " ", -1)) as guild_level, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 1421), " ", -1)) as guild_honor FROM `guild` JOIN `guild_member` ON `guild_member`.`guildid` = `guild`.`guildid` JOIN `character` ON `character`.`guid`= `guild_member`.`guid` WHERE guild.guildid='.$_GET['guild'].' GROUP BY guild.name');
    33   if(DB_NumRows() > 0)
     28  $Result = $Database->query('SELECT `guild`.name, guild.guildid, guild.leaderguid, COUNT(`guild_member`.`guildid`) as member_count, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 35), " ", -1)) as guild_level, SUM(SUBSTRING_INDEX(SUBSTRING_INDEX(`character`.`data`, " ", 1421), " ", -1)) as guild_honor FROM `guild` JOIN `guild_member` ON `guild_member`.`guildid` = `guild`.`guildid` JOIN `character` ON `character`.`guid`= `guild_member`.`guid` WHERE guild.guildid='.$_GET['guild'].' GROUP BY guild.name');
     29  if($Result->num_rows > 0)
    3430  {
    35     $Guild = DB_Row();
     31    $Guild = $Result->fetch_array();
    3632    //  if($Guild['homepage'] != '') $Guild['name'] = $Guild['name'].' <a href="'.$Guild['homepage'].'">WWW</a>';
    3733    //if($Guild['info'] != '') $Guild['info'] = ''.$Guild['info'].'</i>';
    3834    echo('<div align="center"><strong>Seznam èlenù guildy '.$Guild['name'].'</strong><br>');
    39     DB_Select('`character`', 'name', $Guild['leaderguid'].'=guid');
    40     $GuildMaster = DB_Row();
     35    $Result = $Database->select('character', 'name', $Guild['leaderguid'].'=guid');
     36    $GuildMaster = $Result->fetch_array();
    4137    echo('Vedoucí guildy: '.$GuildMaster['name'].'<br>');
    4238    echo('<table class="TableGuilda" border="1" cellpadding="1" cellspacing="0">');
     
    4541   
    4642    $GuildRanks = array();
    47     DB_Select('guild_rank', '*', 'guildid='.$Guild['guildid']);
    48     while($GuildRank = DB_Row()) $GuildRanks[$GuildRank['rid']] = $GuildRank;
     43    $Result = $Database->select('guild_rank', '*', 'guildid='.$Guild['guildid']);
     44    while($GuildRank = $Result->fetch_array()) $GuildRanks[$GuildRank['rid']] = $GuildRank;
    4945 
    50     DB_Query('SELECT guild_member.rank, guild_member.guid, SUBSTRING_INDEX(SUBSTRING_INDEX(character.data," ", 35), " ", -1)*1 as level, SUBSTRING_INDEX(SUBSTRING_INDEX(character.data," ", 1421), " ", -1)*1 as honor, character.name FROM guild_member JOIN `character` ON guild_member.guid = character.guid AND guild_member.guildid='.$Guild['guildid'].' ORDER BY character.name');
    51     while($Member = DB_Row())
     46    $Result = $Database->query('SELECT guild_member.rank, guild_member.guid, SUBSTRING_INDEX(SUBSTRING_INDEX(character.data," ", 35), " ", -1)*1 as level, SUBSTRING_INDEX(SUBSTRING_INDEX(character.data," ", 1421), " ", -1)*1 as honor, character.name FROM guild_member JOIN `character` ON guild_member.guid = character.guid AND guild_member.guildid='.$Guild['guildid'].' ORDER BY character.name');
     47    while($Member = $Result->fetch_array())
    5248    {
    5349//    $DataParts = explode(' ', $Member['data']);
  • index.php

    r13 r14  
    11<?
    22  include('global.php');
     3  include('news.php');
    34  ShowHeader();
    45?>
    56
    67<TABLE width="100%" border="0">
    7 <TR>
     8  <TR>
     9    <TD id="MainCell" valign="top">
    810
     11<div>
     12Vítejte na serveru <span class="Nadpis">Heroes of Fantasy</span>, neoficiálním herním serveru hry <a href="http://www.worldofwarcraft.com/">World of Warcraft</a>!<br>
     13WoW je <acronym title="Massive Multiplayer Online Role Playing Game">MMORPG</acronym> jejíž tvùrcem je spoleènost <a href="http://www.blizzard.com/">Blizzard Entertainment</a>.
     14Existují oficiální servery, na kterých je nutno platit mìsíèní poplatek. Tento server je však neoficiální a mùžete zde hrát zdarma. Pøestože neoficiální servery nikdy nedosáhnou takové kvality jako oficiální, mùžete zde zažít mnoho pøíjemných chvil a seznámit se zajímavými lidmi.
     15Nyní je již potøeba se jenom zaregistrovat, pøipojit do hry a vžít se do role hrdiny, který putuje svìtem fantasie a utkává se v boji s rozliènými stvùrami.     
     16</div>
     17<table id="SplitTable" cellspacing="5" cellpadding="0" width="100%">
     18<tr><td width="50%" valign="top">
    919
    10 <TD width="3%" valign="top">
    11 
    12 <TD valign="top">
    13 
    14 <P>
    15 Vítejte na serveru: <span class="Nadpis">Heroes of Fantasy</span>
     20<?php
     21ShowNews();
     22?>
     23</td><td id="EmuInfo" valign="top">
    1624
    1725<br>
    18 Vítejte na neoficiálním herním serveru hry <a href="http://www.worldofwarcraft.com/">World of Warcraft</a>!
    19 <br>WoW je <acronym title="Massive Multiplayer Online Role Playing Game">MMORPG</acronym> jejíž tvùrcem je spoleènost <a href="http://www.blizzard.com/">Blizzard Entertainment</a>.
    20 Existují oficiální servery, na kterých je nutno platit mìsíèní poplatek. Tento server je však neoficiální a mùžete zde hrát zdarma. Pøestože neoficiální servery nikdy nedosáhnou takové kvality jako oficiální, mùžete zde zažít mnoho pøíjemných chvil a seznámit se zajímavými lidmi.
    21 Nyní je již potøeba se jenom zaregistrovat, pøipojit do hry a vžít se do role hrdiny, který putuje svìtem fantasie a utkává se v boji s rozliènými stvùrami.     
     26
     27<div align="center">
     28<table class="MiniTable" border="1" cellspacing="0" cellpadding="2">
     29<tr><th>Emulátor</th><td>MaNGOS TBC</td></tr>
     30<tr><th>Stav</th><td><?php if(CheckPortStatus($WoWServer, 8085)) echo('<span style="color: #33ff33;">ONLINE</span>'); else echo('<span style="color: red;">OFFLINE</span>'); ?></td></tr>
     31<tr><th>Online hráèù</th><td><a href="<?php echo('http://'.$WoWServer); ?>/online_player.php"><? echo(file_get_contents('http://'.$WoWServer.'/mangos/players.php')); ?></a></td></tr>
     32<tr><th>Návod</th><td><a href="jak_zacit.php">zde</a></td></tr>
     33<tr><th>Stav registrací</th><td><?php echo('POVOLENÉ');
     34 //include('registrace/LockRegistration/script.php');
     35        //AdresaRegistrace(); ?></td></tr>
     36<tr><th>Registrace</th><td><?php echo('<a href="'.$BaseUrl.'minimanager/register.php">zde</a>'); ?></td></tr>
     37<tr><th>Správa úètu</th><td><?php echo('<a href="'.$BaseUrl.'minimanager/">zde</a>'); ?></td></tr>
     38<tr><th>Existuje dnù</th><td><?php echo(round((time()-mktime (0,0,0,4,21,2007))/3600/24)); ?></td></tr>
     39<tr><th>Úètù</th><td>
     40<?php
     41$Database->select_db('realmd');
     42$Result = $Database->select('account', 'COUNT(*)');
     43$Row = $Result->fetch_array();
     44$AccountCount = $Row[0];
     45echo($AccountCount);
     46?>
     47</td></tr>
     48<tr><th>Postav</th><td>
     49<?php
     50$Database->select_db('mangos');
     51$Result = $Database->select('character', 'COUNT(*)');
     52$Row = $Result->fetch_array();
     53$CharactersCount = $Row[0];
     54echo($CharactersCount);
     55?></td></tr>
     56</table>
     57</div>
    2258<br>
    23 <br>
    24 <table class="MiniTable" border="1" cellspacing="0" cellpadding="2">
    25 <tr>
    26 <th>Emulátor</th>
    27 <th>Stav</th>
    28 <th>Online</th>
    29 <th>Návod</th>
    30 <th>Registrace</th>
    31 <th>Stav registrací</th>
    32 <th>Existuje dnù</th>
    33 <th>Úètù</th>
    34 <th>Postav</th>
    35 </tr>
    36 <tr>
    37 <td>MaNGOS TBC</td>
    38 <td><?php if(CheckPortStatus($WoWServer, 8085)) echo('<span style="color: #33ff33;">ONLINE</span>'); else echo('<span style="color: red;">OFFLINE</span>'); ?></td>
    39 <td><a href="<?php echo('http://'.$WoWServer); ?>/online_player.php"><? echo(file_get_contents('http://'.$WoWServer.'/mangos/players.php')); ?></a></td>
    40 <td><a href="jak_zacit.php">zde</a></td>
    41 <td><?php echo('<a href="'.$BaseUrl.'registrace/">zde</a>');
    42  //include('registrace/LockRegistration/script.php');
    43         //AdresaRegistrace();
    44        ?></td>
    45 <td><?php echo('POVOLENÉ');
    46 //StafRegistraci(); 
    47 ?></td>
    48 <td><?php echo(round((time()-mktime (0,0,0,4,21,2007))/3600/24)); ?></td>
    49 <td><?php echo(file_get_contents('http://'.$WoWServer.'/mangos/accounts.php')); ?></td>
    50 <td><?php echo(file_get_contents('http://'.$WoWServer.'/mangos/characters.php')); ?></td>
    51 </tr>
    52 </table>
     59<?php
     60echo('<div>
    5361RSS kanál diskusního fóra: <a href="forum/smartfeed_url.php"><img src="forum/templates/subSilver/images/rss20.png" alt="RSS"></a><br />
    5462Teamspeek server: ts2.shotzone.cz:9207<br />
    55 Projek pøekládání questù <a href="quests/">Questy</a><br>
    56 Dotazník pro nové Administrátory: <a href="FormGM/">Dotazník</a></p>
     63Projekt pøekládání questù: <a href="quests/">Questy</a><br>
     64Dotazník pro nové Administrátory: <a href="FormGM/">Dotazník</a>
     65</div>');
     66?>
     67<br>
     68<a href="gm.php">Administrátoøi</a>
     69<div>
     70<?php
     71  //include('administrace/SubFiles/DatabaseConection.php');
     72  $Database->select_db('wow');
     73  $Result = $Database->select('user', '*', 'ban = 0 ORDER BY id');
     74  while($Row = $Result->fetch_array())
     75    echo($Row['User'].' - '.$Row['Function'].'<br/>');
     76?>
     77</div>
    5778
    58 
    59 <DL>
    60 <DT><a href="gm.php">Administrátoøi</a>
    61 <div><?php
    62     include 'administrace/SubFiles/DatabaseConection.php';
    63     $Database = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword);
    64     $Database->SelectDatabase('wow');
    65     $Database->SQLCommand("SET NAMES cp1250");
    66    
    67     $ID = $Database->SQLCommand("SELECT * FROM user WHERE ban = 0 ORDER BY id");
    68     while ($Line = mysql_fetch_array($ID))
    69       echo $Line['User'].' - '.$Line['Function'].'<br />';
    70 
    71 ?></div>
    72 </DL>
    73    <font color="yellow">
     79</td></tr></table>
    7480<br>
    75 
    7681<a href="http://www.wowstatus.net/detail.php?server=160156">
    7782<img alt="wowstatus" src="http://www.wowstatus.net/sbanner.php?server=160156" border="0"></a>
    7883
    7984<A HREF="http://www.toplist.cz/" target="_blank"><IMG
    80 SRC="http://toplist.cz/count.asp?logo=mc&ID=324802"
     85SRC="http://toplist.cz/count.asp?logo=mc&amp;ID=324802"
    8186border="0" width="88" height="60"></A>
    8287
  • jak_zacit.php

    r5 r14  
    1010
    1111<TD width="3%" valign="top">
    12 
     12</td>
    1313<TD valign="top">
    1414<br><H3>Jak se pøipojit:</H3>
     
    26269) Vytvoøte si nový úèet <a href="/registrace/">zde</a>.<br>
    272710) Spuste hru pøes zástupce na ploše, pøihlašte se, vytvoøte si postavu a vstupte do fantasy svìta.<br>
     28</p>
    2829
    29 
    30 <br><br><font color="yellow">
     30<br><br>
    3131<br><br><br>
    32 
    33 </P>
    34 
    3532
    3633
  • mapa.php

    r5 r14  
    88<TR>
    99<td>
    10 <IFRAME name="Registrace" src="http://wow.zdechov.net/minimanager/pomm_public/pomm.php"></IFRAME>
     10<IFRAME src="http://wow.zdechov.net/minimanager/pomm_public/pomm.php"></IFRAME>
    1111</td>
    1212</tr>
  • online_player.php

    r5 r14  
    88<TR>
    99<td>
    10 <IFRAME name="Registrace" src="http://wow.zdechov.net/mangos/inc/stat2.php"></IFRAME>
     10<IFRAME name="registrace_frame" src="http://wow.zdechov.net/mangos/inc/stat2.php"></IFRAME>
    1111</td>
    1212</tr>
Note: See TracChangeset for help on using the changeset viewer.