Initial commit: Add Docker setup, database schema, and basic PHP application structure
This commit is contained in:
8
www/.htaccess
Normal file
8
www/.htaccess
Normal file
@@ -0,0 +1,8 @@
|
||||
RewriteEngine On
|
||||
|
||||
# Nur wenn keine echte Datei / kein echtes Verzeichnis
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
||||
# UUID weiterreichen
|
||||
RewriteRule ^([a-fA-F0-9-]+)$ card.php?uuid=$1 [L,QSA]
|
||||
14
www/card.php
Normal file
14
www/card.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
$uuid = $_GET['uuid'] ?? 'keine UUID';
|
||||
if(isset($_COOKIE['PHPSESSID'])){
|
||||
session_start();
|
||||
if($_SESSION['is_admin']??false){
|
||||
header('Location: /admin.php?uuid='. $uuid);
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
echo "UUID: " . htmlspecialchars($uuid);
|
||||
|
||||
//TODO
|
||||
|
||||
Reference in New Issue
Block a user