1 | <?
|
---|
2 |
|
---|
3 | $MangosVerison = '0.6 beta';
|
---|
4 | $MangosRevision = '3155';
|
---|
5 | $SilverDBVersion = '0.6.1';
|
---|
6 | $SilverDBChangeset = '113';
|
---|
7 |
|
---|
8 | function ShowOnlinePlayerCount()
|
---|
9 | {
|
---|
10 | global $WowEmuDirectory;
|
---|
11 | // World of Warcraft user stat
|
---|
12 | //$Content = @file_get_contents('http://wow.zdechov.net:8080/stat.xml');
|
---|
13 | $Content = file_get_contents('http://localhost/mangos/inc/stat.xml');
|
---|
14 | if(strlen($Content) > 0)
|
---|
15 | {
|
---|
16 | $PlayerCount = substr_count($Content, '<player>');
|
---|
17 | $P = 'hráèù';
|
---|
18 | if($PlayerCount == 1) $P = 'hráè';
|
---|
19 | else if(($PlayerCount >= 2) and ($PlayerCount <= 4)) $P = 'hráèi';
|
---|
20 | echo($PlayerCount.' '.$P);
|
---|
21 | } else echo('OFFLINE');
|
---|
22 | }
|
---|
23 |
|
---|
24 | function CheckPortStatus($Ip, $Port)
|
---|
25 | {
|
---|
26 | error_reporting(0);
|
---|
27 | if($Fp1 = fsockopen($Ip, $Port, $ERROR_NO, $ERROR_STR,(float)0.5))
|
---|
28 | {
|
---|
29 | fclose($Fp1);
|
---|
30 | return true;
|
---|
31 | }
|
---|
32 | else
|
---|
33 | {
|
---|
34 | //echo($ERROR_NO.','.$ERROR_STR);
|
---|
35 | //die();
|
---|
36 | return false;
|
---|
37 | }
|
---|
38 | }
|
---|
39 |
|
---|
40 | function ShowHeader()
|
---|
41 | {
|
---|
42 | echo('
|
---|
43 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
---|
44 | <HTML>
|
---|
45 | <HEAD>
|
---|
46 | <META http-equiv="Content-Language" content="cs">
|
---|
47 | <META http-equiv="Content-Type" content="text/html; charset=windows-1250">
|
---|
48 | <META HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">
|
---|
49 | <link rel="SHORTCUT ICON" href="/images/favicon.ico">
|
---|
50 | <TITLE>WoW server Heroes of Fantasy</TITLE>
|
---|
51 | <style type="text/css" media="screen">@import url(/css/style.css);</style>
|
---|
52 | </HEAD>
|
---|
53 |
|
---|
54 |
|
---|
55 | <BODY text="#cccccc">
|
---|
56 |
|
---|
57 |
|
---|
58 | <TABLE align="center" class="TableHlavni" border="0">
|
---|
59 | <TR>
|
---|
60 | <TD>
|
---|
61 | <p class="pHlavni">
|
---|
62 | <br>
|
---|
63 | <br>
|
---|
64 | <br>
|
---|
65 | <br>
|
---|
66 | <br>
|
---|
67 | <br>
|
---|
68 | ');
|
---|
69 |
|
---|
70 | }
|
---|
71 |
|
---|
72 |
|
---|
73 | function ShowFooter()
|
---|
74 | {
|
---|
75 | echo('
|
---|
76 | </td>
|
---|
77 | <TD class="TdSloupec" width="240" valign="top" align="center" >
|
---|
78 | <div class="Nadpis">Heroes of Fantasy</div>
|
---|
79 | <div class="DivText">
|
---|
80 | ');
|
---|
81 |
|
---|
82 | ShowOnlinePlayerCount();
|
---|
83 |
|
---|
84 |
|
---|
85 |
|
---|
86 | echo('<br>');
|
---|
87 |
|
---|
88 | include('panel.php');
|
---|
89 |
|
---|
90 | echo('<TABLE width="220" border="1" align="center">
|
---|
91 | <TR><TD width="15%" valign="top">
|
---|
92 | <P class="pAktuality">
|
---|
93 | <A class="aAktuality" href="/VsechnyA.php"><i>Aktuality:</i></a>
|
---|
94 | ');
|
---|
95 |
|
---|
96 | include('aktuality.php');
|
---|
97 |
|
---|
98 | echo('
|
---|
99 |
|
---|
100 | <A HREF="http://www.toplist.cz/" target="_blank"><IMG alt="pocitadlo"
|
---|
101 | SRC="http://toplist.cz/count.asp?logo=mc&ID=324802"
|
---|
102 | border="0" width="1" height="1"></A>
|
---|
103 |
|
---|
104 |
|
---|
105 | </p>
|
---|
106 | </td>
|
---|
107 | </tr>
|
---|
108 | </table>
|
---|
109 |
|
---|
110 | </div>
|
---|
111 | </TD>
|
---|
112 | </TR>
|
---|
113 | <tr>
|
---|
114 | <td colspan="2">
|
---|
115 | <DIV class="DivPaticka">
|
---|
116 | <I class="Paticka">
|
---|
117 | <A href="/administrace/" class="Paticka">#</A>
|
---|
118 | | Web designer: maron | e-mail: maron2@centrum.cz | Poèet pøístupù: <A HREF="http://counter.cnw.cz/" TARGET=_parent>
|
---|
119 | <IMG SRC="http://counter.cnw.cz/monika.cgi?wowzdechov&5&000000&FFFFFF&on" BORDER=0 ALT="CNW:Counter"></A><SCRIPT type="JavaScript">
|
---|
120 | <!--
|
---|
121 | document.write("<A href=\"http://counter.cnw.cz\" target=\"_parent\" >
|
---|
122 | <IMG src=\"http://counter.cnw.cz/trackit.cgi?wowzdechov&t3&" + escape(top.document.referrer) + "\" alt=\"CNW:Tracker\" border=\"0\" width=\"0\" height=\"0\"><\/A>");
|
---|
123 | // -->
|
---|
124 | </SCRIPT></I>
|
---|
125 |
|
---|
126 | </DIV>
|
---|
127 | </td>
|
---|
128 | </tr>
|
---|
129 | </TABLE>
|
---|
130 | </BODY>
|
---|
131 | </HTML>
|
---|
132 | ');
|
---|
133 | }
|
---|
134 |
|
---|
135 |
|
---|
136 | ?>
|
---|