Changeset 583
- Timestamp:
- May 7, 2009, 9:15:17 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/event/eventy.php
r563 r583 40 40 global $Database, $EventsLinks; 41 41 $Events = array('Running' => array(), 'Planned' => array()); 42 mysql_select_db("world");43 42 44 43 // 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()'); 46 45 while($Row = mysql_fetch_array($DbResult)) 47 46 { … … 83 82 } 84 83 85 mysql_connect("$db_server", "$db_user", "$db_pass"); 86 mysql_select_db("$db_mangos"); 84 mysql_select_db($Config['Mangos']['DatabaseMangos']); 87 85 88 86 $Events = Events(); -
trunk/inc/html.php
r578 r583 195 195 public function ShowNews($kategorie) 196 196 { 197 include('inc/db.php'); 198 global $db_webu; 197 global $Config; 199 198 200 199 echo('<table class="NewsCategoryTable">'. … … 208 207 $this->QuickNew(); 209 208 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.'"'; 216 215 } 217 216 218 mysql_connect($db_server, $db_user, $db_pass); 219 mysql_select_db($db_webu); 217 $this->db->select_db($Config['Database']['Database']); 220 218 $limit = 5; 221 219 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); 224 223 225 224 if($pocet != 0) 226 225 { 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()) 230 228 { 231 229 $row['text'] = str_replace('<br>', '<br />', $row['text']); 232 switch ($row["category"])230 switch($row['category']) 233 231 { 234 232 case 1: 235 $cat = "Server novinky";236 $link = "servernews";233 $cat = 'Server novinky'; 234 $link = 'servernews'; 237 235 break; 238 236 case 2: 239 $cat = "GM novinky";240 $link = "gmnews";237 $cat = 'GM novinky'; 238 $link = 'gmnews'; 241 239 break; 242 240 case 3: 243 $cat = "In-game novinky";244 $link = "gamenews";241 $cat = 'In-game novinky'; 242 $link = 'gamenews'; 245 243 break; 246 244 case 4: 247 $cat = "Články";248 $link = "articles";245 $cat = 'Články'; 246 $link = 'articles'; 249 247 break; 250 248 } … … 252 250 $date = explode('-', $date_arr[0]); 253 251 $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); 255 253 echo('<table class="NewsQuickInfoTable">'. 256 254 '<tr>'. 257 '<td><strong>'.$row[ "title"].'</strong></td>'.255 '<td><strong>'.$row['title'].'</strong></td>'. 258 256 '<td style="width: 100px">'.$human_date.'</td>'. 259 257 '</tr>'. 260 258 '<tr>'. 261 '<td colspan="2">'.$row[ "text"].'</td>'.259 '<td colspan="2">'.$row['text'].'</td>'. 262 260 '</tr>'. 263 261 '<tr>'. … … 271 269 if($offset < $pocet) 272 270 { 273 echo( "<a href='$_SERVER[PHP_SELF]" . ($offset + $limit < $pocet ? "?offset=" . ($offset + $limit) : "") . "'><-- novější</a>\n ");271 echo('<a href="'.$_SERVER['PHP_SELF'].($offset + $limit < $pocet ? '?offset='.($offset + $limit) : '').'"><-- novější</a>\n '); 274 272 } 275 273 if($offset > $limit) -
trunk/inc/player.php
r579 r583 86 86 <table> 87 87 <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> 89 89 </tr> 90 90 <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> 92 92 </tr> 93 93 <tr> … … 351 351 global $Config; 352 352 353 echo('<table >353 echo('<table class="BaseTable"> 354 354 <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> 360 360 </tr>'); 361 361 $this->db->select_db($Config['Mangos']['DatabaseCharacters']); … … 367 367 $gender = ($row['gender'] == 0) ? '0' : '1'; 368 368 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>'. 374 374 '</tr>'); 375 375 } -
trunk/inc/server.php
r558 r583 48 48 global $Config; 49 49 50 include('inc/db.php');51 50 $this->db->select_db($Config['Mangos']['DatabaseCharacters']); 52 51 $pocet = $this->db->query('SELECT `guid` FROM `characters` WHERE `online` = 1')->num_rows; … … 76 75 global $Config; 77 76 78 include('inc/db.php');79 77 $this->db->select_db($Config['Mangos']['DatabaseRealmd']); 80 78 $row = $this->db->query('SELECT `starttime`, `uptime` FROM `uptime` ORDER BY `starttime` DESC LIMIT 1') … … 88 86 global $Config; 89 87 90 include('inc/db.php');91 88 $this->db->select_db($Config['Mangos']['DatabaseCharacters']); 92 89 $row = $this->db->query('SELECT COUNT(*) FROM characters')->fetch_array(); … … 98 95 global $Config; 99 96 100 include('inc/db.php');101 97 $this->db->select_db($Config['Mangos']['DatabaseRealmd']); 102 98 $row = $this->db->query('SELECT COUNT(*) FROM account')->fetch_array(); … … 107 103 { 108 104 global $Config; 109 include('inc/db.php'); 105 110 106 $this->db->select_db($Config['Mangos']['DatabaseCharacters']); 111 107 $row = $this->db->query('SELECT `name` FROM `characters` WHERE `guid` = "'.$guid.'" LIMIT 1')->fetch_array(); -
trunk/index.php
r581 r583 6 6 7 7 session_start(); 8 include_once('inc/ db.php');8 include_once('inc/config.php'); 9 9 include_once('inc/db.php'); 10 10 include_once('inc/html.php'); … … 67 67 '<a href="http://servery.wowresource.eu/"><img src="http://servery.wowresource.eu/templates/img/bannery/banner_maly.gif" alt="WoW Server status" /></a><br />'. 68 68 '<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 />'. 70 70 '<strong>Statistika :</strong><br />'. 71 71 '<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 />'. -
trunk/pages/acc.php
r578 r583 1 1 <?php 2 2 3 4 $html -> PrgStart(); 3 $html->PrgStart(); 5 4 if(array_key_exists('user', $_POST)) $user = $_POST['user']; else $user = ''; 6 5 if(array_key_exists('pass', $_POST)) $pass = $_POST['pass']; else $pass = ''; 7 6 8 if (isset($_POST["login"]) AND $_POST["user"] != "" AND $_POST["pass"] != "") 9 {$player -> Login($user,$pass);} 10 else 7 if(isset($_POST['login']) and ($_POST['user'] != '') and ($_POST['pass'] != '')) 11 8 { 12 if ($player -> Check()) 9 $player->Login($user, $pass); 10 } else 11 { 12 if($player->Check()) 13 13 { 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 ''); 16 28 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) 33 31 { 34 $admin = " | <a href=\"?page=admin\">Administrace</a>"; 32 $admin = ' | <a href="?page=admin">Administrace</a>'; 33 } else 34 { 35 $admin = ''; 35 36 } 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 44 39 { 45 $player ->LoginForm();40 $player->LoginForm(); 46 41 } 47 42 } 48 49 $html -> PrgStop(); 50 51 52 53 54 43 $html->PrgStop(); 55 44 56 45 ?> -
trunk/pages/acclog.php
r407 r583 1 1 <?php 2 2 3 echo " <a href=\"?page=acc\"><- Zpět do správy účtu</a>";4 $db -> select_db($db_realmd);5 echo "<center><table border=\"1\" align=\"center\" width=\"540\">3 echo(' <a href="?page=acc"><- Zpět do správy účtu</a>'); 4 $db->select_db($Config['Mangos']['DatabaseRealmd']); 5 echo('<table class="BaseTable"> 6 6 <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'); 13 while($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 } 27 echo('<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>'); 31 echo('</table>'); 13 32 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>"; 33 echo('<font size="1">Výpis omezen na 40 posledních aktivit</font>'); 41 34 42 35 ?> -
trunk/pages/admin_finance_modify.php
r474 r583 1 <? 1 <?php 2 2 $lvl = $player -> GetGmLvl(); 3 3 if(1 > 0){ … … 23 23 $operace = $operace_obracene[$oper]; 24 24 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'"); 32 29 33 30 if($upravit_money and $upravit_operace and $upravit_popis and $upravit_odmenu): … … 48 45 ); 49 46 50 $db -> select_db($ db_webu);47 $db -> select_db($Config['Database']['Database']); 51 48 52 49 $load_money = $db -> query("SELECT SUM(`money`) FROM `finance`;") -> fetch_array(); -
trunk/pages/admin_novinky.php
r470 r583 45 45 if (isset($_POST["add"]) AND $lvl > 0) 46 46 { 47 $db -> select_db($ db_webu);47 $db -> select_db($Config['Database']['Database']); 48 48 $result = $db -> query("INSERT INTO `articles` ( `id` , `title` , `autor` , `date` , `category` , `text`) VALUES (NULL, '".$_POST["nadpis"]."', '".$_POST["autor"]."', NULL , '".$_POST["kategorie"]."' , '".$_POST["text"]."');"); 49 49 echo "Přidáno !"; -
trunk/pages/admin_novinky_modify.php
r470 r583 22 22 endif; 23 23 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; 28 26 29 27 if($pocet != 0): 30 28 echo"<table align=center border=1><tr><td><b>Autor</b><td><b>Datum</b><td><b>Nadpis</b><td></tr>"; 31 29 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 { 34 33 $id = $row['id']; 35 34 echo"<tr> … … 52 51 $id = $_POST['id']; 53 52 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'"); 58 54 59 while($row = mysql_fetch_array($query)){ 55 while($row = $query->fetch_array()) 56 { 60 57 $autor = $row['autor']; 61 58 $title = $row['title']; … … 112 109 if($upravit==1 and $lvl > 0): 113 110 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'"); 121 116 122 117 if($upravit_autor and $upravit_title and $upravit_text and $upravit_kategorie): … … 141 136 142 137 ?> 143 144 145 146 147 148 149 150 151 152 153 -
trunk/pages/arena.php
r582 r583 21 21 $count = $db->query('SELECT COUNT(*) FROM arena_team')->fetch_row(); 22 22 $all_record = $count[0]; 23 echo('< center><h3>Arénové týmy :</h3></center>24 Celkem týmů : < b>'.$all_record.'</b>23 echo('<h3 class="PageTitle">Arénové týmy :</h3> 24 Celkem týmů : <strong>'.$all_record.'</strong> 25 25 <center> 26 <table border="1" width="540">26 <table class="BaseTable"> 27 27 <tr> 28 28 <th>'.MakeLink('Tým', 'atname').'</th> -
trunk/pages/aukce.php
r407 r583 86 86 </tr> 87 87 <?php 88 $db -> select_db($ db_characters);88 $db -> select_db($Config['Mangos']['DatabaseCharacters']); 89 89 90 90 function AuctionEnd($end_time) … … 153 153 154 154 155 $db -> select_db($ db_mangos);155 $db -> select_db($Config['Mangos']['DatabaseMangos']); 156 156 $item = $db -> query("SELECT `name` , `RequiredLevel` FROM `item_template` WHERE `entry`='".$row["item_template"]."' LIMIT 1;") -> fetch_array(); 157 157 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 41 41 Momentální Heslo: </td> 42 42 <td> 43 <input type="password" name="heslo1" /></td>43 <input type="password" name="heslo1" class="textinput" /></td> 44 44 </tr> 45 45 <tr> … … 47 47 Nové Heslo : </td> 48 48 <td> 49 <input type="password" name="heslo2" /></td>49 <input type="password" name="heslo2" class="textinput" /></td> 50 50 </tr> 51 51 <tr> … … 53 53 Nové Heslo podruhé : </td> 54 54 <td> 55 <input type="password" name="heslo3" /></td>55 <input type="password" name="heslo3" class="textinput" /></td> 56 56 </tr> 57 57 <tr> -
trunk/pages/chtyp.php
r582 r583 7 7 <table border="0" align="center"> 8 8 <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> 10 10 <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"> 13 13 <option value="wotlk">WotLK datadisk</option> 14 14 <option value="tbc">TBC datadisk</option> -
trunk/pages/dotation.php
r556 r583 4 4 <p> 5 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">6 <table class="BaseTable"> 7 7 <tr> 8 8 <th>Odměna</th> … … 42 42 43 43 $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', 49 49 ); 50 50 51 $db -> select_db($db_webu);51 $db->select_db($Config['Database']['Database']); 52 52 53 $load_money = $db -> query("SELECT SUM(`money`) FROM `finance`;") -> fetch_array();53 $load_money = $db->query('SELECT SUM(`money`) FROM `finance`;')->fetch_row(); 54 54 55 55 echo('<p><strong>Aktuální stav financí: '.$load_money[0].' Kč</strong></p>'); 56 echo('<table class=" gmlog">'.56 echo('<table class="BaseTable">'. 57 57 '<tr>'. 58 58 '<th>Datum</th>'. … … 63 63 64 64 $load_dotation = $db->query('SELECT * FROM `finance` ORDER BY `id` DESC'); 65 while ($row = $load_dotation->fetch_a rray())65 while ($row = $load_dotation->fetch_assoc()) 66 66 { 67 67 $odmena = $row['odmena']; … … 75 75 $date = ''; 76 76 } 77 if($row['money'] > 0) $plus = "+";77 if($row['money'] > 0) $plus = '+'; 78 78 else $plus = ''; 79 79 echo('<tr>'. -
trunk/pages/download.php
r556 r583 2 2 3 3 include('files.php'); 4 echo('<h 2 align="center">Soubory ke stažení:</h2>');5 echo('< div align="center" ><table class="DownloadTable">');4 echo('<h3 class="PageTitle">Soubory ke stažení:</h3>'); 5 echo('<table class="DownloadTable">'); 6 6 foreach($Files as $GroupName => $Group) 7 7 { 8 8 if($Group['link'] != '') $www = ' <a href="'.$Group['link'].'">www</a>'; else $www = ''; 9 echo('<tr><t d 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>'); 10 10 foreach($Group['files'] as $FileName => $File) 11 11 { … … 20 20 <a href="http://www.slunecnice.cz/sw/torrent-harvester/">Stáhnout Torrent Harvester na hledání torrentů</a> 21 21 </td></tr>'); 22 echo('</table></div>'); 23 22 echo('</table>'); 24 23 25 24 ?> -
trunk/pages/events.php
r556 r583 93 93 94 94 $Events = Events(); 95 echo('<table class=" gmlog">');95 echo('<table class="BaseTable">'); 96 96 echo('<tr><th>Název</th><th>Začátek</th><th>Konec</th><th>Informace</th></tr>'); 97 97 echo('<tr><td colspan="5"><b>Probíhající akce</b></td></tr>'); -
trunk/pages/gmlog.php
r556 r583 5 5 6 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 echo('<table class="BaseTable"><tr><th>Čas</th><th>Příkaz</th><th>GM</th><th>Vybrán</th></tr>'); 8 8 9 9 $data = file($gmlog); -
trunk/pages/gmteam.php
r576 r583 3 3 $Role = array('Hráč', 'Moderátor', 'Game Master', 'Kontrolor chyb', 'Vedoucí Tábora', 'Administrátor', 'Správce Systému'); 4 4 5 echo('<h 2 align="center">GM tým</h2>');6 $db->select_db($ db_realmd);5 echo('<h3 class="PageTitle">GM tým</h3>'); 6 $db->select_db($Config['Mangos']['DatabaseRealmd']); 7 7 $Result = $db->query('SELECT * FROM account WHERE (locked = 0) AND (gmlevel > 0) ORDER BY username'); 8 echo('<table border="0" cellpadding="3" align="center">');8 echo('<table class="GMTeamTable">'); 9 9 while($Line = $Result->fetch_array()) 10 10 { … … 12 12 if(substr($Line['username'], -2, 2) == 'gm') $Line['username'] = substr($Line['username'], 0, -2); 13 13 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>'); 16 16 echo('</tr>'); 17 echo('<tr><t d>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>'); 19 19 echo('</tr>'); 20 20 /* … … 27 27 $Acc = $Line['AccID']; 28 28 */ 29 $db->select_db($ db_characters);30 echo('<tr><t d>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>'); 32 32 $Characters = array(); 33 33 $ResultMangos = $db->query('SELECT * FROM `characters` WHERE account = "'.$Line['id'].'"'); … … 43 43 if($Line['ForumId'] != 0) 44 44 { 45 echo('<tr><t d>Profil na foru:</td>');45 echo('<tr><th>Profil na foru:</th>'); 46 46 echo('<td><strong><a href="'.$Config['Web']['BaseURL'].'forum/memberlist.php?mode=viewprofile&u='.$Line['ForumId'].'">Profil</a></strong></td>'); 47 47 echo '</tr>'; 48 48 } 49 echo('<tr><td colspan="2"><hr></td></tr>');49 //echo('<tr><td colspan="2"><hr></td></tr>'); 50 50 } 51 51 echo('</table>'); -
trunk/pages/guildy.php
r577 r583 46 46 } 47 47 48 echo " 49 <center> 50 <table border=\"1\" width=\"540\"> 48 echo('<table class="BaseTable"> 51 49 <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>'); 60 58 61 59 $db->select_db($Config['Mangos']['DatabaseCharacters']); … … 84 82 } 85 83 86 echo "</table></center>";84 echo('</table>'); 87 85 88 86 ?> -
trunk/pages/movechar.php
r407 r583 45 45 if (isset($_POST["movechar"]) AND $_POST["acc1"] != "" AND $_POST["pass1"] != "" AND $_POST["pass2"] != "" AND $_POST["char"] != "" AND $_POST["acc2"] != "" AND $_POST["pass1"] == $_POST["pass2"]) 46 46 { 47 $db -> select_db($db_realmd);47 $db->select_db($Config['Mangos']['DatabaseRealmd']); 48 48 $row = $db -> query("SELECT `locked` FROM `account` WHERE `id` = '".$_SESSION["UserId"]."';") -> fetch_array(); 49 49 if ($row["locked"] != 1) -
trunk/pages/online.php
r579 r583 23 23 echo('Ve hře se právě nachází '.$server->MangosOnline().' hráčů.'. 24 24 '<center> 25 <table border="1" width="540">25 <table class="BaseTable"> 26 26 <tr> 27 27 <th align="center">Frakce</th> -
trunk/pages/register.php
r580 r583 20 20 '<form method="post" action="?page=register">'. 21 21 '<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>'. 26 26 '<tr><td>Typ účtu:</td><td><select name="expansion" value="'.$expansion.'">'. 27 27 '<option value="">-- vyber typ účtu --</option>'. -
trunk/pages/server.php
r576 r583 1 1 <?php 2 2 3 echo('<h3 style="text-align: center;">Server Heroes of Fantasy :</h3>'.4 '<table class=" gmlog">3 echo('<h3 class="PageTitle">Server Heroes of Fantasy :</h3>'. 4 '<table class="BaseTable"> 5 5 <tr> 6 6 <td colspan="2"><strong>Statistiky :</strong></td> -
trunk/stat/stat.php
r508 r583 2 2 include('../inc/db.php'); 3 3 4 $Hostname = $ db_server;5 $Username = $ db_user;6 $Password = $ db_pass;7 $Database = $ db_mangos; // must contains characters table4 $Hostname = $Config['Database']['Host']; 5 $Username = $Config['Database']['User']; 6 $Password = $Config['Database']['Password']; 7 $Database = $Config['Mangos']['DatabaseMangos']; // must contains characters table 8 8 $RealmHostname = $Hostname; 9 9 $RealmUsername = $Username; 10 10 $RealmPassword = $Password; 11 $RealmDatabase = $ db_realmd; // must contains zone_coordinates and accounts table12 $CharactersDatabase = $ db_characters; // must contains zone_coordinates and accounts table13 $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']; 16 16 $DatabaseEncoding = 'utf8'; 17 17 -
trunk/styles/ie.css
r405 r583 1 1 /* CSS Document */ 2 #footer { 3 width: 982px; 4 margin-left: -865px; 2 #footer 3 { 4 width: 982px; 5 margin-left: -865px; 5 6 align : center; 6 7 } 7 8 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 6 6 } 7 7 8 .textinput 9 { 10 width: 130px; 11 } 12 8 13 #page 9 14 { 10 15 width: 982px; 11 min-height: 100%;12 height: auto !important;13 height: 100%;16 min-height: 100%; 17 height: auto !important; 18 height: 100%; 14 19 background-image: url(../imgs/web/middle.jpg); 15 20 position: absolute; … … 117 122 table 118 123 { 119 border-collapse: collapse 124 border-collapse: collapse; 120 125 border-color: rgb(48,48,48); 121 126 } … … 124 129 { 125 130 height: 174px; 126 background-image: url(imgs/web/headers/header'.rand(0, $num_headers - 1).'.jpg);127 131 } 128 132 … … 175 179 } 176 180 177 . gmlog181 .BaseTable 178 182 { 179 183 margin-left: auto; … … 185 189 } 186 190 187 . gmlogth191 .BaseTable th 188 192 { 189 193 border-width: 1px 1px 1px 1px; … … 192 196 } 193 197 194 . gmlogtd198 .BaseTable td 195 199 { 196 200 text-align: center; … … 219 223 } 220 224 225 .DownloadTable th 226 { 227 border-bottom-width: thin; 228 border-bottom-color: white; 229 border-bottom-style: solid; 230 } 231 221 232 .h10 222 233 { … … 233 244 } 234 245 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.