Changeset 377
- Timestamp:
- Sep 16, 2008, 6:53:09 AM (16 years ago)
- Location:
- beta
- Files:
-
- 2 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
beta/functions.php
r373 r377 3 3 { 4 4 global $server; 5 echo " 6 <table align=\"center\" border=\"1\" width=\"500\"> 7 <tr> 8 <td><b>Rychlý přehled</b></td> 9 <td width=\"100\">".date ("d.m.Y",time())."</td> 10 </tr> 11 <tr> 12 <td colspan=\"2\"> 13 <b>Server : </b>".$server -> ServerImg($server -> ServerOnline("wow.zdechov.net",8085))."<b> (".$server -> MangosOnline()." hráčů) | Patch 2.4.3 | Více info <a href=\"?page=server\">zde</a></b> 14 </td> 15 </tr> 16 </table> 17 <br /> 18 "; 5 if (isset($_COOKIE["hof-quick"]) AND $_COOKIE["hof-quick"] == "no") 6 { 7 } 8 else 9 { 10 echo " 11 <table align=\"center\" border=\"1\" width=\"500\"> 12 <tr> 13 <td><b>Rychlý přehled</b></td> 14 <td width=\"100\">".date ("d.m.Y",time())."</td> 15 </tr> 16 <tr> 17 <td colspan=\"2\"> 18 <b>Server : </b>".$server -> ServerImg($server -> ServerOnline("wow.zdechov.net",8085))."<b> (<a href=\"?page=online\">".$server -> MangosOnline()." hráčů</a>) | Patch 2.4.3 | <a href=\"http://wow.zdechov.net/realmlist.wtf\">Realmlist</a> | Více info <a href=\"?page=server\">zde</a></b> 19 </td> 20 </tr> 21 </table> 22 <br /> 23 "; 24 } 19 25 } 20 26 -
beta/inc/html.php
r373 r377 216 216 } 217 217 $this -> db -> select_db("web"); 218 $sql = $this -> db -> query("SELECT * FROM `articles`".$where."ORDER BY `date` ;");218 $sql = $this -> db -> query("SELECT * FROM `articles`".$where."ORDER BY `date` DESC;"); 219 219 if ($sql -> num_rows > 0) 220 220 { … … 241 241 break; 242 242 } 243 $date_arr = explode(" ",$row["date"]); 244 $date = explode("-",$date_arr[0]); 245 $time = mktime(0,0,0,$date[1],$date[2],$date[0]); 246 $human_date = date ("d.m.Y",$time); 243 247 echo " 244 248 <table align=\"center\" border=\"1\" width=\"500\"> 245 249 <tr> 246 250 <td><b>".$row["title"]."</b></td> 247 <td width=\"100\">".$ row["date"]."</td>251 <td width=\"100\">".$human_date."</td> 248 252 </tr> 249 253 <tr> -
beta/inc/server.php
r373 r377 127 127 foreach($gm_log as $row) 128 128 { 129 129 130 if (strpos($row,"Command:") == true) 130 131 { … … 140 141 else 141 142 {$sel_name = "";} 143 $date_arr = explode(" ",$edited_arr[0]); 144 $date = explode("-",$date_arr[0]); 145 $time_stp = explode(":",$date_arr[1]); 146 $time = mktime($time_stp[0],$time_stp[1],$time_stp[2],$date[1],$date[2],$date[0]); 147 $human_date = date ("d.m.Y H:i:s",$time); 142 148 echo " 143 149 <tr> 144 <td><font size=\"2\">".$ edited_arr[0]."</font></td>150 <td><font size=\"2\">".$human_date."</font></td> 145 151 <td>".$edited_arr[2]."</td> 146 152 <td>".$edited_arr[1]."</td> … … 157 163 $edited = str_replace(")", "", $edited); 158 164 $edited_arr = explode(";",$edited); 165 166 $date_arr = explode(" ",$edited_arr[0]); 167 $date = explode("-",$date_arr[0]); 168 $time_stp = explode(":",$date_arr[1]); 169 $time = mktime($time_stp[0],$time_stp[1],$time_stp[2],$date[1],$date[2],$date[0]); 170 $human_date = date ("d.m.Y H:i:s",$time); 171 159 172 echo " 160 173 <tr> 161 <td><font size=\"2\">".$ edited_arr[0]."</font></td>174 <td><font size=\"2\">".$human_date."</font></td> 162 175 <td>".$edited_arr[1]."</td> 163 176 <td>Send : ".$edited_arr[3].")</td> … … 175 188 $edited = str_replace(")", "", $edited); 176 189 $edited_arr = explode(";",$edited); 190 191 $date_arr = explode(" ",$edited_arr[0]); 192 $date = explode("-",$date_arr[0]); 193 $time_stp = explode(":",$date_arr[1]); 194 $time = mktime($time_stp[0],$time_stp[1],$time_stp[2],$date[1],$date[2],$date[0]); 195 $human_date = date ("d.m.Y H:i:s",$time); 177 196 echo " 178 197 <tr> 179 <td><font size=\"2\">".$ edited_arr[0]."</font></td>198 <td><font size=\"2\">".$human_date."</font></td> 180 199 <td>".$edited_arr[1]."</td> 181 200 <td>Trade : ".$edited_arr[3].")</td> -
beta/index.php
r373 r377 11 11 include_once ("./functions.php"); 12 12 $html -> Start(); 13 $num_headers = 8; 13 if (isset($_COOKIE["hof-random"]) AND $_COOKIE["hof-random"] == "no") 14 { 15 $num_headers = 1; 16 } 17 else 18 { 19 $num_headers = 8; 20 } 14 21 echo " 15 22 <div id=\"page\"> 16 23 <style> 17 #header { 18 height: 174px; 19 background-image: url(imgs/web/headers/header".rand(0,$num_headers-1).".jpg); 20 } 24 #header{height: 174px;background-image: url(imgs/web/headers/header".rand(0,$num_headers-1).".jpg);} 21 25 a {font-family: Times New Roman; color: #4c4c4c; text-decoration: none; } 22 26 a:hover {font-family: Times New Roman; color: black; text-decoration: underline; } … … 25 29 <div id=\"top\"></div> 26 30 <div id=\"menu\"> 27 31 "; 28 32 29 33 // menu start … … 36 40 echo "<a href=\"http://wow.zdechov.net/forum/\" target=\"_blank\">Fórum</a><br />"; 37 41 echo "<a href=\"?page=acc\">Správa účtu</a><br />"; 42 echo "<a href=\"http://wow.zdechov.net/databaze/\" target=\"_blank\">Databáze</a><br />"; 38 43 // echo "<a href=\"?page=online\">Odkazy</a><br />"; 39 44 echo "<a href=\"?page=online\">Online hráči</a><br />"; -
beta/pages/acc.php
r373 r377 15 15 echo "<a href=\"?page=dontwork\">Změna typu účtu</a><br />"; 16 16 echo "<a href=\"?page=dontwork\">Změna hesla</a><br />"; 17 echo "<a href=\"?page= dontwork\">Dění na vašem účtu</a><br />";17 echo "<a href=\"?page=acclog\">Dění na vašem účtu</a><br />"; 18 18 echo "<a href=\"?page=webconfig\">Nastavení stránek</a><br />"; 19 19 echo "<b>Menu postav:</b><br />"; -
beta/pages/admin.php
r373 r377 3 3 $lvl = $player -> GetGmLvl(); 4 4 echo " 5 <form method=\"post\"> 5 6 <table align=\"center\" border=\"0\" width=\"300\"> 6 7 <tr> … … 35 36 36 37 </table> 38 </form> 37 39 "; 38 40 39 41 if (isset($_POST["add"])) 42 { 43 $db -> select_db("web"); 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 echo "Přidáno !"; 46 } 40 47 41 48 -
beta/pages/aukce.php
r373 r377 23 23 setcookie("hof-frakce",$_POST["frakce"],time()+$day_half); 24 24 echo "<meta http-equiv=\"refresh\" content=\"2;url=?page=aukce\">"; 25 $work = "Ukládám nastavení , chvíli ztrpení";25 $work = "Ukládám nastavení , chvíli strpení"; 26 26 } 27 27 if (isset($_POST["reset"])) … … 32 32 setcookie("hof-frakce",""); 33 33 echo "<meta http-equiv=\"refresh\" content=\"2;url=?page=aukce\">"; 34 $work = "Ukládám nastavení , chvíli ztrpení"; 35 } 36 echo "<script src=\"http://www.wowhead.com/widgets/power.js\"></script>"; 37 // echo "<script src=\"http://i.thottbot.com/power.js\"></script>"; 34 $work = "Ukládám nastavení , chvíli strpení"; 35 } 36 if (isset($_COOKIE["hof-widget"]) AND $_COOKIE["hof-widget"] == "thottbot") 37 { 38 echo "<script src=\"http://i.thottbot.com/power.js\"></script>"; 39 $link = "http://thottbot.com/i"; 40 } 41 else 42 { 43 echo "<script src=\"http://www.wowhead.com/widgets/power.js\"></script>"; 44 $link = "http://www.wowhead.com/?item="; 45 } 38 46 ?> 39 47 <form method="post"> … … 183 191 echo " 184 192 <tr> 185 <td width=\"300\">".$img."<a href=\" http://www.wowhead.com/?item=".$row["item_template"]."\" target=\"_blank\"><span style=\"position: relative; top: -13px; left: -38px\"><font size=\"2\">".$item["name"]."</font></span></a><br />Minimální level : ".$item["RequiredLevel"]."<br />Aukci vložil : ".$player -> GuidToCharName($row["itemowner"])."</td>193 <td width=\"300\">".$img."<a href=\"".$link.$row["item_template"]."\" target=\"_blank\"><span style=\"position: relative; top: -13px; left: -38px\"><font size=\"2\">".$item["name"]."</font></span></a><br />Minimální level : ".$item["RequiredLevel"]."<br />Aukci vložil : ".$player -> GuidToCharName($row["itemowner"])."</td> 186 194 <td align=\"center\">".$now."<br />".$buyout."</td> 187 195 <td align=\"center\"><font size=\"2\">".AuctionEnd($row["time"])."</font></td> -
beta/pages/guilda.php
r373 r377 19 19 $online_mem = $db -> query("SELECT count(*) AS online_mem FROM `guild_member`, `characters`, `guild` WHERE guild.guildid = ".$guild_id." AND guild_member.guildid = guild.guildid AND guild_member.guid = characters.guid AND characters.online = 1;") -> fetch_array();; 20 20 // guild info 21 $date_arr = explode(" ",$guild_data["createdate"]); 22 $date = explode("-",$date_arr[0]); 23 $time_stp = explode(":",$date_arr[1]); 24 $time = mktime($time_stp[0],$time_stp[1],$time_stp[2],$date[1],$date[2],$date[0]); 25 $human_date = date ("d.m.Y H:i:s",$time); 21 26 echo "<a href=\"?page=guildy\"><- Zpět na výpis</a><br />"; 22 27 echo " … … 27 32 <tr> 28 33 <th>Datum založení: </th> 29 <td>".$ guild_data["createdate"]."</td>34 <td>".$human_date."</td> 30 35 </tr> 31 36 <tr> -
beta/pages/guildy.php
r373 r377 68 68 { 69 69 $online_mem = $db -> query("SELECT count(*) AS online_mem FROM `guild_member`, `characters`, `guild` WHERE guild.guildid = ".$row["guildid"]." AND guild_member.guildid = guild.guildid AND guild_member.guid = characters.guid AND characters.online = 1;") -> fetch_array();; 70 70 $date_arr = explode(" ",$row["createdate"]); 71 $date = explode("-",$date_arr[0]); 72 $time_stp = explode(":",$date_arr[1]); 73 $time = mktime($time_stp[0],$time_stp[1],$time_stp[2],$date[1],$date[2],$date[0]); 74 $human_date = date ("d.m.Y H:i:s",$time); 71 75 echo " 72 76 <tr> … … 77 81 <td align=\"center\">".$server -> GuidToCharName($row["leader"])."</td> 78 82 <td align=\"center\">".GuildPages($row["homepage"],$row["name"])."</td> 79 <td align=\"center\">".$ row["createdate"]."</td>83 <td align=\"center\">".$human_date."</td> 80 84 </tr> 81 85 "; -
beta/pages/movechar.php
r373 r377 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 $player -> MoveChar($_POST["acc1"],$_POST["pass1"],$_POST["acc2"],$_POST["char"]); 47 $db -> select_db("realmd"); 48 $row = $db -> query("SELECT `locked` FROM `account` WHERE `id` = '".$_SESSION["UserId"]."';") -> fetch_array(); 49 if ($row["locked"] != 1) 50 { 51 $player -> MoveChar($_POST["acc1"],$_POST["pass1"],$_POST["acc2"],$_POST["char"]); 52 } 53 else 54 { 55 echo "Tento účet má <b>ban přesun není možné</b> !<br />"; 56 } 48 57 } 49 58 $html -> PrgStop(); -
beta/pages/webconfig.php
r373 r377 3 3 echo " <a href=\"?page=acc\"><- Zpět do správy účtu</a>"; 4 4 5 if (isset($_POST["save"])) 6 { 7 setcookie("hof-random",$_POST["random"]); 8 setcookie("hof-widget",$_POST["widget"]); 9 setcookie("hof-quick",$_POST["quick"]); 10 $msg = "<br /><center><b>Ukládám změny.</b></center><br /> 11 <meta http-equiv=\"refresh\" content=\"1;url=?page=webconfig\">"; 12 } 13 else 14 { 15 $msg = ""; 16 } 17 18 19 function Check ($value,$option) 20 { 21 if (!isset($_COOKIE["hof-".$value]) OR $_COOKIE["hof-".$value] == "") 22 { 23 $day_half = 129600; 24 // default 25 switch ($value) 26 { 27 case "random": 28 $default = "yes"; 29 break; 30 case "widget": 31 $default = "wowhead"; 32 break; 33 case "quick": 34 $default = "yes"; 35 break; 36 } 37 setcookie("hof-".$value,$default); 38 $msg = "<br /><center><b>Nahrávám základní nastavení</b></center><br /> 39 <meta http-equiv=\"refresh\" content=\"1;url=?page=webconfig\">"; 40 } 41 if (isset($_COOKIE["hof-".$value]) AND $_COOKIE["hof-".$value] == $option) 42 { 43 return " checked=\"checked\" "; 44 } 45 } 5 46 echo " 6 47 <form method=\"post\"> 7 48 <div align=\"left\"> 8 <b>Náhodný obrázek v hlavičce stránky.</b><br /> 9 <select name=\"image\"> 10 <option value=\"on\">Zapnuto</option> 11 <option value=\"off\">Vypnuto</option> 12 </select> 49 <b>Náhodný obrázek v hlavičce stránky.</b><br /> 50 Ano <input type=\"radio\" name=\"random\" value=\"yes\"".Check("random","yes")."> 51 Ne <input type=\"radio\" name=\"random\" value=\"no\"".Check("random","no")."> 52 <br /> 53 <b>Preferovaný tooltip</b><br /> 54 Wowhead <input type=\"radio\" name=\"widget\" value=\"wowhead\"".Check("widget","wowhead")."> 55 Thottbot <input type=\"radio\" name=\"widget\" value=\"thottbot\"".Check("widget","thottbot")."> 56 <br /> 57 <b>Rychlý přehled</b><br /> 58 Ano <input type=\"radio\" name=\"quick\" value=\"yes\"".Check("quick","yes")."> 59 Ne <input type=\"radio\" name=\"quick\" value=\"no\"".Check("quick","no")."> 60 <br /> 61 62 13 63 <br /> 14 64 <input type=\"submit\" value=\"Uložit\" name=\"save\"> 15 65 </form> 16 66 17 18 67 ".$msg." 19 68 </div> 20 69 ";
Note:
See TracChangeset
for help on using the changeset viewer.