Changeset 11 for global.php


Ignore:
Timestamp:
Aug 11, 2007, 12:04:22 AM (17 years ago)
Author:
george
Message:

Sjednocení parametrů připojení k databázi do jednoho souboru config.php.
Přepsání všech cest na relativní.
Přidání parametru BaseUrl do souboru config.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.php

    r8 r11  
    1 <?
     1<?php
    22
    33include('config.php');
     
    4141function ShowHeader()
    4242{
    43   global $Charset;
     43  global $Charset, $BaseUrl;
    4444  echo('
    4545<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     
    4949  <META http-equiv="Content-Type" content="text/html; charset='.$Charset.'">
    5050  <META HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">
    51   <link rel="SHORTCUT ICON" href="/images/favicon.ico">
     51  <link rel="SHORTCUT ICON" href="images/favicon.ico">
    5252  <TITLE>WoW server Heroes of Fantasy</TITLE>
    53   <style type="text/css" media="screen">@import url(/css/style.css);</style>
     53  <style type="text/css" media="screen">@import url('.$BaseUrl.'css/style.css);</style>
    5454</HEAD> 
    5555
     
    7373}
    7474imgsrc = new Array();
    75 imgsrc[1] = "/images/home.jpg";
    76 imgsrc[2] = "/images/home2.jpg";
    77 imgsrc[3] = "/images/donate.jpg";
    78 imgsrc[4] = "/images/donate2.jpg";
    79 imgsrc[5] = "/images/download.jpg";
    80 imgsrc[6] = "/images/download2.jpg";
    81 imgsrc[7] = "/images/forum.jpg";
    82 imgsrc[8] = "/images/forum2.jpg";
    83 imgsrc[9] = "/images/guilds.jpg";
    84 imgsrc[10] = "/images/guilds2.jpg";
    85 imgsrc[11] = "/images/honor.jpg";
    86 imgsrc[12] = "/images/honor2.jpg";
    87 imgsrc[13] = "/images/how.jpg";
    88 imgsrc[14] = "/images/how2.jpg";
    89 imgsrc[15] = "/images/link.jpg";
    90 imgsrc[16] = "/images/link2.jpg";
    91 imgsrc[17] = "/images/mapa.jpg";
    92 imgsrc[18] = "/images/mapa2.jpg";
    93 imgsrc[19] = "/images/online_player.jpg";
    94 imgsrc[20] = "/images/online_player2.jpg";
    95 imgsrc[21] = "/images/povolani.jpg";
    96 imgsrc[22] = "/images/povolani2.jpg";
    97 imgsrc[23] = "/images/profese.jpg";
    98 imgsrc[24] = "/images/profese2.jpg";
    99 imgsrc[25] = "/images/rasy.jpg";
    100 imgsrc[26] = "/images/rasy2.jpg";
    101 imgsrc[27] = "/images/registrace.jpg";
    102 imgsrc[28] = "/images/registrace2.jpg";
    103 imgsrc[29] = "/images/server.jpg";
    104 imgsrc[30] = "/images/server2.jpg";
     75imgsrc[1] = "'.$BaseUrl.'images/home.jpg";
     76imgsrc[2] = "'.$BaseUrl.'images/home2.jpg";
     77imgsrc[3] = "'.$BaseUrl.'images/donate.jpg";
     78imgsrc[4] = "'.$BaseUrl.'images/donate2.jpg";
     79imgsrc[5] = "'.$BaseUrl.'images/download.jpg";
     80imgsrc[6] = "'.$BaseUrl.'images/download2.jpg";
     81imgsrc[7] = "'.$BaseUrl.'images/forum.jpg";
     82imgsrc[8] = "'.$BaseUrl.'images/forum2.jpg";
     83imgsrc[9] = "'.$BaseUrl.'images/guilds.jpg";
     84imgsrc[10] = "'.$BaseUrl.'images/guilds2.jpg";
     85imgsrc[11] = "'.$BaseUrl.'images/honor.jpg";
     86imgsrc[12] = "'.$BaseUrl.'images/honor2.jpg";
     87imgsrc[13] = "'.$BaseUrl.'images/how.jpg";
     88imgsrc[14] = "'.$BaseUrl.'images/how2.jpg";
     89imgsrc[15] = "'.$BaseUrl.'images/link.jpg";
     90imgsrc[16] = "'.$BaseUrl.'images/link2.jpg";
     91imgsrc[17] = "'.$BaseUrl.'images/mapa.jpg";
     92imgsrc[18] = "'.$BaseUrl.'images/mapa2.jpg";
     93imgsrc[19] = "'.$BaseUrl.'images/online_player.jpg";
     94imgsrc[20] = "'.$BaseUrl.'images/online_player2.jpg";
     95imgsrc[21] = "'.$BaseUrl.'images/povolani.jpg";
     96imgsrc[22] = "'.$BaseUrl.'images/povolani2.jpg";
     97imgsrc[23] = "'.$BaseUrl.'images/profese.jpg";
     98imgsrc[24] = "'.$BaseUrl.'images/profese2.jpg";
     99imgsrc[25] = "'.$BaseUrl.'images/rasy.jpg";
     100imgsrc[26] = "'.$BaseUrl.'images/rasy2.jpg";
     101imgsrc[27] = "'.$BaseUrl.'images/registrace.jpg";
     102imgsrc[28] = "'.$BaseUrl.'images/registrace2.jpg";
     103imgsrc[29] = "'.$BaseUrl.'images/server.jpg";
     104imgsrc[30] = "'.$BaseUrl.'images/server2.jpg";
    105105if (getAppVersion()) {
    106106img = new Array();
     
    130130function ShowFooter()
    131131{
     132  global $BaseUrl;
    132133  echo('
    133134    </td>
     
    143144echo('
    144145<br>
    145 <a href="/index.php" onMouseOver="swtch(&quot;2&quot;,&quot;home&quot;)" onMouseOut="swtch(&quot;1&quot;,&quot;home&quot;)"><IMG SRC="/images/home.jpg" name="home" alt="Home" border="0"></A><a href="/server.php" onMouseOver="swtch(&quot;30&quot;,&quot;Server&quot;)" onMouseOut="swtch(&quot;29&quot;,&quot;Server&quot;)"><IMG SRC="/images/server.jpg" name="Server" alt="Server" border="0"></A><a href="/donate.php" onMouseOver="swtch(&quot;4&quot;,&quot;donate&quot;)" onMouseOut="swtch(&quot;3&quot;,&quot;donate&quot;)"><IMG SRC="/images/donate.jpg" alt="donate" name="donate" border="0"></A><a href="/download_soubory/" onMouseOver="swtch(&quot;6&quot;,&quot;download&quot;)" onMouseOut="swtch(&quot;5&quot;,&quot;download&quot;)"><IMG SRC="/images/download.jpg" alt="download" name="download" border="0"></A><a href="/jak_zacit.php" onMouseOver="swtch(&quot;14&quot;,&quot;how&quot;)" onMouseOut="swtch(&quot;13&quot;,&quot;how&quot;)"><IMG SRC="/images/how.jpg" alt="how" name="how" border="0"></A><a href="/link.php" onMouseOver="swtch(&quot;16&quot;,&quot;link&quot;)" onMouseOut="swtch(&quot;15&quot;,&quot;link&quot;)"><IMG SRC="/images/link.jpg" alt="link" name="link" border="0"></A><a href="/mapa.php" onMouseOver="swtch(&quot;18&quot;,&quot;mapa&quot;)" onMouseOut="swtch(&quot;17&quot;,&quot;mapa&quot;)"><IMG SRC="/images/mapa.jpg" alt="mapa" name="mapa" border="0"></A><a href="/guildy.php" onMouseOver="swtch(&quot;10&quot;,&quot;guildy&quot;)" onMouseOut="swtch(&quot;9&quot;,&quot;guildy&quot;)"><IMG SRC="/images/guilds.jpg" alt="guildy" name="guildy" border="0"></A><a href="/forum/" onMouseOver="swtch(&quot;8&quot;,&quot;Forum&quot;)" onMouseOut="swtch(&quot;7&quot;,&quot;Forum&quot;)"><IMG SRC="/images/forum.jpg" alt="Forum" name="Forum" border="0"></A><a href="/registrace/" onMouseOver="swtch(&quot;28&quot;,&quot;registrace&quot;)" onMouseOut="swtch(&quot;27&quot;,&quot;registrace&quot;)"><IMG SRC="/images/registrace.jpg" alt="registrace" name="registrace" border="0"></A><a href="/online_player.php" onMouseOver="swtch(&quot;20&quot;,&quot;online_player&quot;)" onMouseOut="swtch(&quot;19&quot;,&quot;online_player&quot;)"><IMG SRC="/images/online_player.jpg" alt="online player" name="online_player" border="0"></A><a href="/honor.php" onMouseOver="swtch(&quot;12&quot;,&quot;honor&quot;)" onMouseOut="swtch(&quot;11&quot;,&quot;honor&quot;)"><IMG SRC="/images/honor.jpg" alt="honor" name="honor" border="0"></A><a href="/Death%20Dealers%20Hratelne%20Rasy.php" onMouseOver="swtch(&quot;26&quot;,&quot;Rasy&quot;)" onMouseOut="swtch(&quot;25&quot;,&quot;Rasy&quot;)"><IMG SRC="/images/rasy.jpg" alt="Rasy" name="Rasy" border="0"></A><a href="/Death%20Dealers%20Povolani.php" onMouseOver="swtch(&quot;22&quot;,&quot;Povolani&quot;)" onMouseOut="swtch(&quot;21&quot;,&quot;Povolani&quot;)"><IMG SRC="/images/povolani.jpg" alt="Povolani" name="Povolani" border="0"></A><a href="/Death%20Dealers%20Profese.php" onMouseOver="swtch(&quot;24&quot;,&quot;profese&quot;)" onMouseOut="swtch(&quot;23&quot;,&quot;profese&quot;)"><IMG SRC="/images/profese.jpg" alt="profese" name="profese" border="0"></A>
     146<a href="'.$BaseUrl.'index.php" onMouseOver="swtch(&quot;2&quot;,&quot;home&quot;)" onMouseOut="swtch(&quot;1&quot;,&quot;home&quot;)"><IMG SRC="'.$BaseUrl.'images/home.jpg" name="home" alt="Home" border="0"></A>
     147<a href="'.$BaseUrl.'server.php" onMouseOver="swtch(&quot;30&quot;,&quot;Server&quot;)" onMouseOut="swtch(&quot;29&quot;,&quot;Server&quot;)"><IMG SRC="'.$BaseUrl.'images/server.jpg" name="Server" alt="Server" border="0"></A>
     148<a href="'.$BaseUrl.'donate.php" onMouseOver="swtch(&quot;4&quot;,&quot;donate&quot;)" onMouseOut="swtch(&quot;3&quot;,&quot;donate&quot;)"><IMG SRC="'.$BaseUrl.'images/donate.jpg" alt="donate" name="donate" border="0"></A>
     149<a href="'.$BaseUrl.'download_soubory/" onMouseOver="swtch(&quot;6&quot;,&quot;download&quot;)" onMouseOut="swtch(&quot;5&quot;,&quot;download&quot;)"><IMG SRC="'.$BaseUrl.'images/download.jpg" alt="download" name="download" border="0"></A>
     150<a href="'.$BaseUrl.'jak_zacit.php" onMouseOver="swtch(&quot;14&quot;,&quot;how&quot;)" onMouseOut="swtch(&quot;13&quot;,&quot;how&quot;)"><IMG SRC="'.$BaseUrl.'images/how.jpg" alt="how" name="how" border="0"></A>
     151<a href="'.$BaseUrl.'link.php" onMouseOver="swtch(&quot;16&quot;,&quot;link&quot;)" onMouseOut="swtch(&quot;15&quot;,&quot;link&quot;)"><IMG SRC="'.$BaseUrl.'images/link.jpg" alt="link" name="link" border="0"></A>
     152<a href="'.$BaseUrl.'mapa.php" onMouseOver="swtch(&quot;18&quot;,&quot;mapa&quot;)" onMouseOut="swtch(&quot;17&quot;,&quot;mapa&quot;)"><IMG SRC="'.$BaseUrl.'images/mapa.jpg" alt="mapa" name="mapa" border="0"></A>
     153<a href="'.$BaseUrl.'guildy.php" onMouseOver="swtch(&quot;10&quot;,&quot;guildy&quot;)" onMouseOut="swtch(&quot;9&quot;,&quot;guildy&quot;)"><IMG SRC="'.$BaseUrl.'images/guilds.jpg" alt="guildy" name="guildy" border="0"></A>
     154<a href="'.$BaseUrl.'forum/" onMouseOver="swtch(&quot;8&quot;,&quot;Forum&quot;)" onMouseOut="swtch(&quot;7&quot;,&quot;Forum&quot;)"><IMG SRC="'.$BaseUrl.'images/forum.jpg" alt="Forum" name="Forum" border="0"></A>
     155<a href="'.$BaseUrl.'registrace/" onMouseOver="swtch(&quot;28&quot;,&quot;registrace&quot;)" onMouseOut="swtch(&quot;27&quot;,&quot;registrace&quot;)"><IMG SRC="'.$BaseUrl.'images/registrace.jpg" alt="registrace" name="registrace" border="0"></A>
     156<a href="'.$BaseUrl.'online_player.php" onMouseOver="swtch(&quot;20&quot;,&quot;online_player&quot;)" onMouseOut="swtch(&quot;19&quot;,&quot;online_player&quot;)"><IMG SRC="'.$BaseUrl.'images/online_player.jpg" alt="online player" name="online_player" border="0"></A>
     157<a href="'.$BaseUrl.'honor.php" onMouseOver="swtch(&quot;12&quot;,&quot;honor&quot;)" onMouseOut="swtch(&quot;11&quot;,&quot;honor&quot;)"><IMG SRC="'.$BaseUrl.'images/honor.jpg" alt="honor" name="honor" border="0"></A>
     158<a href="'.$BaseUrl.'Death%20Dealers%20Hratelne%20Rasy.php" onMouseOver="swtch(&quot;26&quot;,&quot;Rasy&quot;)" onMouseOut="swtch(&quot;25&quot;,&quot;Rasy&quot;)"><IMG SRC="'.$BaseUrl.'images/rasy.jpg" alt="Rasy" name="Rasy" border="0"></A>
     159<a href="'.$BaseUrl.'Death%20Dealers%20Povolani.php" onMouseOver="swtch(&quot;22&quot;,&quot;Povolani&quot;)" onMouseOut="swtch(&quot;21&quot;,&quot;Povolani&quot;)"><IMG SRC="'.$BaseUrl.'images/povolani.jpg" alt="Povolani" name="Povolani" border="0"></A>
     160<a href="'.$BaseUrl.'Death%20Dealers%20Profese.php" onMouseOver="swtch(&quot;24&quot;,&quot;profese&quot;)" onMouseOut="swtch(&quot;23&quot;,&quot;profese&quot;)"><IMG SRC="'.$BaseUrl.'images/profese.jpg" alt="profese" name="profese" border="0"></A>
    146161
    147162
     
    173188      <DIV class="DivPaticka">
    174189       <I class="Paticka">
    175    <A href="/administrace/" class="Paticka">#</A>
    176       | Web designer: maron | e-mail: maron2@centrum.cz |  Poèet pøístupù: <A HREF="http://counter.cnw.cz/" TARGET=_parent>
     190   <A href="administrace/" class="Paticka">#</A>
     191      | Správce server: Chronos |  Poèet pøístupù: <A HREF="http://counter.cnw.cz/" TARGET=_parent>
    177192      <IMG SRC="http://counter.cnw.cz/monika.cgi?wowzdechov&amp;5&amp;000000&amp;FFFFFF&amp;on" BORDER=0 ALT="CNW:Counter"></A><SCRIPT type="JavaScript">
    178193      <!--
Note: See TracChangeset for help on using the changeset viewer.