|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 32.91 GB of 70.42 GB (46.74%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
http/
map/
site/
- drwxrwsrwx
|
Viewing file: index.php (4.71 KB) -rwxr-xr-xSelect action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
<?php
session_start();
include ("config.php");
require ("register.php");
if (isset($_COOKIE['auto']) && $_COOKIE['auto'] == 'yes' && isset($_COOKIE['pass'])) {
$cn = $_COOKIE['name'];
$cp = $_COOKIE['pass'];
$cp .= $keyphrase;
$cp = md5($cp);
$query = "SELECT * FROM `users` WHERE (`login` = '".$cn."' OR `email` = '".$cn."') AND `password` = '".$cp."'";
$result = mysql_query($query);
if(!$result) exit("error!");
if(mysql_num_rows($result))
{
$_SESSION['name']=$_COOKIE['name'];;
}
}
?>
<!--
Copyright 2008 Google Inc.
Licensed under the Apache License, Version 2.0:
http://www.apache.org/licenses/LICENSE-2.0
-->
<html xmlns="http://www.w3.org/2000/svg" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title><?php if(!isset($_SESSION['name'])) echo "Карта - Главная страница"; else echo "Карта - Слои пользователя ".$_SESSION['name']; ?></title>
<script src="http://maps.google.com/maps?file=api&v=2&key=AIzaSyALislOyV5ueW-QvErRsB4aaUf6edvxjpo"
type="text/javascript"></script>
<!--[if lte IE 9]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(css/IE9.css); /* ]]> */</style><![endif]-->
<link rel="Stylesheet" type="text/css" media="screen" href="css/main.css" />
<script type="text/javascript" src="scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="scripts/addinout.js"></script>
<script type="text/javascript" src="scripts/makeMap.js"></script>
<script type="text/javascript" src="scripts/jquery.corner.js"></script>
<script type="text/javascript" src="scripts/tooglepopup.js"></script>
<script type="text/javascript" src="scripts/tips.js"></script>
<script type="text/javascript">
//<![CDATA[
jQuery("#menu").corner();
//]]>
</script>
</head>
<?php
if (isset($_GET['e']) && isset($_GET['h']) && isset($_GET['n']))
{
$hashed = md5('magic_string' . $_GET['e']);
$name = mysql_real_escape_string($_GET['n']);
if ($hashed == $_GET['h'])
{
$query = "UPDATE `users` SET conf=1 WHERE `login` = '".$name."'";
$result = mysql_query($query);
if(!$result)
{
echo "<script type='text/javascript'>showMailConfirm(0);</sciprt>";
}
echo "<script type='text/javascript'>showMailConfirm(1);</sciprt>";
}
else
{
echo "<script type='text/javascript'>showMailConfirm(0);</sciprt>";
}
}
?>
<?php
if(!isset($_SESSION['name']) || isset($_POST['logout']))
{
echo
'
<body onload="initialize();showLogin();" onunload="GUnload">
';
?>
<?php
}
else
{
echo "<body onload=\"initialize();\" onunload=\"GUnload\">";
}
?>
<div id="menu" data-corner="right 7px">
<div id="login_b" onclick="showLogin();"></div>
<table id="moder_panel">
<tr>
<td>
<div id="hand_b" onclick="stopEditing()"></div>
</td>
</tr>
<tr>
<td>
<div id="placemark_b" onclick="placeMarker()" onmouseout="tooltip.hide();" onmouseover="tooltip.show('Добавить маркер');"></div>
</td>
</tr>
<tr>
<td>
<div id="line_b" onclick="startLine()" onmouseout="tooltip.hide();" onmouseover="tooltip.show('Добавить линию');"></div>
</td>
</tr>
<tr>
<td>
<div id="shape_b" onclick="startShape()" onmouseout="tooltip.hide();" onmouseover="tooltip.show('Добавить область');"></div>
</td>
</tr>
<tr>
<td>
<div id="logout_b" onclick="logout()" onmouseout="tooltip.hide();" onmouseover="tooltip.show('Выйти');"></div>
</td>
</tr>
</table>
<table id="addZone_panel">
<tr>
<td id="save_b" onmouseout="tooltip.hide();" onmouseover="tooltip.show('Применить изменения')"></td>
</tr>
<tr>
<td id="cancel_b" onmouseout="tooltip.hide();" onmouseover="tooltip.show('Отменить редактирование')"></td>
</tr>
<tr>
<td id="delete_b" onmouseout="tooltip.hide();" onmouseover="tooltip.show('Удалить объект')"></td>
</tr>
</table>
<?php
if(!isset($_SESSION['name']))
{
echo
"
<script type=\"text/javascript\">
//<![CDATA[
jQuery(\"#moder_panel\").css(\"visibility\", \"hidden\");
jQuery(\"#addZone_panel\").css(\"visibility\", \"hidden\");
jQuery(\"#menu\").css(\"height\", \"40\" );
//]]>
</script>
";
}
else
{
echo
"
<script type=\"text/javascript\">
//<![CDATA[
showModeratePanel();
//]]>
</script>
";
}
?>
</div>
<div id="map"></div>
<?php echo "</body>" ?>
</html>
|