"; $work = "Ukládám nastavení , chvíli strpení"; } if (isset($_POST["reset"])) { $year = 365 * 24 * 60 * 60; setcookie("hof-maxlvl","",time()+$year); setcookie("hof-minlvl","",time()+$year); setcookie("hof-maxgold","",time()+$year); setcookie("hof-frakce","",time()+$year); echo ""; $work = "Ukládám nastavení , chvíli strpení"; } if (isset($_COOKIE["hof-widget"]) AND $_COOKIE["hof-widget"] == "thottbot") { echo ""; $link = "http://thottbot.com/i"; } else { echo ""; $link = "http://www.wowhead.com/?item="; } ?>
Minimální / Maximální úroveň "> / ">
Frakce
Maximálně goldů ">
select_db($Config['Mangos']['DatabaseCharacters']); function AuctionEnd($end_time) { $now = time(); $end = $end_time; $dif_minutes = round(($end_time - time()) / 60); $dif_hours = round($dif_minutes / 60); $dif_days = round($dif_hours / 24); // dny if ($dif_days <= 2) {$end = "< 2 Dny";} if ($dif_days < 1) {$end = "< 1 Den";} // hodiny if ($dif_hours < 24) {$end = "< 24 Hodin";} if ($dif_hours < 12) {$end = "< 12 Hodin";} if ($dif_hours < 5) {$end = "< 5 Hodin";} // minuty if ($dif_minutes < 60) {$end = "< 1 Hodina";} if ($dif_minutes < 10) {$end = "< 10 Minut";} if ($dif_minutes < 5) {$end = "< 5 Minut";} if ($dif_minutes < 2) {$end = "< 2 Minuty";} if ($dif_minutes <= 1) {$end = "Konec";} return $end; } function LoadCookie ($name,$def) { if (isset($_COOKIE[$name]) AND $_COOKIE[$name] != 0 AND $_COOKIE[$name] != "") { if ($name == "hof-maxgold") {$value = $_COOKIE[$name]*10000;} else {$value = $_COOKIE[$name];} return $value; } else { return $def; } } $data = $db -> query("SELECT `item_template`,`itemowner`,`buyoutprice`,`time`,`buyguid`,`lastbid`,`startbid`,`location` FROM `auctionhouse` ORDER BY `time` ASC LIMIT 0,30"); while($row = $data -> fetch_array()) { $moneys = array_unique(array($row["buyoutprice"],$row["lastbid"],$row["startbid"])); sort($moneys); reset($moneys); while ($moneys[0] == 0) { array_shift($moneys); } $db -> select_db($Config['Mangos']['DatabaseMangos']); $item = $db -> query("SELECT `name` , `RequiredLevel` FROM `item_template` WHERE `entry`='".$row["item_template"]."' LIMIT 1;") -> fetch_array(); 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"]) { // switch switch ($row["location"]) { case 2: $loc = ""; break; case 6: $loc = ""; break; case 7: $loc = "-"; break; return $loc; } // imgs if (is_readable("./imgs/INV/".$row["item_template"].".jpg")) {$img = "";} else {$img = "";} // moneys if ($row["buyoutprice"] != 0) {$buyout = $server -> ParseCopper($row["buyoutprice"]);} else {$buyout = "-";} if ($row["buyoutprice"] != 0) {$buyout = $server -> ParseCopper($row["buyoutprice"]);} else {$buyout = "-";} if ($row["lastbid"] != 0) {$now = $server -> ParseCopper($row["lastbid"])."
(".$player -> GuidToCharName($row["buyguid"]).")";} else {$now = $server -> ParseCopper($row["startbid"]);} // timer echo " "; } } ?>
Předmět Aktuální cena
Kup teď za cenu
Konec aukce F
".$img."".$item["name"]."
Minimální level : ".$item["RequiredLevel"]."
Aukci vložil : ".$player -> GuidToCharName($row["itemowner"])."
".$now."
".$buyout."
".AuctionEnd($row["time"])." ".$loc."
Pro správnou filtraci je potřeba mít zaplé cookies.