1 | <script>
|
---|
2 | function popup(url, wid, hei) {
|
---|
3 | left = (window.screen.availWidth-wid)/2;
|
---|
4 | shora = (window.screen.availHeight-hei)/2;
|
---|
5 | window.open(url,"_blank","left="+left+",top="+shora+",scrollbars=yes,resiza ble=no,toolbar=no,menubar=no,status=no,location=0,width="+wid+",height ="+hei);
|
---|
6 | }
|
---|
7 | </script>
|
---|
8 | <?php
|
---|
9 | session_start();
|
---|
10 | include_once("./inc/db.php");
|
---|
11 | include_once("./inc/html.php");
|
---|
12 | include_once("./inc/player.php");
|
---|
13 | include_once("./inc/server.php");
|
---|
14 | // classes start
|
---|
15 | $player = new Player ($db);
|
---|
16 | $server = new Server ($db);
|
---|
17 | $html = new Html("0",$db);
|
---|
18 | include_once ("./functions.php");
|
---|
19 | $html -> Start();
|
---|
20 | if (isset($_COOKIE["hof-random"]) AND $_COOKIE["hof-random"] == "no")
|
---|
21 | {
|
---|
22 | $num_headers = 1;
|
---|
23 | }
|
---|
24 | else
|
---|
25 | {
|
---|
26 | $num_headers = 8;
|
---|
27 | }
|
---|
28 | echo "
|
---|
29 | <div id=\"page\">
|
---|
30 | <style>
|
---|
31 | #header{height: 174px;background-image: url(imgs/web/headers/header".rand(0,$num_headers-1).".jpg);}
|
---|
32 | a {font-family: Times New Roman; color: #4c4c4c; text-decoration: none; }
|
---|
33 | a:hover {font-family: Times New Roman; color: black; text-decoration: underline; }
|
---|
34 | </style>
|
---|
35 | <div id=\"header\"></div>
|
---|
36 | <div id=\"top\"></div>
|
---|
37 | <div id=\"menu\">
|
---|
38 | ";
|
---|
39 |
|
---|
40 | // menu start
|
---|
41 | echo "<div id=\"mainmenu\"><br /><br />";
|
---|
42 | echo "<a href=\"?page=main\">Úvod</a><br />";
|
---|
43 | echo "<a href=\"?page=server\">Server</a><br />";
|
---|
44 | echo "<a href=\"?page=register\">Registrace</a><br />";
|
---|
45 | // echo "<a href=\"?page=register\">Komunikace hráčů</a><br />";
|
---|
46 | echo "<a href=\"?page=begin\">Jak začít</a><br />";
|
---|
47 | echo "<a href=\"http://wow.zdechov.net/forum/\" target=\"_blank\">Fórum</a><br />";
|
---|
48 | echo "<a href=\"?page=acc\">Správa účtu</a><br />";
|
---|
49 | echo "<a href=\"http://wow.zdechov.net/databaze/\" target=\"_blank\">Databáze</a><br />";
|
---|
50 | echo "<a href=\"?page=links\">Odkazy</a><br />";
|
---|
51 | echo "<a href=\"?page=online\">Online hráči</a><br />";
|
---|
52 | echo "<a href=\"#\" onclick=\"popup('../minimanager/pomm_public/pomm.php', 758, 525);return false;\">Mapa hráčů</a><br />";
|
---|
53 | echo "<a href=\"?page=guildy\">Guildy</a><br />";
|
---|
54 | echo "<a href=\"?page=gh\">Domky Guild</a><br />";
|
---|
55 | echo "<a href=\"?page=arena\">Arény</a><br />";
|
---|
56 | echo "<a href=\"?page=aukce\">Aukce</a><br />";
|
---|
57 | echo "<a href=\"?page=events\">Eventy</a><br />";
|
---|
58 | echo "<a href=\"?page=dotation\">Dotace</a><br />";
|
---|
59 | echo "<a href=\"?page=teamspeak\">Team speak</a><br />";
|
---|
60 | echo "<a href=\"?page=gmlog\">GM log</a><br />";
|
---|
61 | // echo "<a href=\"?page=admins\">Admin tým</a><br />";
|
---|
62 |
|
---|
63 |
|
---|
64 | echo "<a href=\"?page=search\">Vyhledávání</a><br />";
|
---|
65 | echo "</div>";
|
---|
66 | echo "
|
---|
67 | <center>
|
---|
68 | <b>Naše ikonka :</b><br />
|
---|
69 | <a href=\"http://wow.zdechov.net/\"><img src=\"imgs/web/hof_ban.png\" alt=\"WoW Server Heroes of Fantasy\" border=\"0\" /></a><br />
|
---|
70 | <b>Odkazy :</b><br />
|
---|
71 | <a href=\"http://servery.wowresource.eu/\"><img src=\"http://servery.wowresource.eu/templates/img/bannery/banner_maly.gif\" alt=\"WoW Server status\" border=\"0\" /></a><br />
|
---|
72 | <a href=\"http://www.wowhead.com\" target=\"_blank\"><img src=\"http://www.wowhead.com/images/badge_88x31.gif\" width=\"88\" height=\"31\" border=\"0\" alt=\"\" /></a><br />
|
---|
73 | <a href=\"http://firefox.czilla.cz/\"><img alt=\"Získejte Firefox!\" title=\"Získejte Firefox!\" style=\"border:none; width:88px;height:31px\" src=\"http://firefox.czilla.cz/img/p/cz-ff-88x31.gif\" /></a>
|
---|
74 | <a href=\"http://wowpreklad.zdechov.net/\"><img src=\"http://wowpreklad.zdechov.net/banners/baner_88_31.jpg\" alt=\"baner_http://wowpreklad.zdechov.net/\" border=\"0\" height=\"31\" width=\"88\"></a>
|
---|
75 | <b>Statistika :</b><br />
|
---|
76 | <a href=\"http://www.toplist.cz/\" target=\"_blank\"><img src=\"http://toplist.cz/count.asp?logo=mc&ID=324802\" border=\"0\" width=\"88\" height=\"60\" alt=\"counter\"></a><br />
|
---|
77 |
|
---|
78 | </center>
|
---|
79 | </div>
|
---|
80 | <div id=\"content\">";
|
---|
81 | // obsah start
|
---|
82 | $include = 1;
|
---|
83 | if (isset($_GET["logout"]) AND $player -> Check())
|
---|
84 | {
|
---|
85 | echo "<center>";
|
---|
86 | $player -> Logout();
|
---|
87 | echo "</center>";
|
---|
88 | $include = 0;
|
---|
89 | }
|
---|
90 | if ($include == 1)
|
---|
91 | {
|
---|
92 | if (isset($_GET["page"]))
|
---|
93 | {
|
---|
94 | include_once ($html -> Pager($_GET["page"],"pages","main"));
|
---|
95 | }
|
---|
96 | else
|
---|
97 | {
|
---|
98 | include_once("./pages/main.php");
|
---|
99 | }
|
---|
100 | }
|
---|
101 | echo "
|
---|
102 | </div>
|
---|
103 | <div id=\"footer\"><p align=center><br /><div id=copyright>Puvodne: <a href=\"http://www.isystems.cz/?r=apesc/\" target=\"_blink\"><strong>iSystems</strong></a></div></div>
|
---|
104 |
|
---|
105 | </div>
|
---|
106 |
|
---|
107 | ";
|
---|
108 |
|
---|
109 | $html -> Stop();
|
---|
110 | $db -> close();
|
---|
111 | ?>
|
---|