Куча мелких фиксов, уборка мусора.
This commit is contained in:
+5
-6
@@ -1,14 +1,13 @@
|
||||
<?php
|
||||
session_start();
|
||||
$hreject = filter_input(INPUT_COOKIE, GAMEDOMAIN);
|
||||
$hreject = $_COOKIE[GAMEDOMAIN] ?? null;
|
||||
if ($hreject) {
|
||||
$error = "Не больше одной регистрации в час!";
|
||||
} else {
|
||||
|
||||
include("config.php");
|
||||
$login = filter_input(INPUT_POST, 'login');
|
||||
$password = password_hash(filter_input(INPUT_POST, 'psw'),PASSWORD_DEFAULT);
|
||||
$birthday = filter_input(INPUT_POST, 'birthday');
|
||||
require_once "config.php";
|
||||
$login = $_POST['login'] ?? '';
|
||||
$password = password_hash($_POST['psw'], PASSWORD_DEFAULT) ?? null;
|
||||
$birthday = $_POST['birthday'] ?? null;
|
||||
$email = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL);
|
||||
$law = filter_input(INPUT_POST, 'law', FILTER_VALIDATE_BOOLEAN);
|
||||
$law2 = filter_input(INPUT_POST, 'law2', FILTER_VALIDATE_BOOLEAN);
|
||||
|
||||
Reference in New Issue
Block a user