Projekt

Obecné

Profil

<?

session_start();
if ($_SESSION['online_user_serverIP']!="") include "server_exists.php";
if ($_GET['odhlaseno']==1) { //LOGOUT, odhlaseni ze systemu
include "lock.php";
unset($_SESSION['online_user']);
session_destroy();
}

if ($_GET['lng']=="") $_GET['lng']="czech";
include "language/".$_GET['lng'].".php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
<title>
<?
echo $lng_administrace." - ".$_GET['id'];
?>
</title>
<script language="javascript" type="text/javascript" src="java.js"></script>
<script language="javascript" type="text/javascript" src="overlib.js"></script>

<link href="styly.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?
if ($_SESSION['online_user']!="") {
$get_czech="?lng=czech";
$get_english="?lng=english";
foreach ($_GET as $ind => $val) {
if ($ind=="lng") continue;
$get_czech .= "&amp;".$ind."=".$val;
$get_english .= "&amp;".$ind."=".$val;
}
echo "<table align=\"center\" cellpadding=\"0\" cellspacing=\"2\" border=\"0\">
<tr>
<td width=\"100px\"><img src=\"img/nazev.jpg\" width=\"71\" height=\"31\" alt=\"\" /></td>
<td>
<a href=\"".$get_czech."\"><img class=\"imgVlajecka\" src=\"img/vlajka_cr.jpg\" alt=\"?esk? verze\" /></a>
<a href=\"".$get_english."\"><img class=\"imgVlajecka\" src=\"img/vlajka_gb.jpg\" alt=\"English version\" /></a>
</td>
</tr>
</table>";
?>
<div class="divHlavni">
<div class="divUserLogout">
<table cellpadding="2" cellspacing="0">
<?
if ($_GET['zobraz']=="vyber") {
include "lock.php";
$_SESSION['online_user_serverIP']="";
}
echo "<tr><td class=\"tdPozadi\">".$lng_user.":</td><td><span class=\"spanUser\">".$_SESSION['online_user']."</span> [ <a class=\"aLogout\" href=\"?id=".$_GET['id']."&amp;lng=".$_GET['lng']."&amp;odhlaseno=1&amp;".SID."\">".$lng_logout."</a> ]</td></tr>";
echo "<tr><td class=\"tdPozadi\">".$lngServers_server.":</td>";
if ($_SESSION['online_user_serverIP']!="") {
echo "<td> <b>".$_SESSION['online_user_serverIP']."</b>
[ <a class=\"aLogout\" href=\"?id=".$_GET['id']."&amp;lng=".$_GET['lng']."&amp;zobraz=vyber&amp;".SID."\">".$lng_select."</a> ]
</td>
</tr>";
}
else echo " <td>[ <a class=\"aLogout\" href=\"?id=".$_GET['id']."&amp;lng=".$_GET['lng']."&amp;zobraz=vyber&amp;".SID."\">".$lngServers_vyberServer."</a> ]
</td>";
echo "</tr>";
echo "<tr><td class=\"tdPozadi\" colspan=\"2\"> <a class=\"aZmenaHesla\" href=\"?lng=".$_GET['lng']."&amp;zobraz=zmena_hesla&amp;".SID."\">".$lng_zmenaHesla."</a> </td></tr>";
?>
</table>
</div>
<table class="hlavniTable" align="center" width="780px" cellpadding="0" cellspacing="0">
<tr>
<td height="60px" width="347" class="pozadi">
<?
echo "<a href=\"index.php?lng=".$_GET['lng']."&amp;".SID."\"><img align=\"middle\" src=\"img/a1.jpg\" border=\"0\" alt=\"\" /><img align=\"middle\" src=\"img/".$_GET['lng']."logo.jpg\" border=\"0\" alt=\"\" /></a>";
?> </td>
<td class="pozadi" align="right" valign="top"></td>
<td align="right" class="pozadi" width="55px" height="60">
<img align="middle" src="img/penguin.jpg" border="0" alt="" />
</td>
</tr>
<tr>
<td height="5px" class="bgMenu" colspan="3"></td>
</tr>
<tr>
<td height="15px" class="bgMenuPaddL10" colspan="3">
<?
include "menu.php";
?>
</td>
</tr>
</table>

<div class="divZobrazovaci">
<?
switch ($_GET['zobraz']) {
case "vyber":
$soubor="vyber_serveru_form.php";
break;
case "zmena_hesla":
$soubor="zmena_hesla_form.php";
break;
default:
if ($_GET['id']=="") $soubor="uvod.php";
else $soubor=$_GET['id']."/".$_GET['id'].".php";
}
if (file_exists ($soubor)) include $soubor;
else echo "Soubor nebyl na serveru nalezen";
?>
</div>
</div>

<?
}
else include "login_form.php";
?>

</body>
</html>
(2-2/20)