- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
<!DOCTYPE html>
<html>
<head>
<?php
$filename = 'mes.txt';
$count = "count.txt";
$count_file = fopen($count, "r");
$handle = fopen($filename, "rb");
date_default_timezone_set('Europe/Moscow');
$contents = file_get_contents($filename);
$contents2=nl2br($contents);
$password=htmlspecialchars($_POST["pass"]);
if($password=='dfhsdhf' || $password=='eeeeeer')
{
}
else
{
echo '403';
exit;
}
if( isset( $_POST['obn'] ) )
{
fclose($count_file);
$count_file = fopen($count, "w");
fwrite($count_file, '0');
echo "Обнулено";
$date = date("Y-m-d H:i:s");
$date_file = fopen("date.txt", "w");
fwrite($date_file, "$date");
}
?>
<title>Admin panel</title>
</head>
<body>
<h1>Начиная с <div id=date><?php echo file_get_contents("date.txt") ?></div> сайте было <div id=count><?php echo file_get_contents("count.txt") ?></div> людей</h1>
<p><?php if ($password == 'dfhsdhf')
echo "$contents2";
?>
</p>
<br>
<?php if ($password != 'dfhsdhf')
exit;
?>
<form method="POST">
<p>Введите код подтверждения</p>
<input type="password" name="pass">
<input type="submit" name="obn" value="Обнулить" />
</form>
</body>
</html>
Комментарии (0) RSS
Добавить комментарий