sourceforge/nodemin/trunk/index.php @ 389
4 | batix | <?
|
|
6 | batix | ||
4 | batix | session_start();
|
|
if ($_SESSION['online_user_serverIP']!="") include "server_exists.php";
|
|||
8 | batix | if ($_GET['odhlaseno']==1) { //LOGOUT, odhlaseni ze systemu
|
|
4 | batix | 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 .= "&".$ind."=".$val;
|
|||
$get_english .= "&".$ind."=".$val;
|
|||
}
|
|||
echo "<table align=\"center\" cellpadding=\"0\" cellspacing=\"2\" border=\"0\">
|
|||
<tr>
|
|||
8 | batix | <td width=\"100px\"><img src=\"img/nazev.jpg\" width=\"71\" height=\"31\" alt=\"\" /></td>
|
|
4 | batix | <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']."&lng=".$_GET['lng']."&odhlaseno=1&".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']."&lng=".$_GET['lng']."&zobraz=vyber&".SID."\">".$lng_select."</a> ]
|
|||
</td>
|
|||
</tr>";
|
|||
}
|
|||
else echo " <td>[ <a class=\"aLogout\" href=\"?id=".$_GET['id']."&lng=".$_GET['lng']."&zobraz=vyber&".SID."\">".$lngServers_vyberServer."</a> ]
|
|||
</td>";
|
|||
echo "</tr>";
|
|||
echo "<tr><td class=\"tdPozadi\" colspan=\"2\"> <a class=\"aZmenaHesla\" href=\"?lng=".$_GET['lng']."&zobraz=zmena_hesla&".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']."&".SID."\"><img align=\"middle\" src=\"img/a1.jpg\" border=\"0\" alt=\"\" /><img align=\"middle\" src=\"img/".$_GET['lng']."logo.jpg\" border=\"0\" alt=\"\" /></a>";
|
|||
8 | batix | ?> </td>
|
|
4 | batix | <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";
|
|||
8 | batix | ?>
|
|
4 | batix | </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>
|
|||
7 | tomas_duli | </html>
|