Changeset 583


Ignore:
Timestamp:
May 7, 2009, 9:15:17 AM (16 years ago)
Author:
george
Message:
  • Opraveno: Chyba v CSS stylech způsobovala špatné zobrazení rámečků tabulek a stylů dalších prvnků.
  • Upraveno: Sjednocen styl různých tabulek.
  • Upraveno: Přepis nejednotného přístupu k databázi přes jiné proměnné a konstanty než dle konfigurace proměnné $Config.
Location:
trunk
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • trunk/event/eventy.php

    r563 r583  
    4040  global $Database, $EventsLinks;
    4141  $Events = array('Running' => array(), 'Planned' => array());
    42   mysql_select_db("world");
    4342 
    4443  // Add already started events
    45   $DbResult =mysql_query('SELECT *, UNIX_TIMESTAMP(start_time) as start FROM game_event WHERE end_time > NOW() AND start_time < NOW()');
     44  $DbResult = mysql_query('SELECT *, UNIX_TIMESTAMP(start_time) as start FROM game_event WHERE end_time > NOW() AND start_time < NOW()');
    4645   while($Row = mysql_fetch_array($DbResult))
    4746  {
     
    8382}
    8483
    85 mysql_connect("$db_server", "$db_user", "$db_pass");
    86 mysql_select_db("$db_mangos");
     84mysql_select_db($Config['Mangos']['DatabaseMangos']);
    8785
    8886$Events = Events();
  • trunk/inc/html.php

    r578 r583  
    195195  public function ShowNews($kategorie)
    196196  {
    197           include('inc/db.php');
    198                 global $db_webu;
     197          global $Config;
    199198               
    200199    echo('<table class="NewsCategoryTable">'.
     
    208207    $this->QuickNew();
    209208
    210     if($kategorie == "all")
    211     {
    212       $where = " ";
    213     } else
    214     {
    215       $where = "WHERE `category` = '".$kategorie."'";
     209    if($kategorie == 'all')
     210    {
     211      $where = '';
     212    } else
     213    {
     214      $where = 'WHERE `category` = "'.$kategorie.'"';
    216215    }
    217216               
    218     mysql_connect($db_server, $db_user, $db_pass);
    219     mysql_select_db($db_webu);
     217    $this->db->select_db($Config['Database']['Database']);
    220218    $limit = 5;
    221219   
    222     $pocet = mysql_num_rows(mysql_query("SELECT id FROM `articles`".$where."ORDER BY `date` DESC;"));
    223     $offset = (isset($_GET["offset"]) ? $_GET["offset"] : $pocet);
     220    $DbResult = $this->db->query('SELECT id FROM `articles` '.$where.' ORDER BY `date` DESC;');
     221    $pocet = $DbResult->num_rows;
     222    $offset = (isset($_GET['offset']) ? $_GET['offset'] : $pocet);
    224223
    225224    if($pocet != 0)
    226225    {
    227                   mysql_query('SET NAMES utf8');
    228       $result = mysql_query("SELECT * FROM articles $where ORDER BY date DESC, id DESC LIMIT $limit OFFSET " . ($pocet - $offset));
    229       while($row = mysql_fetch_array($result))
     226      $result = $this->db->query('SELECT * FROM articles '.$where.' ORDER BY date DESC, id DESC LIMIT '.$limit.' OFFSET '.($pocet - $offset));
     227      while($row = $result->fetch_array())
    230228      {
    231229        $row['text'] = str_replace('<br>', '<br />', $row['text']);
    232         switch ($row["category"])
     230        switch($row['category'])
    233231        {
    234232          case 1:
    235             $cat = "Server novinky";
    236             $link = "servernews";
     233            $cat = 'Server novinky';
     234            $link = 'servernews';
    237235            break;
    238236          case 2:
    239             $cat = "GM novinky";
    240             $link = "gmnews";
     237            $cat = 'GM novinky';
     238            $link = 'gmnews';
    241239            break;
    242240          case 3:
    243             $cat = "In-game novinky";
    244             $link = "gamenews";
     241            $cat = 'In-game novinky';
     242            $link = 'gamenews';
    245243            break;
    246244          case 4:
    247             $cat = "Články";
    248             $link = "articles";
     245            $cat = 'Články';
     246            $link = 'articles';
    249247            break;
    250248        }
     
    252250        $date = explode('-', $date_arr[0]);
    253251        $time = mktime(0, 0, 0, $date[1], $date[2], $date[0]);
    254         $human_date = date ("d.m.Y", $time);
     252        $human_date = date('d.m.Y', $time);
    255253        echo('<table class="NewsQuickInfoTable">'.
    256254          '<tr>'.
    257           '<td><strong>'.$row["title"].'</strong></td>'.
     255          '<td><strong>'.$row['title'].'</strong></td>'.
    258256          '<td style="width: 100px">'.$human_date.'</td>'.
    259257          '</tr>'.
    260258          '<tr>'.
    261           '<td colspan="2">'.$row["text"].'</td>'.
     259          '<td colspan="2">'.$row['text'].'</td>'.
    262260          '</tr>'.
    263261          '<tr>'.
     
    271269      if($offset < $pocet)
    272270      {
    273         echo("<a href='$_SERVER[PHP_SELF]" . ($offset + $limit < $pocet ? "?offset=" . ($offset + $limit) : "") . "'><-- novější</a>\n &nbsp;");
     271        echo('<a href="'.$_SERVER['PHP_SELF'].($offset + $limit < $pocet ? '?offset='.($offset + $limit) : '').'"><-- novější</a>\n &nbsp;');
    274272      }
    275273      if($offset > $limit)
  • trunk/inc/player.php

    r579 r583  
    8686     <table>
    8787                <tr>
    88                   <td><b>Jméno : </b></td><td><input type="text" name="user"></td>
     88                  <td><b>Jméno : </b></td><td><input type="text" name="user" class="textinput"></td>
    8989                </tr>
    9090                <tr>
    91                   <td><b>Heslo : </b></td><td><input type="password" name="pass" autocomplete="off"></td>
     91                  <td><b>Heslo : </b></td><td><input type="password" name="pass" autocomplete="off" class="textinput"></td>
    9292                </tr>
    9393                <tr>
     
    351351    global $Config;
    352352   
    353     echo('<table>
     353    echo('<table class="BaseTable">
    354354          <tr>
    355             <th align="center">Jméno</th>
    356             <th align="center">Úroveň</th>
    357             <th align="center">Rasa</th>
    358             <th align="center">Třída</th>
    359             <th align="center">Nahráno</th>
     355            <th>Jméno</th>
     356            <th>Úroveň</th>
     357            <th>Rasa</th>
     358            <th>Třída</th>
     359            <th>Nahráno</th>
    360360          </tr>');
    361361    $this->db->select_db($Config['Mangos']['DatabaseCharacters']);
     
    367367      $gender = ($row['gender'] == 0) ? '0' : '1';
    368368      echo('<tr>'.
    369         '<td align="center">'.$row['name'].'</td>'.
    370         '<td align="center">'.$this->GetPlayerLvl($row['guid']).'</td>'.
    371         '<td align="center"><img src="imgs/icons/'.$row['race'].'-'.$gender.'.gif"></td>'.
    372         '<td align="center"><img src="imgs/icons/'.$row['class'].'.gif"</td>'.
    373         '<td align="center">'.round($row['totaltime'] / 3600).' h</td>'.
     369        '<td>'.$row['name'].'</td>'.
     370        '<td>'.$this->GetPlayerLvl($row['guid']).'</td>'.
     371        '<td><img src="imgs/icons/'.$row['race'].'-'.$gender.'.gif" alt="rasa" /></td>'.
     372        '<td><img src="imgs/icons/'.$row['class'].'.gif" alt="trida" /></td>'.
     373        '<td>'.round($row['totaltime'] / 3600).' h</td>'.
    374374        '</tr>');
    375375    }
  • trunk/inc/server.php

    r558 r583  
    4848    global $Config;
    4949   
    50     include('inc/db.php');
    5150    $this->db->select_db($Config['Mangos']['DatabaseCharacters']);
    5251    $pocet = $this->db->query('SELECT `guid` FROM `characters` WHERE `online` = 1')->num_rows;
     
    7675          global $Config;
    7776
    78     include('inc/db.php');
    7977    $this->db->select_db($Config['Mangos']['DatabaseRealmd']);
    8078    $row = $this->db->query('SELECT `starttime`, `uptime` FROM `uptime` ORDER BY `starttime` DESC LIMIT 1')
     
    8886    global $Config;
    8987
    90     include('inc/db.php');
    9188    $this->db->select_db($Config['Mangos']['DatabaseCharacters']);
    9289    $row = $this->db->query('SELECT COUNT(*) FROM characters')->fetch_array();
     
    9895          global $Config;
    9996
    100     include('inc/db.php');
    10197    $this->db->select_db($Config['Mangos']['DatabaseRealmd']);
    10298    $row = $this->db->query('SELECT COUNT(*) FROM account')->fetch_array();
     
    107103  {
    108104          global $Config;
    109     include('inc/db.php');
     105
    110106    $this->db->select_db($Config['Mangos']['DatabaseCharacters']);
    111107    $row = $this->db->query('SELECT `name` FROM `characters` WHERE `guid` = "'.$guid.'" LIMIT 1')->fetch_array();
  • trunk/index.php

    r581 r583  
    66
    77session_start();
    8 include_once('inc/db.php');
     8include_once('inc/config.php');
    99include_once('inc/db.php');
    1010include_once('inc/html.php');
     
    6767  '<a href="http://servery.wowresource.eu/"><img src="http://servery.wowresource.eu/templates/img/bannery/banner_maly.gif" alt="WoW Server status" /></a><br />'.
    6868  '<a href="http://www.wowhead.com"><img src="http://www.wowhead.com/images/badge_88x31.gif" width="88" height="31" alt="" /></a><br />'.
    69   '<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>'.
     69  '<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><br />'.
    7070  '<strong>Statistika :</strong><br />'.
    7171  '<a href="http://www.toplist.cz/"><img src="http://toplist.cz/count.asp?logo=mc&amp;ID=324802" width="88" height="60" alt="counter" /></a><br /><br />'.
  • trunk/pages/acc.php

    r578 r583  
    11<?php
    22
    3 
    4 $html -> PrgStart();
     3$html->PrgStart();
    54if(array_key_exists('user', $_POST)) $user = $_POST['user']; else $user = '';
    65if(array_key_exists('pass', $_POST)) $pass = $_POST['pass']; else $pass = '';
    76
    8 if (isset($_POST["login"]) AND $_POST["user"] != "" AND $_POST["pass"] != "")
    9 {$player -> Login($user,$pass);}
    10 else
     7if(isset($_POST['login']) and ($_POST['user'] != '') and ($_POST['pass'] != ''))
    118{
    12   if ($player -> Check())
     9  $player->Login($user, $pass);
     10} else
     11{
     12  if($player->Check())
    1313  {
    14  
    15  
     14    echo('<div align="left">'.
     15      '<b>Menu účtu:</b><br />'.
     16      '<a href="?page=chmeil">Změna emailu</a><br />'.
     17      '<a href="?page=chtyp">Změna typu účtu</a><br />'.
     18      '<a href="?page=chpass">Změna hesla</a><br />'.
     19      '<a href="?page=webconfig">Nastavení stránek</a><br />'.
     20      //'<a href="?page=acclog">Dění na vašem účtu</a><br />'.
     21      '<b>Menu postav:</b><br />'.
     22      '<a href="?page=chars">Seznam vašich postav</a><br />'.
     23      '<a href="?page=xpreset">Resetování XP</a><br />'.
     24      '<a href="?page=unstuck">Resetování pozice</a><br />'.
     25      //'<a href="?page=movechar">Přesun postav</a><br />'.
     26      //'<a href="?page=dontwork">Generování podpisu</a><br />'.
     27      '');
    1628
    17     echo "<div align=\"left\">";
    18       echo "<b>Menu účtu:</b><br />";
    19       echo "<a href=\"?page=chmeil\">Změna emailu</a><br />";
    20       echo "<a href=\"?page=chtyp\">Změna typu účtu</a><br />";
    21       echo "<a href=\"?page=chpass\">Změna hesla</a><br />";
    22       echo "<a href=\"?page=webconfig\">Nastavení stránek</a><br />";
    23       echo "<a href=\"?page=acclog\"></a><br />"; //Dění na vašem účtu - ZNEMOZNENA VIDITELNOST TLACITKA
    24       echo "<b>Menu postav:</b><br />";
    25       echo "<a href=\"?page=chars\">Seznam vašich postav</a><br />";
    26       echo "<a href=\"?page=xpreset\">Resetování XP</a><br />";
    27       echo "<a href=\"?page=unstuck\">Resetování pozice</a><br />";
    28       echo "<a href=\"?page=movechar\"></a><br />"; //PRESUN POSTAVY - ZNEMOZNENA VIDITELNOST TLACITKA, KVULI BORDELU NA SERVERU.
    29       echo "<a href=\"?page=dontwork\"></a><br />"; //Generovani podpisu - ZNEMOZNENA VIDITELNOST TLACITKA
    30 
    31     echo "</div>";
    32     if ($player -> GetGmLvl() > 3)
     29    echo('</div>');
     30    if($player->GetGmLvl() > 3)
    3331    {
    34       $admin = " | <a href=\"?page=admin\">Administrace</a>";
     32      $admin = ' | <a href="?page=admin">Administrace</a>';
     33    } else
     34    {
     35      $admin = '';
    3536    }
    36     else
    37     {
    38       $admin = "";
    39     }
    40     echo "<br /><div align=\"right\"><a href=\"?logout\">Odhlásit</a>".$admin."</div>";
    41        
    42   }
    43   else
     37    echo('<br /><div align="right"><a href="?logout">Odhlásit</a>'.$admin.'</div>');
     38  } else
    4439  {
    45     $player -> LoginForm();
     40    $player->LoginForm();
    4641  }
    4742}
    48 
    49 $html -> PrgStop();
    50 
    51 
    52 
    53 
    54 
     43$html->PrgStop();
    5544
    5645?>
  • trunk/pages/acclog.php

    r407 r583  
    11<?php
    22
    3 echo "&nbsp;<a href=\"?page=acc\">&lt;- Zpět do správy účtu</a>";
    4 $db -> select_db($db_realmd);
    5 echo "<center><table border=\"1\" align=\"center\" width=\"540\">
     3echo('&nbsp;<a href="?page=acc">&lt;- Zpět do správy účtu</a>');
     4$db->select_db($Config['Mangos']['DatabaseRealmd']);
     5echo('<table class="BaseTable">
    66  <tr>
    7     <td align=\"center\">Postava</td>
    8     <td align=\"center\">Akce</td>
    9     <td align=\"center\">Čas</td>
    10     <td align=\"center\">Provedeno z IP</td>
    11   </tr>";
    12 $data = $db -> query("SELECT * FROM `char_db` WHERE `guid` = '".$_SESSION["UserId"]."' ORDER BY `time` ASC LIMIT 0,40");
     7    <td>Postava</td>
     8    <td>Akce</td>
     9    <td>Čas</td>
     10    <td>Provedeno z IP</td>
     11  </tr>');
     12$data = $db->query('SELECT * FROM `char_db` WHERE `guid` = "'.$_SESSION['UserId'].'" ORDER BY `time` ASC LIMIT 0,40');
     13while($row = $data->fetch_assoc())
     14{
     15  $date_arr = explode(' ', $row['time']);
     16  $date = explode('-', $date_arr[0]);
     17  $time_stp = explode(':', $date_arr[1]);
     18  $time = mktime($time_stp[0], $time_stp[1], $time_stp[2], $date[1], $date[2], $date[0]);
     19  $human_date = date('d.m.Y H:i:s', $time);
     20  echo('<tr>
     21      <th>'.$row['char_name'].'</th>
     22      <td>'.$row['action'].'</td>
     23      <td>'.$human_date.'</td>
     24      <td>'.$row['ip'].'</td>
     25    </tr>');
     26}
     27echo('<tr>
     28    <td align="left" colspan="3">Vaše současná IP adresa :</td>
     29    <td align="center"><b>'.$_SERVER['REMOTE_ADDR'].'</b></td>
     30  </tr>');
     31echo('</table>');
    1332
    14 
    15 while($row = $data -> fetch_array())
    16 {
    17   $date_arr = explode(" ",$row["time"]);
    18   $date = explode("-",$date_arr[0]);
    19   $time_stp = explode(":",$date_arr[1]);
    20   $time = mktime($time_stp[0],$time_stp[1],$time_stp[2],$date[1],$date[2],$date[0]);
    21   $human_date = date ("d.m.Y H:i:s",$time);
    22   echo "<tr>
    23       <td align=\"center\"><b>".$row["char_name"]."</b></td>
    24       <td align=\"center\">".$row["action"]."</td>
    25       <td align=\"center\">".$human_date."</td>
    26       <td align=\"center\">".$row["ip"]."</td>
    27     </tr>";
    28 }
    29 echo "<tr>
    30     <td align=\"left\" colspan=\"3\">Vaše současná IP adresa :</td>
    31     <td align=\"center\"><b>".$_SERVER["REMOTE_ADDR"]."</b></td>
    32   </tr>";
    33 echo "</table></center>";
    34 
    35 
    36 
    37 
    38 
    39 
    40 echo "<font size=\"1\">Výpis omezen na 40 posledních aktivit</font>";
     33echo('<font size="1">Výpis omezen na 40 posledních aktivit</font>');
    4134
    4235?>
  • trunk/pages/admin_finance_modify.php

    r474 r583  
    1 <?
     1<?php
    22$lvl = $player -> GetGmLvl();
    33if(1 > 0){
     
    2323$operace = $operace_obracene[$oper];
    2424
    25   mysql_connect($db_server, $db_user, $db_pass);
    26   mysql_select_db($db_webu);
    27   mysql_query("SET NAMES 'utf8'");
    28    $upravit_money = mysql_query("update finance set money='$money' where id='$id2'");
    29    $upravit_operace = mysql_query("update finance set operation='$operace' where id='$id2'");
    30    $upravit_popis = mysql_query("update finance set description='$popis' where id='$id2'");
    31    $upravit_odmenu = mysql_query("update finance set odmena='$odmena' where id='$id2'");
     25   $upravit_money = $db->query("update finance set money='$money' where id='$id2'");
     26   $upravit_operace = $db->query("update finance set operation='$operace' where id='$id2'");
     27   $upravit_popis = $db->query("update finance set description='$popis' where id='$id2'");
     28   $upravit_odmenu = $db->query("update finance set odmena='$odmena' where id='$id2'");
    3229   
    3330   if($upravit_money and $upravit_operace and $upravit_popis and $upravit_odmenu):
     
    4845);
    4946
    50 $db -> select_db($db_webu);
     47$db -> select_db($Config['Database']['Database']);
    5148
    5249$load_money = $db -> query("SELECT SUM(`money`) FROM `finance`;") -> fetch_array();
  • trunk/pages/admin_novinky.php

    r470 r583  
    4545if (isset($_POST["add"]) AND $lvl > 0)
    4646{
    47   $db -> select_db($db_webu);
     47  $db -> select_db($Config['Database']['Database']);
    4848  $result =  $db -> query("INSERT INTO `articles` ( `id` , `title` , `autor` , `date` , `category` , `text`) VALUES (NULL, '".$_POST["nadpis"]."', '".$_POST["autor"]."', NULL , '".$_POST["kategorie"]."'  , '".$_POST["text"]."');");
    4949  echo "Přidáno !";
  • trunk/pages/admin_novinky_modify.php

    r470 r583  
    2222endif;
    2323
    24 mysql_connect($db_server, $db_user, $db_pass);
    25   mysql_select_db($db_webu);
    26   mysql_query("SET NAMES 'utf8'");
    27  $pocet = mysql_num_rows(mysql_query("SELECT id FROM articles $where"));
     24$DbResult = $db->query("SELECT id FROM articles $where")
     25$pocet = $DbResult->num_rows;
    2826   
    2927   if($pocet != 0):
    3028   echo"<table align=center border=1><tr><td><b>Autor</b><td><b>Datum</b><td><b>Nadpis</b><td></tr>";
    3129   
    32  $query = mysql_query("SELECT * from articles $where order by date DESC");
    33  while($row = mysql_fetch_array($query)){
     30 $query = $db->query("SELECT * from articles $where order by date DESC");
     31 while($row = $query->fetch_array($query))
     32 {
    3433 $id = $row['id'];
    3534 echo"<tr>
     
    5251 $id = $_POST['id'];
    5352
    54 mysql_connect($db_server, $db_user, $db_pass);
    55   mysql_select_db($db_webu);
    56   mysql_query("SET NAMES 'utf8'");
    57    $query = mysql_query("SELECT * from articles where id='$id'");
     53   $query = $db->query("SELECT * from articles where id='$id'");
    5854   
    59    while($row = mysql_fetch_array($query)){
     55   while($row = $query->fetch_array())
     56   {
    6057   $autor = $row['autor'];
    6158    $title = $row['title'];
     
    112109          if($upravit==1 and $lvl > 0):
    113110           
    114   mysql_connect($db_server, $db_user, $db_pass);
    115   mysql_select_db($db_webu);
    116   mysql_query("SET NAMES 'utf8'");
    117    $upravit_autor = mysql_query("update articles set autor='$autor' where id='$id'");
    118    $upravit_title = mysql_query("update articles set title='$title' where id='$id'");
    119    $upravit_text = mysql_query("update articles set text='$text' where id='$id'");
    120    $upravit_kategorie = mysql_query("update articles set category='$kategorie' where id='$id'");
     111
     112   $upravit_autor = $db->query("update articles set autor='$autor' where id='$id'");
     113   $upravit_title = $db->query("update articles set title='$title' where id='$id'");
     114   $upravit_text = $db->query("update articles set text='$text' where id='$id'");
     115   $upravit_kategorie = $db->query("update articles set category='$kategorie' where id='$id'");
    121116 
    122117   if($upravit_autor and $upravit_title and $upravit_text and $upravit_kategorie):
     
    141136 
    142137 ?>
    143    
    144  
    145    
    146    
    147    
    148    
    149    
    150    
    151    
    152    
    153 
  • trunk/pages/arena.php

    r582 r583  
    2121$count = $db->query('SELECT COUNT(*) FROM arena_team')->fetch_row();
    2222$all_record = $count[0];
    23 echo('<center><h3>Arénové týmy :</h3></center>
    24 Celkem týmů : <b>'.$all_record.'</b>
     23echo('<h3 class="PageTitle">Arénové týmy :</h3>
     24Celkem týmů : <strong>'.$all_record.'</strong>
    2525<center>
    26   <table border="1" width="540">
     26  <table class="BaseTable">
    2727    <tr>
    2828      <th>'.MakeLink('Tým', 'atname').'</th>
  • trunk/pages/aukce.php

    r407 r583  
    8686  </tr>
    8787<?php
    88 $db -> select_db($db_characters);
     88$db -> select_db($Config['Mangos']['DatabaseCharacters']);
    8989
    9090function AuctionEnd($end_time)
     
    153153
    154154 
    155   $db -> select_db($db_mangos);
     155  $db -> select_db($Config['Mangos']['DatabaseMangos']);
    156156  $item = $db -> query("SELECT `name` , `RequiredLevel` FROM `item_template` WHERE `entry`='".$row["item_template"]."' LIMIT 1;") -> fetch_array();
    157157  if (LoadCookie("hof-frakce",$row["location"]) == $row["location"] AND LoadCookie("hof-maxgold",10000000000) >= $moneys[0] AND LoadCookie("hof-minlvl",0) <= $item["RequiredLevel"] AND LoadCookie("hof-maxlvl",70) >= $item["RequiredLevel"])
  • trunk/pages/chpass.php

    r581 r583  
    4141      Momentální Heslo: </td>
    4242    <td>
    43      <input type="password" name="heslo1" /></td>
     43     <input type="password" name="heslo1" class="textinput" /></td>
    4444  </tr>
    4545   <tr>
     
    4747      Nové Heslo : </td>
    4848    <td>
    49      <input type="password" name="heslo2" /></td>
     49     <input type="password" name="heslo2" class="textinput" /></td>
    5050  </tr>
    5151   <tr>
     
    5353      Nové Heslo podruhé : </td>
    5454    <td>
    55      <input type="password" name="heslo3" /></td>
     55     <input type="password" name="heslo3" class="textinput" /></td>
    5656  </tr>
    5757  <tr>
  • trunk/pages/chtyp.php

    r582 r583  
    77<table border="0" align="center">
    88<tr><td width="50px"><font face="verdana" size="2"><b>Účet :</b></font></td>
    9 <td><input type="textbox" name="aa" /></td></tr>
     9<td><input type="textbox" name="aa" class="textinput" /></td></tr>
    1010<tr><td><font face="verdana" size="2"><b>Heslo :</b></font></td>
    11 <td><input type="password" name="ab" /></td></tr>
    12 <tr><td></td><td><select name="vyber">
     11<td><input type="password" name="ab" class="textinput" /></td></tr>
     12<tr><td></td><td><select name="vyber" class="textinput">
    1313 <option value="wotlk">WotLK datadisk</option>
    1414 <option value="tbc">TBC datadisk</option>
  • trunk/pages/dotation.php

    r556 r583  
    44<p>
    55Př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">
     6<table class="BaseTable">
    77  <tr>
    88    <th>Odměna</th>
     
    4242
    4343$operace = array(
    44   "buy" => "Nákup",
    45   "sell" => "Prodej",
    46   "consumption" => "Spotřeba",
    47   "internet" => "Internet",
    48   "contribution" => "Příspěvek od",
     44  'buy' => 'Nákup',
     45  'sell' => 'Prodej',
     46  'consumption' => 'Spotřeba',
     47  'internet' => 'Internet',
     48  'contribution' => 'Příspěvek od',
    4949);
    5050
    51 $db -> select_db($db_webu);
     51$db->select_db($Config['Database']['Database']);
    5252
    53 $load_money = $db -> query("SELECT SUM(`money`) FROM `finance`;") -> fetch_array();
     53$load_money = $db->query('SELECT SUM(`money`) FROM `finance`;')->fetch_row();
    5454
    5555echo('<p><strong>Aktuální stav financí: '.$load_money[0].' Kč</strong></p>');
    56 echo('<table class="gmlog">'.
     56echo('<table class="BaseTable">'.
    5757  '<tr>'.
    5858  '<th>Datum</th>'.
     
    6363
    6464$load_dotation = $db->query('SELECT * FROM `finance` ORDER BY `id` DESC');
    65 while ($row = $load_dotation->fetch_array())
     65while ($row = $load_dotation->fetch_assoc())
    6666{
    6767  $odmena = $row['odmena'];
     
    7575    $date = '';
    7676  }
    77   if($row['money'] > 0) $plus = "+";
     77  if($row['money'] > 0) $plus = '+';
    7878    else $plus = '';
    7979  echo('<tr>'.
  • trunk/pages/download.php

    r556 r583  
    22
    33include('files.php');
    4 echo('<h2 align="center">Soubory ke stažení:</h2>');
    5 echo('<div align="center" ><table class="DownloadTable">');
     4echo('<h3 class="PageTitle">Soubory ke stažení:</h3>');
     5echo('<table class="DownloadTable">');
    66foreach($Files as $GroupName => $Group)
    77{
    88  if($Group['link'] != '') $www = ' <a href="'.$Group['link'].'">www</a>'; else $www = '';
    9   echo('<tr><td colspan="3" style="border-bottom-width: thin; border-bottom-color: white; border-bottom-style: solid;"><strong>'.$Group['title'].$www.'</strong></td></tr>');
     9  echo('<tr><th colspan="3"><strong>'.$Group['title'].$www.'</strong></th></tr>');
    1010  foreach($Group['files'] as $FileName => $File)
    1111  {
     
    2020<a href="http://www.slunecnice.cz/sw/torrent-harvester/">Stáhnout Torrent Harvester na hledání torrentů</a>
    2121</td></tr>');
    22 echo('</table></div>');
    23 
     22echo('</table>');
    2423
    2524?>
  • trunk/pages/events.php

    r556 r583  
    9393
    9494$Events = Events();
    95 echo('<table class="gmlog">');
     95echo('<table class="BaseTable">');
    9696echo('<tr><th>Název</th><th>Začátek</th><th>Konec</th><th>Informace</th></tr>');
    9797echo('<tr><td colspan="5"><b>Probíhající akce</b></td></tr>');
  • trunk/pages/gmlog.php

    r556 r583  
    55
    66echo('<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>');
     7echo('<table class="BaseTable"><tr><th>Čas</th><th>Příkaz</th><th>GM</th><th>Vybrán</th></tr>');
    88
    99$data = file($gmlog);
  • trunk/pages/gmteam.php

    r576 r583  
    33$Role = array('Hráč', 'Moderátor', 'Game Master', 'Kontrolor chyb', 'Vedoucí Tábora', 'Administrátor', 'Správce Systému');
    44
    5 echo('<h2 align="center">GM tým</h2>');
    6 $db->select_db($db_realmd);
     5echo('<h3 class="PageTitle">GM tým</h3>');
     6$db->select_db($Config['Mangos']['DatabaseRealmd']);
    77$Result = $db->query('SELECT * FROM account WHERE (locked = 0) AND (gmlevel > 0) ORDER BY username');
    8 echo('<table border="0" cellpadding="3" align="center">');
     8echo('<table class="GMTeamTable">');
    99while($Line = $Result->fetch_array())
    1010{
     
    1212  if(substr($Line['username'], -2, 2) == 'gm') $Line['username'] = substr($Line['username'], 0, -2);
    1313 
    14   echo('<tr><td>Přezdívka:</td>');
    15   echo('<td style="text-align: left; font-weight: bold;">'.$Line['username'].'</td>');
     14  echo('<tr class="start"><th>Přezdívka:</th>');
     15  echo('<td>'.$Line['username'].'</td>');
    1616  echo('</tr>');
    17   echo('<tr><td>Pověření:</td>');
    18   echo('<td style="text-align: left; font-weight: bold;">'.$Line['Note'].'</td>');
     17  echo('<tr><th>Pověření:</th>');
     18  echo('<td>'.$Line['Note'].'</td>');
    1919  echo('</tr>');
    2020/*
     
    2727  $Acc = $Line['AccID'];
    2828*/
    29   $db->select_db($db_characters);
    30   echo('<tr><td>GM Postavy ve hře:</td>');
    31   echo('<td style="text-align: left; font-weight: bold;">');
     29  $db->select_db($Config['Mangos']['DatabaseCharacters']);
     30  echo('<tr><th>GM Postavy ve hře:</th>');
     31  echo('<td>');
    3232  $Characters = array();
    3333  $ResultMangos = $db->query('SELECT * FROM `characters` WHERE account = "'.$Line['id'].'"');
     
    4343  if($Line['ForumId'] != 0)
    4444  {
    45     echo('<tr><td>Profil na foru:</td>');
     45    echo('<tr><th>Profil na foru:</th>');
    4646    echo('<td><strong><a href="'.$Config['Web']['BaseURL'].'forum/memberlist.php?mode=viewprofile&u='.$Line['ForumId'].'">Profil</a></strong></td>');
    4747    echo '</tr>';
    4848  }
    49   echo('<tr><td colspan="2"><hr></td></tr>');
     49  //echo('<tr><td colspan="2"><hr></td></tr>');
    5050}
    5151echo('</table>');
  • trunk/pages/guildy.php

    r577 r583  
    4646}
    4747
    48 echo "
    49 <center>
    50 <table border=\"1\" width=\"540\">
     48echo('<table class="BaseTable">
    5149  <tr>
    52     <th align=\"center\">".MakeLink("","fraction")."</th>
    53     <th align=\"center\">".MakeLink("Jméno guildy","name")."</th>
    54     <th align=\"center\">".MakeLink("Celkem členů","member_count")."</th>
    55     <th align=\"center\">Členů online</th>
    56     <th align=\"center\">Guild master</th>
    57     <th align=\"center\">".MakeLink("Stránky guildy","homepage")."</th>
    58     <th align=\"center\">".MakeLink("Založena","createdate")."</th>
    59   </tr>";
     50    <th>'.MakeLink('', 'fraction').'</th>
     51    <th>'.MakeLink('Jméno spolku', 'name').'</th>
     52    <th>'.MakeLink('Celkem členů', 'member_count').'</th>
     53    <th>Členů online</th>
     54    <th>Guild master</th>
     55    <th>'.MakeLink('Webové stránky', 'homepage').'</th>
     56    <th>'.MakeLink('Datum založení', 'createdate').'</th>
     57  </tr>');
    6058
    6159$db->select_db($Config['Mangos']['DatabaseCharacters']);
     
    8482}
    8583
    86 echo "</table></center>";
     84echo('</table>');
    8785
    8886?>
  • trunk/pages/movechar.php

    r407 r583  
    4545if (isset($_POST["movechar"]) AND $_POST["acc1"] != "" AND $_POST["pass1"] != "" AND $_POST["pass2"] != "" AND $_POST["char"] != "" AND $_POST["acc2"] != "" AND $_POST["pass1"] == $_POST["pass2"])
    4646{
    47   $db -> select_db($db_realmd);
     47  $db->select_db($Config['Mangos']['DatabaseRealmd']);
    4848  $row = $db -> query("SELECT `locked` FROM `account` WHERE `id` = '".$_SESSION["UserId"]."';") -> fetch_array();
    4949  if ($row["locked"] != 1)
  • trunk/pages/online.php

    r579 r583  
    2323echo('Ve hře se právě nachází '.$server->MangosOnline().' hráčů.'.
    2424'<center>
    25 <table border="1" width="540">
     25<table class="BaseTable">
    2626  <tr>
    2727    <th align="center">Frakce</th>
  • trunk/pages/register.php

    r580 r583  
    2020  '<form method="post" action="?page=register">'.
    2121  '<table style="margin-left:auto; margin-right:auto; text-align:center;">'.
    22   '<tr><td>Účet:</td><td><input type="text" name="account" value="'.$account.'"/></td></tr>'.
    23   '<tr><td>Heslo:</td><td><input type="password" name="heslo1" value="'.$password1.'"/></td></tr>'.
    24   '<tr><td>Heslo znovu:</td><td><input type="password" name="heslo2" value="'.$password2.'"/></td></tr>'.
    25   '<tr><td>Email:</td><td><input type="text" name="email" value="'.$email.'"/></td></tr>'.
     22  '<tr><td>Účet:</td><td><input type="text" name="account" value="'.$account.'" class="textinput"/></td></tr>'.
     23  '<tr><td>Heslo:</td><td><input type="password" name="heslo1" value="'.$password1.'" class="textinput"/></td></tr>'.
     24  '<tr><td>Heslo znovu:</td><td><input type="password" name="heslo2" value="'.$password2.'" class="textinput"/></td></tr>'.
     25  '<tr><td>Email:</td><td><input type="text" name="email" value="'.$email.'" class="textinput"/></td></tr>'.
    2626  '<tr><td>Typ účtu:</td><td><select name="expansion" value="'.$expansion.'">'.
    2727  '<option value="">-- vyber typ účtu --</option>'.
  • trunk/pages/server.php

    r576 r583  
    11<?php
    22
    3 echo('<h3 style="text-align: center;">Server Heroes of Fantasy :</h3>'.
    4 '<table class="gmlog">
     3echo('<h3 class="PageTitle">Server Heroes of Fantasy :</h3>'.
     4'<table class="BaseTable">
    55  <tr>
    66    <td colspan="2"><strong>Statistiky :</strong></td>
  • trunk/stat/stat.php

    r508 r583  
    22include('../inc/db.php');
    33
    4 $Hostname = $db_server;
    5 $Username = $db_user;
    6 $Password = $db_pass;
    7 $Database = $db_mangos; // must contains characters table
     4$Hostname = $Config['Database']['Host'];
     5$Username = $Config['Database']['User'];
     6$Password = $Config['Database']['Password'];
     7$Database = $Config['Mangos']['DatabaseMangos']; // must contains characters table
    88$RealmHostname = $Hostname;
    99$RealmUsername = $Username;
    1010$RealmPassword = $Password;
    11 $RealmDatabase = $db_realmd;  // must contains zone_coordinates and accounts table
    12 $CharactersDatabase = $db_characters;  // must contains zone_coordinates and accounts table
    13 $EmuVersion = '3.0.9'; //$Config['Mangos']['Version'];
    14 $Owner = 'Admin'; //$Config['Web']['Admin'];
    15 $ServerName = 'MaNGOS server'; //$Config['Web']['Title'];
     11$RealmDatabase = $Config['Mangos']['DatabaseRealmd'];  // must contains zone_coordinates and accounts table
     12$CharactersDatabase = $Config['Mangos']['DatabaseCharacters'];  // must contains zone_coordinates and accounts table
     13$EmuVersion = $Config['Mangos']['ClientVersion'];
     14$Owner = $Config['Web']['Admin'];
     15$ServerName = $Config['Web']['Title'];
    1616$DatabaseEncoding = 'utf8';
    1717
  • trunk/styles/ie.css

    r405 r583  
    11/* CSS Document */
    2 #footer     {
    3         width: 982px;
    4         margin-left: -865px;
     2#footer     
     3{
     4  width: 982px;
     5  margin-left: -865px;
    56        align : center;
    6             }
     7}
    78
    8 #menu       {
    9             margin-left: 110px;
    10             }
    11 #content    {
    12             margin-left: 65px;
    13             }
     9#menu       
     10{
     11  margin-left: 110px;
     12}
     13
     14#content   
     15{
     16  margin-left: 65px;
     17}
  • trunk/styles/style.css

    r581 r583  
    66}
    77
     8.textinput
     9{
     10  width: 130px;
     11}
     12
    813#page
    914{
    1015  width: 982px;
    11   min-height:100%;
    12   height:auto !important;
    13   height:100%;
     16  min-height: 100%;
     17  height: auto !important;
     18  height: 100%;
    1419  background-image: url(../imgs/web/middle.jpg);
    1520  position: absolute;
     
    117122table
    118123{
    119   border-collapse: collapse ;
     124  border-collapse: collapse;
    120125  border-color: rgb(48,48,48);
    121126}
     
    124129{
    125130  height: 174px;
    126   background-image: url(imgs/web/headers/header'.rand(0, $num_headers - 1).'.jpg);
    127131}
    128132
     
    175179}
    176180
    177 .gmlog
     181.BaseTable
    178182{
    179183  margin-left: auto;
     
    185189}
    186190
    187 .gmlog th
     191.BaseTable th
    188192{
    189193  border-width: 1px 1px 1px 1px;
     
    192196}
    193197
    194 .gmlog td
     198.BaseTable td
    195199{
    196200  text-align: center;
     
    219223}
    220224
     225.DownloadTable th
     226{
     227  border-bottom-width: thin;
     228  border-bottom-color: white;
     229  border-bottom-style: solid;
     230}
     231
    221232.h10
    222233{
     
    233244}
    234245
     246.PageTitle
     247{
     248  text-align: center;
     249}
     250
     251.GMTeamTable
     252{
     253  margin-left: auto;
     254  margin-right: auto;
     255  text-align: center;
     256  border-width: 0px 0px 1px 0px;
     257  border-style: solid;
     258  border-color: black;
     259}
     260
     261.GMTeamTable th
     262{
     263  border-width: 0px;
     264  border-style: solid;
     265  border-color: black;
     266  text-align: left;
     267  font-weight: normal;
     268}
     269
     270.GMTeamTable td
     271{
     272  text-align: center;
     273  border-width: 0px;
     274  border-style: solid;
     275  border-color: black;
     276  text-align: left;
     277  font-weight: bold;
     278}
     279
     280.GMTeamTable tr.start td
     281{
     282  border-width: 1px 0px 0px 0px;
     283  border-style: solid;
     284  border-color: black;
     285}
     286
     287.GMTeamTable tr.start th
     288{
     289  border-width: 1px 0px 0px 0px;
     290  border-style: solid;
     291  border-color: black;
     292}
Note: See TracChangeset for help on using the changeset viewer.