Файл: www/report.php
Строк: 32
<?
session_start();
include "admin/config/config.php";
include "admin/config/secur.php";
$URL = uc($_GET['x'],200);
if (isset($_POST['repurl']) and $_SESSION['RTIME']<time())
{
$repurl = uc($_POST['repurl'],200);
$report = uc($_POST['reptext'],300);
$date = date('d.m.Y H:i:s');
mysql_query("INSERT INTO `obmen`.`report` (
`id` ,
`data` ,
`url` ,
`report`
)
VALUES (
NULL , '$date', '$repurl', '$report'
);");
$_SESSION['RTIME']=time()+10;
header("Location: index.php?e=101010101");
exit;
}
?>
<html>
<head>
<title>Жалоба на сайт</title>
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
width:auto;
height:auto;
z-index:1;
left: 30%;
top: 30%;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
right: auto;
bottom: auto;
margin: 10px;
padding: 10px;
background-color: #FFF;
border-color: #0080C0;
}
-->
</style>
</head>
<body>
<div id="apDiv1">
<form name="form1" method="post" action="" align="center" valign="center">
Домен: <b><?=$URL?></b>
<input type="hidden" size="42" name="repurl" id="textfield" value="<?=$URL?>">
<br>
Коментарий: <br>
<textarea name="reptext" id="textarea" cols="45" rows="5"></textarea>
<br>
<input type="submit" name="button" id="button" value="Отправить">
</form>
Отправлять не чаще 10 сек.
</div>
</body>
</html>