Changeset 407
- Timestamp:
- Feb 9, 2009, 6:29:42 PM (16 years ago)
- Location:
- beta
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
beta/index.php
r405 r407 43 43 echo "<a href=\"?page=links\">Odkazy</a><br />"; 44 44 echo "<a href=\"?page=online\">Online hráči</a><br />"; 45 echo "<a href=\"#\" onclick=\"window.open('../minimanager/pomm_public/pomm.php','Mapa online hráčů','width=758,height=525');return false;\">Mapa hráčů</a><br />"; 45 46 echo "<a href=\"?page=guildy\">Guildy</a><br />"; 46 47 echo "<a href=\"?page=gh\">Domky Guild</a><br />"; … … 93 94 echo " 94 95 </div> 95 <div id=\"footer\"></div> 96 <div id=\"footer\"><p align=center><br /><div id=copyright>Created by <strong>bbtrash</strong></div></div> 97 96 98 </div> 99 97 100 "; 98 101 -
beta/pages/acclog.php
r405 r407 2 2 3 3 echo " <a href=\"?page=acc\"><- Zpět do správy účtu</a>"; 4 $db -> select_db( "realm1_realmd");4 $db -> select_db($db_realmd); 5 5 echo "<center><table border=\"1\" align=\"center\" width=\"540\"> 6 6 <tr> -
beta/pages/admin_finance.php
r405 r407 42 42 if (isset($_POST["add"]) AND $lvl > 0) 43 43 { 44 $db -> select_db( "wow_web");44 $db -> select_db($db_ghsystem); 45 45 $result = $db -> query("INSERT INTO `dotation` ( `id` , `time` , `money` , `operation` , `description`) VALUES (NULL, '".$_POST["day"]."', '".$_POST["suma"]."', '".$_POST["kategorie"]."' , '".$_POST["popis"]."' );"); 46 46 echo "Přidáno !"; -
beta/pages/admin_novinky.php
r405 r407 41 41 if (isset($_POST["add"]) AND $lvl > 0) 42 42 { 43 $db -> select_db( "wow_web");43 $db -> select_db($db_ghsystem); 44 44 $result = $db -> query("INSERT INTO `articles` ( `id` , `title` , `autor` , `date` , `category` , `text`) VALUES (NULL, '".$_POST["nadpis"]."', '".$_COOKIE["hof-nick"]."', NULL , '".$_POST["kategorie"]."' , '".$_POST["text"]."');"); 45 45 echo "Přidáno !"; -
beta/pages/arena.php
r405 r407 9 9 { 10 10 global $dir , $dir_img; 11 if (isset($_GET["order"]) AND $_GET["order"] == $sort) 211 if (isset($_GET["order"]) AND $_GET["order"] == $sort) 12 12 { 13 13 $arrow = $dir_img.""; … … 19 19 return $arrow."<a href=\"?page=arena&order=".$sort."&dir=".$dir."\">".$show."</a>"; 20 20 } 21 $db -> select_db("realm1_characters"); 21 include("inc/db.php"); 22 $db -> select_db("$db_characters"); 22 23 $count = $db -> query("SELECT count(*) FROM arena_team;") -> fetch_array(); 23 24 $all_record = $count[0]; -
beta/pages/aukce.php
r405 r407 86 86 </tr> 87 87 <?php 88 $db -> select_db( "realm1_characters");88 $db -> select_db($db_characters); 89 89 90 90 function AuctionEnd($end_time) … … 153 153 154 154 155 $db -> select_db( "realm1_mangos");155 $db -> select_db($db_mangos); 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"]) -
beta/pages/dotation.php
r405 r407 16 16 ); 17 17 18 $db -> select_db( "web");18 $db -> select_db($db_webu); 19 19 20 20 $load_money = $db -> query("SELECT SUM(`money`) FROM `dotation`;") -> fetch_array(); -
beta/pages/events.php
r405 r407 2 2 3 3 $EventsLinks = array( 4 1 => array("http://ww w.wowwiki.com/Midsummer_Fire_Festival", "http://www.worldofwarcraft.com/info/events/midsummer/"),4 1 => array("http://wwpw.wowwiki.com/Midsummer_Fire_Festival", "http://www.worldofwarcraft.com/info/events/midsummer/"), 5 5 2 => array("http://www.wowwiki.com/Feast_of_Winter_Veil", "http://www.worldofwarcraft.com/info/events/winterveil/"), 6 6 3 => array("http://www.wowwiki.com/Darkmoon_Faire", "http://www.worldofwarcraft.com/info/basics/factions/darkmoon/"), … … 39 39 function Events() 40 40 { 41 include("inc/db.php"); 42 41 43 global $db, $EventsLinks; 42 44 $Events = array("Running" => array(), "Planned" => array()); 43 $db -> select_db(" realm1_mangos");45 $db -> select_db("$db_mangos"); 44 46 45 47 -
beta/pages/gh.php
r405 r407 1 <?php 2 include("../gh_system/conn.php"); ?> 3 <script> 1 <script> 4 2 function zobrazSkryj(idecko){ 5 3 el=document.getElementById(idecko).style; … … 16 14 <BR> 17 15 <BR> 18 <table align=center><tr><td><font size=4><B> Nájemný systém budov cechů a spolků</B></font><br /><br /><td>16 <table align=center><tr><td><font size=4><B>Jak si zařídit GH pro svou guildu</B></font><br /><br /><td> 19 17 20 <tr><td>Jak si postavit domek pro svůj spolek, kolik platit, jaký typ domku a ostatní odpovědi na otázky získáte zde:18 <tr><td>Jak si postavit domek pro guildu a ostatní odpovědi na otázky získáte zde: 21 19 <tr><td><a href="http://wow.zdechov.net/forum/viewtopic.php?f=9&t=2143">http://wow.zdechov.net/forum/viewtopic.php?f=9&t=2143 </a> 22 20 <td><td></table> … … 26 24 27 25 <font size=5><b>Seznam Guild, které mají a platí GH:</b></font> 28 <p align=center><table align="center" border="1" bordercolor="#000000"><tr><td align=center><strong>Guild Master</strong><td align=center><strong>Jméno guildy</strong><td align=center><strong>Typ GH</strong><td align=center><strong> Měsíční poplatek</strong><td align=center><strong>Mají na další splátku?</strong><td align=center><strong>Další platba</strong>26 <p align=center><table align="center" border="1" bordercolor="#000000"><tr><td align=center><strong>Guild Master</strong><td align=center><strong>Jméno guildy</strong><td align=center><strong>Typ GH</strong><td align=center><strong>Týdenní poplatek</strong><td align=center><strong>Mají na další splátku?</strong><td align=center><strong>Další platba</strong> 29 27 30 28 <? 29 include("gh_system/conn.php"); 31 30 32 31 mysql_connect($SQL_Server, $SQL_Uzivatel, $SQL_Heslo); … … 43 42 44 43 while ($zaznam = mysql_fetch_array($query) ) { 45 $id = $zaznam['id']; ;44 $id = $zaznam['id']; 46 45 $typgh = $zaznam['typgh']; 47 46 if($typgh==1): … … 64 63 $prachy_mesicne = "90"; 65 64 endif; 65 66 66 mysql_select_db($Databaze_characters); 67 67 $query2 = mysql_query("SELECT * FROM guild where guildid=$id"); 68 68 while ($radek = mysql_fetch_array($query2) ) { 69 69 $prachy = $radek['BankMoney']; 70 } 70 $leaderguid = $radek['leaderguid']; 71 } 72 $characters_gum = mysql_query("SELECT name FROM characters where guid=$leaderguid"); 73 while ($aa = mysql_fetch_array($characters_gum) ){ 74 $gum = $aa['name']; 75 } 76 77 71 78 72 79 if($prachy-($prachy_mesicne*10000) <= 0): … … 76 83 endif; 77 84 78 echo"<tr><td align=center>$ zaznam[GuM] <td align=center>$zaznam[jmeno]<td align=center> $typgh_slovne<td align=center>$prachy_mesicne<img src='imgs/gold.gif'><td $pozadí><td align=center>$zaznam[dalsi_platba]";79 echo"</table>";85 echo"<tr><td align=center>$gum <td align=center>$zaznam[jmeno]<td align=center> $typgh_slovne<td align=center>$prachy_mesicne<img src='gh_system/img/gold.gif'><td $pozadí><td align=center>$zaznam[dalsi_platba]"; 86 80 87 } 81 endif; 88 echo"</table>"; 89 endif; 82 90 ?> -
beta/pages/gmlog.php
r405 r407 1 2 1 3 <?php 2 // works only on server ! temp way to beta !! 4 $gmlog = "/a/mangos/log/GM_Commands.log"; //CESTA K GM LOGU 5 $config = "../gh_system/conn.php"; //CESTA KE CONN.PHP 6 $pocet_radku = 50; //KOLIK RADKU Z LOGU SE BUDE ZOBRAZOVAT 7 8 echo"<table align=center bordercolor='black' border=2><tr><td align=center><strong>Cas</strong><td align=center><strong>Príkaz</strong><td align=center><strong>GM</strong><td align=center><strong>Vybrán</strong></tr>"; 9 10 11 12 3 13 echo "<img src=\"imgs/gm.jpg\">"; 4 exec("tail -30 /a/mangos/log/GM_Commands.log >> /a/www/wow/beta/server/gmlog.txt"); 5 $fp_c = fopen ("server/gmlog.txt", "r"); 6 $load_log = fread($fp_c, filesize("server/gmlog.txt")); 7 echo "<center>"; 8 $server -> ShowGmLog($load_log); 9 echo "</center>"; 10 exec("rm /a/www/wow/beta/server/gmlog.txt"); 14 include($config); 15 $data = file($gmlog); 16 $radku = count($data); 17 $i = 0; 18 19 20 while($i < $pocet_radku){ 21 $radek = $radku-1; 22 $pole=explode(" ",$data[$radek]); 23 24 if($pole[3]=="announce"): 25 $prikaz = "announce ..."; 26 else: 27 $prikaz=explode("[","$pole[3] $pole[4] $pole[5] $pole[6] $pole[7] $pole[8] $pole[9]"); 28 $prikaz = $prikaz[0]; 29 endif; 30 31 $prikaz_pole=explode("[","$pole[3] $pole[4] $pole[5] $pole[6] $pole[7] $pole[8] $pole[9]"); 32 $hrac_pole=explode("Player:",$data[$radek]); 33 $hrac=explode(" ",$hrac_pole[1]); 34 $vybran_pole=explode("Selected:",$data[$radek]); 35 $vybran=explode(" ",$vybran_pole[1]); 36 37 if($vybran[1]=="player"): 38 $guid_pole=explode("GUID:",$vybran_pole[1]); 39 $guid=explode(")]",$guid_pole[1]); 40 41 mysql_connect($SQL_Server, $SQL_Uzivatel, $SQL_Heslo); 42 mysql_select_db($Databaze_characters); 43 mysql_query("SET NAMES 'utf8'"); 44 $pocet = mysql_num_rows(mysql_query("SELECT guid FROM characters where guid=$guid[0]")); 45 if($pocet!=0): 46 $query = mysql_query("SELECT * FROM characters where guid=$guid[0]"); 47 while ($radek = mysql_fetch_array($query) ) { 48 $vybran_radek = $radek['name']; 49 $vybran = "hráč $vybran_radek"; 50 } 51 else: 52 $vybran = "<i>neznámý hrác</i>"; 53 endif; 54 else: 55 $vybran = $vybran[1]; 56 endif; 57 58 echo"<tr><td align=center>$pole[0] $pole[1]<td align=center>$prikaz<td align=center>$hrac[1]<td align=center>$vybran</tr>"; 59 $i = $i+1; 60 $radku = $radku-1; 61 } 62 echo"</table>"; 63 11 64 ?> -
beta/pages/guilda.php
r405 r407 11 11 if ($id != 0) 12 12 { 13 $db -> select_db( "realm1_characters");13 $db -> select_db($db_characters); 14 14 $guild_id = $id; 15 15 $guild_data = $db -> query("SELECT `guildid`, `name`, `createdate` FROM `guild` WHERE `guildid` = ".$guild_id." LIMIT 1;") -> fetch_array(); -
beta/pages/guildy.php
r405 r407 63 63 64 64 65 $db -> select_db( "realm1_characters");65 $db -> select_db($db_characters); 66 66 67 67 $sql = $db -> query('SELECT `guild`.homepage, `guild`.name, `guild`.guildid, `guild`.createdate, COUNT(`guild_member`.`guildid`) AS member_count ,`leader`.`race` IN (1, 3, 4, 7, 11) AS fraction , `leader`.`guid` AS leader FROM `guild` JOIN `guild_member` ON `guild_member`.`guildid` = `guild`.`guildid` JOIN `characters` AS `memebers` ON `memebers`.`guid`= `guild_member`.`guid` JOIN `characters` AS `leader` ON `leader`.`guid`= `guild`.`leaderguid` GROUP BY guild.name ORDER BY '.$order_by.' '.$order_dir.';'); -
beta/pages/movechar.php
r405 r407 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( "realm1_realmd");47 $db -> select_db($db_realmd); 48 48 $row = $db -> query("SELECT `locked` FROM `account` WHERE `id` = '".$_SESSION["UserId"]."';") -> fetch_array(); 49 49 if ($row["locked"] != 1) -
beta/pages/online.php
r405 r407 35 35 </tr> 36 36 "; 37 $db -> select_db( "realm1_characters");37 $db -> select_db($db_characters); 38 38 $sql = $db -> query("SELECT guid,name,race,class,zone,map, 39 39 CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 1563), ' ', -1) AS UNSIGNED) AS highest_rank, -
beta/pages/register.php
r405 r407 24 24 <tr> 25 25 <td>Pravidla serveru : </td> 26 <td><a href=\"http://wow.zdechov.net/forum/viewtopic.php?f=11&t=2066 ">Pravidla</a></td>26 <td><a href=\"http://wow.zdechov.net/forum/viewtopic.php?f=11&t=2066\">Pravidla</a></td> 27 27 </tr> 28 28 <tr> -
beta/pages/tickets.php
r405 r407 9 9 </tr> 10 10 "; 11 $db -> select_db( "realm1_characters");11 $db -> select_db($db_characters); 12 12 $load_tickets = $db -> query("SELECT * FROM `character_ticket` ORDER BY `ticket_id` ASC;"); 13 13 while ($row = $load_tickets -> fetch_array()) -
beta/styles/style.css
r405 r407 30 30 background-image: url(../imgs/web/bottom.jpg); 31 31 z-index: 1; 32 } 33 #copyright { 34 margin-left: 140px; 35 font-size:12px; 32 36 } 33 37 #menu {
Note:
See TracChangeset
for help on using the changeset viewer.