Changeset 47 for global.php
- Timestamp:
- Aug 19, 2007, 4:58:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.php
r27 r47 8 8 $Database->Prefix = $Config['Database']['Prefix']; 9 9 $Database->charset($Config['Database']['Charset']); 10 11 $Menu = array( 12 array('index.php', 'Home', 'home'), 13 array('server.php', 'Server', 'server'), 14 array('finance/', 'Finance', 'donate'), 15 array('download_soubory/', 'Stahování', 'download'), 16 array('jak_zacit.php', 'Jak zaèít', 'how'), 17 array('link.php', 'Odkazy', 'link'), 18 array('mapa.php', 'Mapa', 'mapa'), 19 array('guild.php', 'Seznam guild', 'guilds'), 20 array('forum/', 'Diskusní fórum', 'forum'), 21 array('minimanager/register.php', 'Registrace', 'registrace'), 22 array('online_player.php', 'Online hráèi', 'online_player'), 23 array('honor.php', 'Tabulka cti', 'honor'), 24 array('Death%20Dealers%20Hratelne%20Rasy.php', 'Rasy', 'rasy'), 25 array('Death%20Dealers%20Povolani.php', 'Povolání', 'povolani'), 26 array('Death%20Dealers%20Profese.php', 'Profese', 'profese'), 27 ); 10 28 11 29 function HumanDate($DateTime) … … 91 109 } 92 110 111 function GenerateMenu() 112 { 113 global $Config, $Menu; 114 $Result = ''; 115 foreach($Menu as $Index => $MenuItem) 116 { 117 $Result .= '<a href="'.$Config['Web']['BaseURL'].$MenuItem[0].'" onMouseOver="swtch("'.($Index*2+2).'","'.$MenuItem[2].'")" onMouseOut="swtch("'.($Index*2+1).'","'.$MenuItem[2].'")"><IMG SRC="'.$Config['Web']['BaseURL'].'images/'.$MenuItem[2].'.jpg" name="'.$MenuItem[2].'" alt="'.$MenuItem[1].'" border="0"></A>'; 118 } 119 return($Result); 120 } 121 93 122 function ShowHeader() 94 123 { 95 global $C harset, $BaseUrl;124 global $Config; 96 125 echo('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 97 126 <HTML> 98 127 <HEAD> 99 128 <META http-equiv="Content-Language" content="cs"> 100 <META http-equiv="Content-Type" content="text/html; charset='.$C harset.'">129 <META http-equiv="Content-Type" content="text/html; charset='.$Config['Web']['Charset'].'"> 101 130 <META HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT"> 102 131 <link rel="SHORTCUT ICON" href="images/favicon.ico"> 132 <link rel="alternate" title="RSS aktuality" href="rss.php" type="application/rss+xml"> 103 133 <TITLE>WoW server Heroes of Fantasy</TITLE> 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>134 <style type="text/css" media="screen">@import url('.$Config['Web']['BaseURL'].'css/style.css);</style> 135 <script language="JavaScript" type="text/javascript" src="'.$Config['Web']['BaseURL'].'css/global_js.php"></script> 106 136 </HEAD> 107 137 <BODY text="#cccccc"> … … 117 147 ShowOnlinePlayerCount(); 118 148 119 echo('</div> 120 <a href="'.$BaseUrl.'index.php" onMouseOver="swtch("2","home")" onMouseOut="swtch("1","home")"><IMG SRC="'.$BaseUrl.'images/home.jpg" name="home" alt="Home" border="0"></A> 121 <a href="'.$BaseUrl.'server.php" onMouseOver="swtch("30","Server")" onMouseOut="swtch("29","Server")"><IMG SRC="'.$BaseUrl.'images/server.jpg" name="Server" alt="Server" border="0"></A> 122 <a href="'.$BaseUrl.'finance/" onMouseOver="swtch("4","donate")" onMouseOut="swtch("3","donate")"><IMG SRC="'.$BaseUrl.'images/donate.jpg" alt="donate" name="donate" border="0"></A> 123 <a href="'.$BaseUrl.'download_soubory/" onMouseOver="swtch("6","download")" onMouseOut="swtch("5","download")"><IMG SRC="'.$BaseUrl.'images/download.jpg" alt="download" name="download" border="0"></A> 124 <a href="'.$BaseUrl.'jak_zacit.php" onMouseOver="swtch("14","how")" onMouseOut="swtch("13","how")"><IMG SRC="'.$BaseUrl.'images/how.jpg" alt="how" name="how" border="0"></A> 125 <a href="'.$BaseUrl.'link.php" onMouseOver="swtch("16","link")" onMouseOut="swtch("15","link")"><IMG SRC="'.$BaseUrl.'images/link.jpg" alt="link" name="link" border="0"></A> 126 <a href="'.$BaseUrl.'mapa.php" onMouseOver="swtch("18","mapa")" onMouseOut="swtch("17","mapa")"><IMG SRC="'.$BaseUrl.'images/mapa.jpg" alt="mapa" name="mapa" border="0"></A> 127 <a href="'.$BaseUrl.'guildy.php" onMouseOver="swtch("10","guildy")" onMouseOut="swtch("9","guildy")"><IMG SRC="'.$BaseUrl.'images/guilds.jpg" alt="guildy" name="guildy" border="0"></A> 128 <a href="'.$BaseUrl.'forum/" onMouseOver="swtch("8","Forum")" onMouseOut="swtch("7","Forum")"><IMG SRC="'.$BaseUrl.'images/forum.jpg" alt="Forum" name="Forum" border="0"></A> 129 <a href="'.$BaseUrl.'minimanager/register.php" onMouseOver="swtch("28","registrace")" onMouseOut="swtch("27","registrace")"><IMG SRC="'.$BaseUrl.'images/registrace.jpg" alt="registrace" name="registrace" border="0"></A> 130 <a href="'.$BaseUrl.'online_player.php" onMouseOver="swtch("20","online_player")" onMouseOut="swtch("19","online_player")"><IMG SRC="'.$BaseUrl.'images/online_player.jpg" alt="online player" name="online_player" border="0"></A> 131 <a href="'.$BaseUrl.'honor.php" onMouseOver="swtch("12","honor")" onMouseOut="swtch("11","honor")"><IMG SRC="'.$BaseUrl.'images/honor.jpg" alt="honor" name="honor" border="0"></A> 132 <a href="'.$BaseUrl.'Death%20Dealers%20Hratelne%20Rasy.php" onMouseOver="swtch("26","Rasy")" onMouseOut="swtch("25","Rasy")"><IMG SRC="'.$BaseUrl.'images/rasy.jpg" alt="Rasy" name="Rasy" border="0"></A> 133 <a href="'.$BaseUrl.'Death%20Dealers%20Povolani.php" onMouseOver="swtch("22","Povolani")" onMouseOut="swtch("21","Povolani")"><IMG SRC="'.$BaseUrl.'images/povolani.jpg" alt="Povolani" name="Povolani" border="0"></A> 134 <a href="'.$BaseUrl.'Death%20Dealers%20Profese.php" onMouseOver="swtch("24","profese")" onMouseOut="swtch("23","profese")"><IMG SRC="'.$BaseUrl.'images/profese.jpg" alt="profese" name="profese" border="0"></A>'); 135 136 137 /* 138 echo('<TABLE width="220" border="1" align="center"> 139 <TR><TD width="15%" valign="top"> 140 <P class="pAktuality"> 141 <A class="aAktuality" href="/VsechnyA.php"><i>Aktuality:</i></a> 142 '); 143 144 include('aktuality.php'); 145 */ 149 150 echo('</div>'); 151 152 echo(GenerateMenu()); 146 153 147 154 echo('<A HREF="http://www.toplist.cz/" target="_blank"><IMG alt="pocitadlo" … … 156 163 function ShowFooter() 157 164 { 158 global $ BaseUrl;165 global $Config; 159 166 echo('</div> 160 167 </td> … … 165 172 <I class="Paticka"> 166 173 <A href="administrace/" class="Paticka">#</A> 167 | Správce serveru: Chronos | Email: wow@zdechov.net| Poèet pøístupù: <A HREF="http://counter.cnw.cz/" TARGET=_parent>174 | Správce serveru: '.$Config['Web']['Admin'].' | Email: '.$Config['Web']['AdminEmail'].' | Poèet pøístupù: <A HREF="http://counter.cnw.cz/" TARGET=_parent> 168 175 <IMG SRC="http://counter.cnw.cz/monika.cgi?wowzdechov&5&000000&FFFFFF&on" BORDER=0 ALT="CNW:Counter"></A><SCRIPT type="JavaScript"> 169 176 <!--
Note:
See TracChangeset
for help on using the changeset viewer.