-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgoogle.php
More file actions
61 lines (51 loc) · 1.28 KB
/
google.php
File metadata and controls
61 lines (51 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
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
57
58
59
60
61
<?php include('db.php'); ?>
<html>
<head>
<title>LEV13</title>
<!-- Добавляем инструменты -->
<?php include('link.php') ?>
</head>
<?php
include('db.php');
if(isset($_POST['submit']))
{
$login = $_POST['login'];
$password = $_POST['password'];
$password = md5($password);
$query = mysql_query("INSERT INTO users VALUES('','$login','$password')") or die(mysql_error());
}
if(isset($_POST['input']))
{
$i_login = $_POST['i_login'];
$i_password = md5($_POST['i_password']);
$query = mysql_query("SELECT * FROM users WHERE login='$i_login'");
$user_input = mysql_fetch_array($query);
if($user_input['password'] == $i_password)
{
echo "Ты тута";
$check = "true";
}
else
{
echo 'Неверный пароль';
}
}
?>
<body class="dir" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="">
<!-- Верхнее меню сайта -->
<?php include('head.php');
//<!-- Логотип и фон -->
include('logo.php');
//<!-- Регистрация и </div> -->
include('login.php');
//<!-- Шапка сайта -->
include('banner.php');
//<!-- Меню сайта -->
include('menu.php');
//<!-- Основная страница -->
include('body.php');
//<!-- footer -->
include('footer.php') ?>
</body>
<!-- copyright -->
<?php include('copy.php') ?>