mirror of
https://github.com/DanWin/hosting.git
synced 2025-08-30 16:32:52 +02:00
Added admin panel + optional manual approval for new sites
This commit is contained in:
parent
eca0c675cd
commit
6b0759be73
14 changed files with 244 additions and 129 deletions
|
@ -12,7 +12,7 @@ if($_SERVER['REQUEST_METHOD']==='POST'){
|
|||
if(!isset($_POST['pass']) || !password_verify($_POST['pass'], $user['password'])){
|
||||
$msg.='<p style="color:red;">Wrong password.</p>';
|
||||
}else{
|
||||
$stmt=$db->prepare('INSERT INTO del_account (onion) VALUES (?);');
|
||||
$stmt=$db->prepare('UPDATE users SET todelete=1 WHERE onion=?;');
|
||||
$stmt->execute([$user['onion']]);
|
||||
session_destroy();
|
||||
header('Location: login.php');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue