Preview: index.php
Size: 8.34 KB
/home/www/idcceurope.com/www/idcceurope.com/admin/index.php
<?php
session_start();
if(isset($_SESSION['prihlasen_eshop']) and $_SESSION['prihlasen_eshop']==1)
{
$stranka=1;
}
else
{
header("location:login.php");
}
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<link rel="shortcut icon" href="favicon.ico">
<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/" />
<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-color: #CCCCCC;
}
-->
</style></head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="98"> </td>
<td width="1010" valign="top" bgcolor="#666666" ><table width="1000" height="102" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="466" align="center" valign="top" bgcolor="#FFFFFF"><a href="../index.php?page=uvod"><img src="../images/logo.png" width="457" height="94" border="0" align="middle"></a> </td>
<td width="317" align="right" valign="top" bgcolor="#FFFFFF"><span class="style1"> <br>
<?php
/*
* Vypiseme zda je uzivatel prihlasen, pokud ano tak jeho jmeno...
* V prihla?ovacím skriptu jsme nastavili $_SESSION['prihlasen']=1, pokud se $_SESSION['prihlasen'] opravdu rovná jednicce, u?ivatel je prihlá?en.
*/
if(isset($_SESSION['prihlasen_eshop']) and $_SESSION['prihlasen_eshop']==1 and $_SESSION['jeadmin_eshop']==1 and $_SESSION['jeblokovan_eshop']==0){
echo " ".$_SESSION['login_eshop'] . " | <a href='logout.php?logout=yes'> Odhlásit se</a>";
}
?>
</span></td>
<td width="217" align="right" valign="middle" bgcolor="#FFFFFF"><div align="center"><img src="images/logo_admin.gif" width="175" height="73" border="0" align="middle"><span class="style93"><a href="index.php?page=uvod"> </a></span></div></td>
</tr>
</table></td>
<td> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="20"> </td>
<td height="10" align="right" valign="bottom" bgcolor="#666666" > </td>
<td align="center" valign="top" bgcolor="#FFFFFF" ><table width="1000" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="150" align="center" bgcolor="#C2272D"><a href="index.php?page=uvod">Nhập trang chủ </a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td width="130" align="center" bgcolor="#C2272D"><a href="index.php?page=o_nasx">Nhập giới thiệu</a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td width="130" align="center" bgcolor="#C2272D"><a href="index.php?page=service">Nhập khách hàng</a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td width="150" align="center" bgcolor="#C2272D"><a href="index.php?page=product">Sản phẩm, dịch vụ</a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td width="130" align="center" bgcolor="#C2272D"><a href="index.php?page=news">Tin tức – sự kiện </a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td width="130" align="center" bgcolor="#C2272D"><a href="index.php?page=download">Download </a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td width="130" align="center" bgcolor="#C2272D"><a href="index.php?page=emp">Tuyển dụng </a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td align="center" bgcolor="#C2272D" width="130"><a href="index.php?page=kontakt_zmenit">Liên lạc</a><a href="index.php?page=partneri"></a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td align="center" bgcolor="#C2272D" width="130"><a href="index.php?page=slide">Nhập ảnh cho slide</a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td align="center" bgcolor="#C2272D" width="130"><a href="index.php?page=social">Nhập liên kết mạng xã hội</a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td align="center" bgcolor="#C2272D" width="130"><a href="index.php?page=customer">Nhập khách hàng</a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td align="center" bgcolor="#C2272D" width="130"><a href="index.php?page=private">Upload vay của khách</a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td align="center" bgcolor="#C2272D" width="130"><a href="index.php?page=shareholder">Upload cho cổ đông</a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td align="center" bgcolor="#C2272D" width="130"><a href="index.php?page=setpassword">mat khau co dong</a></td>
<td width="5" align="center" bgcolor="#C2272D">|</td>
<td width="170" align="center" bgcolor="#C2272D">Počet návštěv:
<?
require_once "db.php";
$polozky=mysql_query("SELECT `pocet` FROM `navstevnici` ");
$soucet_navstevniku=0;
while($polozka=mysql_fetch_array($polozky)){
$soucet_navstevniku+=$polozka['pocet'];
}
echo "$soucet_navstevniku";
?>
</td>
</tr>
</table></td>
<td align="right" valign="bottom" bgcolor="#666666" > </td>
<td> </td>
</tr>
<tr>
<td height="20"> </td>
<td width="5" height="10" align="right" valign="bottom" bgcolor="#666666" > </td>
<td width="1000" align="center" valign="top" bgcolor="#FFFFFF" ><?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
*/
?></td>
<td width="5" align="right" valign="bottom" bgcolor="#666666" > </td>
<td> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30"> </td>
<td width="1000" valign="top" ><img src="images/zakonceni.png" width="1010" height="32" border="0" align="middle"></td>
<td> </td>
</tr>
</table>
<p> </p>
<p> </p>
</body>
</html>
<?
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>';
}
?>
Directory Contents
Dirs: 4 × Files: 101