Changeset 576 for trunk/index.php


Ignore:
Timestamp:
Apr 29, 2009, 8:02:38 PM (16 years ago)
Author:
george
Message:
  • Opraveno: Kód a styl stránky registrace účtů.
  • Opraveno: Třídat player byla pročištěna a opravena pro kompatibilitu s konfiguračním souborem config.php a nastavením názvů databází.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r575 r576  
    11<?php
    22
     3// SQL injection hack protection
     4foreach($_POST as $Index => $Item) $_POST[$Index] = addslashes($Item);
     5foreach($_GET as $Index => $Item) $_GET[$Index] = addslashes($Item);
     6
    37session_start();
    4 include_once("./inc/db.php");
    5 include_once("./inc/html.php");
    6 include_once("./inc/player.php");
    7 include_once("./inc/server.php");
     8include_once('inc/db.php');
     9include_once('inc/db.php');
     10include_once('inc/html.php');
     11include_once('inc/player.php');
     12include_once('inc/server.php');
    813
    914// classes start
     
    1116$server = new Server($db);
    1217$html = new Html(0, $db);
    13 include_once('./functions.php');
    14 $html -> Start();
    15 if(isset($_COOKIE['hof-random']) AND $_COOKIE['hof-random'] == 'no') $num_headers = 1;
     18include_once('functions.php');
     19$html->Start();
     20if(isset($_COOKIE['hof-random']) and $_COOKIE['hof-random'] == 'no') $num_headers = 1;
    1621  else $num_headers = 8;
    1722
     
    5762echo('</div>');
    5863
    59 echo('<p><div class="Banners">'.
     64echo('<div class="Banners">'.
    6065  '<strong>Naše ikonka :</strong><br />'.
    61   '<a href="http://wow.zdechov.net/"><img src="imgs/web/hof_ban.png" alt="WoW Server Heroes of Fantasy" /></a><br />'.
     66  '<a href="'.$Config['Web']['BaseURL'].'"><img src="imgs/web/hof_ban.png" alt="WoW Server Heroes of Fantasy" /></a><br />'.
    6267  '<strong>Odkazy :</strong><br />'.
    6368  '<a href="http://servery.wowresource.eu/"><img src="http://servery.wowresource.eu/templates/img/bannery/banner_maly.gif" alt="WoW Server status" /></a><br />'.
     
    8893if($include == 1)
    8994{
    90   if(isset($_GET['page'])) include_once($html -> Pager($_GET['page'], 'pages', 'main'));
     95  if(isset($_GET['page'])) include_once($html->Pager($_GET['page'], 'pages', 'main'));
    9196    else include_once('pages/main.php');
    9297}
    93 echo('</div><div id="footer"><p><br /></p><div id="copyright"><a href="?page=autori">Vývoj webu</a></div></div></div>');
     98echo('</div><div id="footer"><br /><div id="copyright"><a href="?page=autori">Vývoj webu</a></div></div>');
    9499
    95100$html->Stop();
Note: See TracChangeset for help on using the changeset viewer.