YaWK
24.1
Yet another WebKit
check-email.php
Go to the documentation of this file.
1
<?php
2
/* check if email is already registered */
3
if
(!empty($_POST[
'email'
]))
4
{
5
include
'../../../classes/db.php'
;
6
$db
= new \YAWK\db();
7
$request =
$db
->quote($_POST[
'email'
]);
8
if
(
$res
=
$db
->query(
"SELECT email FROM {users} WHERE email = '"
.$request.
"'"
))
9
{
10
$result
= mysqli_fetch_row(
$res
);
11
if
(
$result
[0])
12
{
13
echo
"false"
;
die
;
// email not in use yet
14
}
15
else
16
{
17
echo
"true"
;
die
;
// email is already in db
18
}
19
}
20
else
21
{
// q failed
22
echo
"true"
;
die
;
23
}
24
}
25
else
26
{
27
echo
"true"
;
// get var is invalid
28
}
die
die
Definition:
block-user.php:27
$db
$db
Definition:
dismiss-notifications.php:4
$result
$result
Definition:
email-send.php:137
$res
$res
Definition:
settings-assets.php:149
yawk.io
system
plugins
signup
js
check-email.php
Generated on Tue Jan 16 2024 21:59:02 for YaWK by
doxygen 1.9.1