moved things

This commit is contained in:
2024-10-23 21:45:15 +02:00
parent 3fc8d2fd74
commit aeca2e31df
21 changed files with 186 additions and 131 deletions

View File

@@ -0,0 +1,20 @@
<?php
session_start();
require_once('../src/User.php');
if (isset($_GET['id']) && !empty($_GET['id'])) {
$id = strip_tags($_GET['id']);
$user = GetUser($id);
if (!$user) {
header('Location: index.php');
}
} else {
header('Location: index.php');
}
$vue = "users/details.twig";
$donnees = array("user" => $user);
require_once('../modele/twig.php');