My message
This commit is contained in:
parent
d909655c6e
commit
a528eb54ac
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
config/
|
||||
content/
|
||||
|
@ -1,5 +1,5 @@
|
||||
[root]
|
||||
pageURL = "https://e59.fr/"
|
||||
pageURL = "https://e59.indev.e59.fr/"
|
||||
filePath = "/var/www/e59/"
|
||||
|
||||
[social]
|
||||
@ -12,7 +12,7 @@ youtube = "https://www.youtube.com/@e59-club"
|
||||
[sql]
|
||||
databaseName = "E59"
|
||||
databaseUser = "root"
|
||||
databasePass = "Broadca@Storm_SQL"
|
||||
databasePass = "Potiron345!"
|
||||
databaseHost = "127.0.0.1"
|
||||
|
||||
[recaptcha]
|
||||
|
@ -1,5 +0,0 @@
|
||||
<FilesMatch "\.(jpg|jpeg|png|gif|ico|css)$">
|
||||
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
|
||||
Header set Pragma "no-cache"
|
||||
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
|
||||
</FilesMatch>
|
@ -1,15 +0,0 @@
|
||||
<Files "composer.json">
|
||||
Order Allow,Deny
|
||||
Deny from all
|
||||
</Files>
|
||||
|
||||
<Files "composer.lock">
|
||||
Order Allow,Deny
|
||||
Deny from all
|
||||
</Files>
|
||||
|
||||
# Assurez-vous que le module mod_rewrite est activé
|
||||
RewriteEngine On
|
||||
|
||||
# Bloquer l'accès aux répertoires old et vendor
|
||||
RewriteRule ^vendor/ - [F,L]
|
@ -22,22 +22,16 @@ $pdo = sqlConnect($sqlDatabaseHost, $sqlDatabaseName, $sqlDatabaseUser, $sqlData
|
||||
<head>
|
||||
<?php fillHead($rootPageURL, "Admin - " . $pageName, $darkTheme, $lightTheme);?>
|
||||
<style>
|
||||
.users-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
table {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
.user-row {
|
||||
margin: 0.5em;
|
||||
border-bottom: 1px solid var(--text);
|
||||
padding: 0 1em 0.5em 1em;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
tr {
|
||||
height: 30px;
|
||||
}
|
||||
.user-row button {
|
||||
display: inline;
|
||||
}
|
||||
.users {
|
||||
min-height: 25em;
|
||||
th, td {
|
||||
border: 1px solid gray;
|
||||
padding: 5px;
|
||||
}
|
||||
.admin-links {
|
||||
margin-bottom: 4em;
|
||||
@ -91,12 +85,13 @@ $pdo = sqlConnect($sqlDatabaseHost, $sqlDatabaseName, $sqlDatabaseUser, $sqlData
|
||||
$result = $request->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
if ($result) {
|
||||
echo ('<div class="users-list">');
|
||||
echo ('<table>');
|
||||
echo ('<tr><th>Member ID</th><th>Prénom Nom</th><th>Email</th><th>Date de demande</th></tr>');
|
||||
foreach($result as $row) {
|
||||
echo ('<div class="user-row">');
|
||||
echo ('<div>' . $row['memberid'] . '</div><div>' . $row['firstname'] . ' ' . $row['lastname'] . '</div><div>' . $row['join_date'] . '</div></div>');
|
||||
echo ('<tr>');
|
||||
echo ('<td>' . $row['memberid'] . '</td><td>' . $row['firstname'] . ' ' . $row['lastname'] . '</td><td>' . $row['email'] . '</td><td>' . $row['join_date'] . '</td></tr>');
|
||||
}
|
||||
echo ('</div>');
|
||||
echo ('</table>');
|
||||
} else {
|
||||
echo ('Aucun utilisateur trouvé.');
|
||||
}
|
||||
|
BIN
html/assets/pp/26.png
Normal file
BIN
html/assets/pp/26.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
Loading…
x
Reference in New Issue
Block a user