YaWK
24.1
Yet another WebKit
email.php
Go to the documentation of this file.
1
<?php
2
/**
3
* Copyright (C) Daniel Retzl
4
*/
5
require_once
'../../../classes/email.php'
;
6
if
(isset(
$_GET
[
'email'
]))
7
{
// if no db object is set
8
if
(!isset(
$db
))
9
{
// include database
10
require_once
'../../../classes/db.php'
;
11
$db
= new \YAWK\db();
12
}
13
$email
=
$_GET
[
'email'
];
14
if
(
$db
->query(
"INSERT INTO {users} (username, email) VALUES('"
.
$email
.
"','"
.
$email
.
"'"
))
15
{
16
echo
"true"
;
17
}
18
}
$db
$db
Definition:
dismiss-notifications.php:4
$_GET
print $_GET['id']
Definition:
page-edit.php:357
$email
$email
Definition:
user-new.php:94
yawk.io
system
templates
YaWK-bootstrap4
js
email.php
Generated on Tue Jan 16 2024 21:58:59 for YaWK by
doxygen 1.9.1