Changeset 16 for global.php
- Timestamp:
- Aug 12, 2007, 1:35:53 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.php
r14 r16 37 37 } 38 38 39 function FormatOutput($s) 40 { 41 $out = ''; 42 $nn = 0; 43 $n = 0; 44 while($s!='') 45 { 46 $start = strpos($s,'<'); 47 $end = strpos($s,'>'); 48 if($start != 0) 49 { 50 $end = $start-1; 51 $start = 0; 52 } 53 $line = trim(substr($s,$start,$end+1)); 54 if(strlen($line)>0) 55 if($line[0] == '<') 56 { 57 if($s[$start+1] == '/') 58 { 59 $n = $n - 2; 60 $nn = $n; 61 } else 62 { 63 if(strpos($line,' ')) $cmd = substr($line,1,strpos($line,' ')-1); 64 else $cmd = substr($line,1,strlen($line)-2); 65 //echo('['.$cmd.']'); 66 if(strpos($s,'</'.$cmd.'>')) $n = $n + 2; 67 } 68 }// else $line = '['.$line.']'; 69 //if($line != '') echo(htmlspecialchars(str_repeat(' ',$nn).$line."\n")); 70 if($line != '') $out .= (str_repeat(' ',$nn).$line."\n"); 71 $s = substr($s,$end+1,strlen($s)); 72 $nn = $n; 73 } 74 return($out); 75 } 76 39 77 function CheckPortStatus($Ip, $Port) 40 78 { … … 65 103 <TITLE>WoW server Heroes of Fantasy</TITLE> 66 104 <style type="text/css" media="screen">@import url('.$BaseUrl.'css/style.css);</style> 105 <script language="JavaScript" type="text/javascript" src="'.$BaseUrl.'css/global_js.php"></script> 67 106 </HEAD> 68 107 <BODY text="#cccccc"> 69 108 70 <script type="text/javascript">71 <!--72 function getAppVersion() {73 appname= navigator.appName;74 appversion = navigator.appVersion;75 majorver = appversion.substring(0, 1);76 if ( (appname == "Netscape") && ( majorver >= 3 ) ) return 1;77 if ( (appname == "Microsoft Internet Explorer") && (majorver >= 4) ) return 1;78 return 0;79 }80 function swtch(num, imgname) {81 if (getAppVersion()) {82 document[imgname].src = img[num].src;83 }84 }85 imgsrc = new Array();86 imgsrc[1] = "'.$BaseUrl.'images/home.jpg";87 imgsrc[2] = "'.$BaseUrl.'images/home2.jpg";88 imgsrc[3] = "'.$BaseUrl.'images/donate.jpg";89 imgsrc[4] = "'.$BaseUrl.'images/donate2.jpg";90 imgsrc[5] = "'.$BaseUrl.'images/download.jpg";91 imgsrc[6] = "'.$BaseUrl.'images/download2.jpg";92 imgsrc[7] = "'.$BaseUrl.'images/forum.jpg";93 imgsrc[8] = "'.$BaseUrl.'images/forum2.jpg";94 imgsrc[9] = "'.$BaseUrl.'images/guilds.jpg";95 imgsrc[10] = "'.$BaseUrl.'images/guilds2.jpg";96 imgsrc[11] = "'.$BaseUrl.'images/honor.jpg";97 imgsrc[12] = "'.$BaseUrl.'images/honor2.jpg";98 imgsrc[13] = "'.$BaseUrl.'images/how.jpg";99 imgsrc[14] = "'.$BaseUrl.'images/how2.jpg";100 imgsrc[15] = "'.$BaseUrl.'images/link.jpg";101 imgsrc[16] = "'.$BaseUrl.'images/link2.jpg";102 imgsrc[17] = "'.$BaseUrl.'images/mapa.jpg";103 imgsrc[18] = "'.$BaseUrl.'images/mapa2.jpg";104 imgsrc[19] = "'.$BaseUrl.'images/online_player.jpg";105 imgsrc[20] = "'.$BaseUrl.'images/online_player2.jpg";106 imgsrc[21] = "'.$BaseUrl.'images/povolani.jpg";107 imgsrc[22] = "'.$BaseUrl.'images/povolani2.jpg";108 imgsrc[23] = "'.$BaseUrl.'images/profese.jpg";109 imgsrc[24] = "'.$BaseUrl.'images/profese2.jpg";110 imgsrc[25] = "'.$BaseUrl.'images/rasy.jpg";111 imgsrc[26] = "'.$BaseUrl.'images/rasy2.jpg";112 imgsrc[27] = "'.$BaseUrl.'images/registrace.jpg";113 imgsrc[28] = "'.$BaseUrl.'images/registrace2.jpg";114 imgsrc[29] = "'.$BaseUrl.'images/server.jpg";115 imgsrc[30] = "'.$BaseUrl.'images/server2.jpg";116 if (getAppVersion()) {117 img = new Array();118 for (i = 0; i < imgsrc.length; i++) {119 img[i] = new Image();120 img[i].src = imgsrc[i];121 }122 }123 //-->124 </script>125 109 126 110 <TABLE cellspacing="0" cellpadding="0" align="center" class="TableHlavni" border="0"> 127 111 <TR> 128 <TD> 129 <div class="pHlavni"> 130 <br> 131 <br> 132 <br> 133 <br> 134 <br> 135 <br> 136 '); 137 138 } 139 140 141 function ShowFooter() 142 { 143 global $BaseUrl; 144 echo(' 145 </div> 146 </td> 147 <TD class="TdSloupec" valign="top" align="center"> 112 <TD id="BlankSpace"> </td> 113 <TD rowspan="2" class="TdSloupec" valign="top" align="center"> 148 114 <div class="Nadpis">Heroes of Fantasy</div> 149 115 <div class="DivText">'); … … 185 151 </td> 186 152 </tr> 153 <tr><td> 154 <div class="pHlavni">'); 155 } 156 157 function ShowFooter() 158 { 159 global $BaseUrl; 160 echo('</div> 161 </td> 187 162 <tr> 188 163 <td colspan="2"> … … 194 169 <!-- 195 170 document.write("<A href=\"http://counter.cnw.cz\" target=\"_parent\" > 196 <IMG src=\"http://counter.cnw.cz/trackit.cgi?wowzdechov&t3&" + escape(top.document.referrer) + "\" alt=\"CNW:Tracker\" border=\"0\" width=\"0\" height=\"0\" ><\/A>");171 <IMG src=\"http://counter.cnw.cz/trackit.cgi?wowzdechov&t3&" + escape(top.document.referrer) + "\" alt=\"CNW:Tracker\" border=\"0\" width=\"0\" height=\"0\" alt=\"counter\"><\/A>"); 197 172 // --> 198 173 </SCRIPT>
Note:
See TracChangeset
for help on using the changeset viewer.