Preview: index1.php
Size: 8.93 KB
/home/www/idcceurope.com/www/idcceurope.com/index1.php
<?php
session_start(); // startujeme session. V?imnete si, ?e tento kód je úplne nahore pred jakýmkolik výstupem.
header("Content-Type: text/html; charset=utf-8");
$a = session_id();
if(empty($a)) session_start();
$id_host="".session_id()."";
$_SESSION['id_host'] = $id_host;
require_once "db.php";
$PocetStejnych=mysql_result(mysql_query("SELECT COUNT(*) FROM `navstevnici` WHERE `id_host`='$id_host'"), 0);
if($PocetStejnych!=0){ // pokud v db je jiz takove jmeno nebo heslo...
$volno="";
}
else
{
mysql_query("INSERT INTO navstevnici (id_host,pocet) VALUES ('$id_host','1' )") or die (mysql_error());
}
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="AtoservisLuba je autoservis splňující všechny vaše požadavky." />
<meta name="keywords" content="Autoservis,Servis,Pneuservis,Rychloservis,Karosárna,Servisní práce,Čištění interiéru,Čištění,Mití " />
<link rel="canonical" href="http://www.AutoservisLuba.cz/" />
<link rel="shortcut icon" href="favicon.ico">
<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/side-bar.js"></script>
<link href="styl.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-image: url(images/bg.jpg);
background-color: #0099FF;
}
-->
</style></head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="106"> </td>
<td width="1000" valign="top" ><span class="style8"><a href="index.php?page=kontakt"><span class="style4"><span class="style6"><span class="style1"></span></span></span></a></span>
<span class="style6"><a href="index.php?page=kosik"><span class="style1"></span></a><span class="style1"><a href="index.php?page=uvod"><span class="style8"></span></a></span></span>
<table width="1000" height="106" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1000" height="250" align="right" valign="top" background="images/logo.png"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40" align="center" class="style28"><a href="cze/index.php?page=uvod"><img src="images/cze.jpg" width="23" height="15" border="0"></a></td>
<td width="10" align="center" class="style8">|</td>
<td width="40" align="center" class="style28"><a href="index.php?page=uvod"><img src="images/vnm.jpg" width="22" height="15" border="0" ></a></td>
</tr>
</table>
<span class="style12"><a href="index.php?page=uvod"></a></span></td>
</tr>
</table></td>
<td> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<tr>
<td height="53" background="images/lista.png"> </td>
<td width="1000" valign="middle" background="images/lista.png" ><table width="1000" height="49" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" class="style8" onmouseover="this.style.backgroundColor='#EEEEEE';" onmouseout="this.style.backgroundColor='';"><a href="index.php?page=uvod"><img src="images/66.png" width="100" height="49" border="0" onMouseOver="this.src='images/6.png';" onMouseOut="this.src='images/66.png';"></a></td>
<td align="center" valign="middle" class="style8" onmouseover="this.style.backgroundColor='#EEEEEE';" onmouseout="this.style.backgroundColor='';"><a href="index.php?page=klientela"></a><a href="index.php?page=o_nas"><img src="images/11.png" width="200" height="49" border="0" onMouseOver="this.src='images/1.png';" onMouseOut="this.src='images/11.png';"></a></td>
<td width="200" align="center" valign="middle" class="style8" onmouseover="this.style.backgroundColor='#EEEEEE';" onmouseout="this.style.backgroundColor='';"><a href="index.php?page=klientela"><img src="images/22.png" width="200" height="49" border="0" onMouseOver="this.src='images/2.png';" onMouseOut="this.src='images/22.png';"></a></td>
<td width="200" align="center" valign="middle" class="style8" onmouseover="this.style.backgroundColor='#EEEEEE';" onmouseout="this.style.backgroundColor='';"><a href="index.php?page=produkty1"><img src="images/33.png" width="200" height="49" border="0" onMouseOver="this.src='images/3.png';" onMouseOut="this.src='images/33.png';"></a></td>
<td width="120" align="center" valign="middle" class="style8" onmouseover="this.style.backgroundColor='#EEEEEE';" onmouseout="this.style.backgroundColor='';"><a href="index.php?page=dokumenty"><img src="images/55.png" width="120" height="49" border="0" onMouseOver="this.src='images/5.png';" onMouseOut="this.src='images/55.png';"></a></td>
<td width="120" align="center" valign="middle" class="style8" onmouseover="this.style.backgroundColor='#EEEEEE';" onmouseout="this.style.backgroundColor='';"><a href="index.php?page=kontakt"><img src="images/44.png" width="180" height="49" border="0" onMouseOver="this.src='images/4.png';" onMouseOut="this.src='images/44.png';"></a></td>
</tr>
</table></td>
<td background="images/lista.png"> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="3"> </td>
<td width="5" height="250" align="left" valign="top" bgcolor="#FFFFFF" > </td>
<td width="990" rowspan="3" align="center" valign="top" bgcolor="#FFFFFF" ><p><span class="style1">
<?php
/*
* Tento kousek vzdy includuje do "stredu" stranky volany soubor pres URL
* Priklad volani: index.php?page=registrace
* do stredu se nacte soubor registrace.php
*/
if (isset($_GET['page'])){ // pokud byl odeslán ?page= ...
$soubor=$_GET['page'];
$soubor2= dirname($_SERVER['SCRIPT_FILENAME'])."/".$soubor.".php";
if(file_exists($soubor2)){ //pokud soubor existuje, nacteme ho do stredu
if(substr_count($soubor,"../")>0){ // pokud je v parametru alespon 1x ../ neumo?íme soubor nacíst
echo "<h3>Upozorneni</h3>Nelze nahrat soubor v nadrazeném adresari!";
}elseif($soubor=="index" or $soubor=="/index"){ // index nacíst nepovolíme, vznikl by nekonecný cyklus
echo "<h3>Upozorneni</h3>Index nemuze nacist sam sebe!";
}else{
include $soubor2;
}
}else{ //pokud soubor neexistuje, zavoláme error404.php
include "inc/error404.php";
}
}else{ // Pokud nebyl paramentr page volaný, nacteme uvod.php
include "uvod.php";
}
/*
* Tento kousek kódu nám v prípade nejakého erroru vypí?e Alert.
* Jednotlivé hlá?ky jsou v souboru inc/error_msg.php
* Je tam pole hlá?ek, v?dy voláme císlo hlá?ky v poli
* Príklad: index.php?page=uvod&Alert=0
*/
?>
</span><a href="index.php?page=produkty1"></a></p> </td>
<td width="5" rowspan="3" align="center" valign="top" bgcolor="#FFFFFF" ><a href="index.php?page=uvod"></a><span class="style6"><a href="index.php?page=kosik"><span class="style1"></span></a></span></td>
<td rowspan="3"> </td>
</tr>
<tr>
<td height="84" align="left" valign="top" bgcolor="#FFFFFF" ><h5> </h5></td>
</tr>
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF" > </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30"> </td>
<td width="1000" height="32" align="left" valign="top" background="images/zakonceni.png" ><table width="1000" height="32" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"> </td>
</tr>
</table></td>
<td> </td>
</tr>
</table>
<p class="style1">© 2011
<?php
require_once "db.php";
$query = MySQL_Query("SELECT * FROM `kontakt` ") or die (mysql_error());
$zaznam = MySQL_Fetch_Array($query);
$nazev=$zaznam['nazev']."";
echo "$nazev";
?>
, Všechna práva vyhrazena | <span id="web"><a href="http://www.studio-webdesign.cz/" target="_blank" onClick="window.open('http://www.studio-webdesign.cz');return false;">Tvorba webových stránek</a></span> - Studio-WebDesing
<? if(isset($_GET['Alert'])){
require "inc/error_msg.php"; // V tomto souboru jsou ty hlasky
$JsAlert=$_GET['Alert'];
echo '<script language="javascript" type="text/javascript">alert("'.$Rvi[$JsAlert].'");</script>';
} ?>
</p>
<p> </p>
</body>
</html>
Directory Contents
Dirs: 7 × Files: 56