Changeset 576 for trunk/index.php
- Timestamp:
- Apr 29, 2009, 8:02:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r575 r576 1 1 <?php 2 2 3 // SQL injection hack protection 4 foreach($_POST as $Index => $Item) $_POST[$Index] = addslashes($Item); 5 foreach($_GET as $Index => $Item) $_GET[$Index] = addslashes($Item); 6 3 7 session_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"); 8 include_once('inc/db.php'); 9 include_once('inc/db.php'); 10 include_once('inc/html.php'); 11 include_once('inc/player.php'); 12 include_once('inc/server.php'); 8 13 9 14 // classes start … … 11 16 $server = new Server($db); 12 17 $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;18 include_once('functions.php'); 19 $html->Start(); 20 if(isset($_COOKIE['hof-random']) and $_COOKIE['hof-random'] == 'no') $num_headers = 1; 16 21 else $num_headers = 8; 17 22 … … 57 62 echo('</div>'); 58 63 59 echo('< p><div class="Banners">'.64 echo('<div class="Banners">'. 60 65 '<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 />'. 62 67 '<strong>Odkazy :</strong><br />'. 63 68 '<a href="http://servery.wowresource.eu/"><img src="http://servery.wowresource.eu/templates/img/bannery/banner_maly.gif" alt="WoW Server status" /></a><br />'. … … 88 93 if($include == 1) 89 94 { 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')); 91 96 else include_once('pages/main.php'); 92 97 } 93 echo('</div><div id="footer">< p><br /></p><div id="copyright"><a href="?page=autori">Vývoj webu</a></div></div></div>');98 echo('</div><div id="footer"><br /><div id="copyright"><a href="?page=autori">Vývoj webu</a></div></div>'); 94 99 95 100 $html->Stop();
Note:
See TracChangeset
for help on using the changeset viewer.