403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/clients/client2/arni-solutions.de/web/disg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/clients/client2/arni-solutions.de/web/disg/test.php
<?php
declare(strict_types=1);
session_start();

require __DIR__ . '/config/questions.php';

$name = trim((string)($_SESSION['participant_name'] ?? ''));
if ($name === '') {
    header('Location: index.php');
    exit;
}

$oldAnswers = $_SESSION['old_answers'] ?? [];
$error = $_SESSION['test_error'] ?? '';
unset($_SESSION['old_answers'], $_SESSION['test_error']);
?>
<!doctype html>
<html lang="de">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Freunde Test ausfüllen</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body { background: #f8f9fa; }
        .question-card { border: 0; border-radius: 1rem; box-shadow: 0 .75rem 2rem rgba(0,0,0,.06); }
        .answer-label { display: block; border: 1px solid #dee2e6; border-radius: .75rem; padding: 1rem; cursor: pointer; transition: .15s ease-in-out; }
        .answer-label:hover { border-color: #0d6efd; background: #f8fbff; }
        .form-check-input:checked + .answer-label { border-color: #0d6efd; background: #e7f1ff; }
    </style>
</head>
<body>
    <div class="container py-4 py-md-5">
        <div class="row justify-content-center">
            <div class="col-lg-9">
                <div class="mb-4">
                    <h1 class="h2 mb-2">Hi <?= htmlspecialchars($name, ENT_QUOTES, 'UTF-8') ?> 👋</h1>
                    <p class="text-muted mb-0">Beantworte die Fragen und finde heraus, welcher Typ du in der Clique bist.</p>
                </div>

                <?php if ($error !== ''): ?>
                    <div class="alert alert-danger"><?= htmlspecialchars($error, ENT_QUOTES, 'UTF-8') ?></div>
                <?php endif; ?>

                <form action="result.php" method="post">
                    <?php foreach ($questions as $qId => $questionData): ?>
                        <div class="card question-card mb-4">
                            <div class="card-body p-4">
                                <h2 class="h5 mb-4"><?= $qId ?>. <?= htmlspecialchars($questionData['question'], ENT_QUOTES, 'UTF-8') ?></h2>

                                <?php foreach ($questionData['answers'] as $answerKey => $answerData): ?>
                                    <?php $inputId = 'q' . $qId . '_' . $answerKey; ?>
                                    <div class="form-check mb-3 ps-0">
                                        <input
                                            class="form-check-input d-none"
                                            type="radio"
                                            name="answers[<?= $qId ?>]"
                                            id="<?= $inputId ?>"
                                            value="<?= htmlspecialchars($answerKey, ENT_QUOTES, 'UTF-8') ?>"
                                            required
                                            <?= (($oldAnswers[$qId] ?? '') === $answerKey) ? 'checked' : '' ?>
                                        >
                                        <label class="answer-label" for="<?= $inputId ?>">
                                            <strong><?= htmlspecialchars($answerKey, ENT_QUOTES, 'UTF-8') ?>.</strong>
                                            <?= htmlspecialchars($answerData['text'], ENT_QUOTES, 'UTF-8') ?>
                                        </label>
                                    </div>
                                <?php endforeach; ?>
                            </div>
                        </div>
                    <?php endforeach; ?>

                    <div class="d-flex gap-2">
                        <a href="index.php" class="btn btn-outline-secondary btn-lg">Zurück</a>
                        <button type="submit" class="btn btn-primary btn-lg">Ergebnis anzeigen</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit