Uname:Linux server17213-10344.hostycare.online 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64

403WebShell
403Webshell
Server IP : 103.243.232.44  /  Your IP : 216.73.216.250
Web Server : LiteSpeed
System : Linux server17213-10344.hostycare.online 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User : iamakash ( 1400)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/iamakash/.trash/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/iamakash/.trash/index.php
<?php
require __DIR__ . '/vendor/autoload.php';
require __DIR__ . '/includes/db.php';

$pdo = getPDO();
$commodities = (int)$pdo->query('SELECT COUNT(*) FROM commodities')->fetchColumn();
$values      = (int)$pdo->query('SELECT COUNT(*) FROM monthly_indices')->fetchColumn();
$periods     = (int)$pdo->query('SELECT COUNT(DISTINCT period_year*100+period_month) FROM monthly_indices')->fetchColumn();

$latest = $pdo->query(
    'SELECT period_year, period_month
       FROM monthly_indices
      WHERE index_value IS NOT NULL
      ORDER BY period_year DESC, period_month DESC LIMIT 1'
)->fetch();

$byLevel = $pdo->query(
    'SELECT level, COUNT(*) AS n FROM commodities GROUP BY level ORDER BY level'
)->fetchAll();

$recent = $pdo->query(
    'SELECT id, filename, status, commodities_seen, values_written, latest_period, uploaded_at
       FROM uploads ORDER BY id DESC LIMIT 5'
)->fetchAll();

$pageTitle = 'Dashboard — Shaurya Index Factor';
require __DIR__ . '/includes/header.php';
?>
<div class="row g-3 mb-4">
    <div class="col-md-3">
        <div class="card"><div class="card-body">
            <div class="text-muted small">Commodities</div>
            <div class="display-6"><?= number_format($commodities) ?></div>
        </div></div>
    </div>
    <div class="col-md-3">
        <div class="card"><div class="card-body">
            <div class="text-muted small">Index values stored</div>
            <div class="display-6"><?= number_format($values) ?></div>
        </div></div>
    </div>
    <div class="col-md-3">
        <div class="card"><div class="card-body">
            <div class="text-muted small">Distinct months</div>
            <div class="display-6"><?= number_format($periods) ?></div>
        </div></div>
    </div>
    <div class="col-md-3">
        <div class="card"><div class="card-body">
            <div class="text-muted small">Latest period (actual)</div>
            <div class="display-6">
                <?= $latest ? sprintf('%02d-%d', (int)$latest['period_month'], (int)$latest['period_year']) : '&mdash;' ?>
            </div>
        </div></div>
    </div>
</div>

<div class="row g-3">
    <div class="col-md-5">
        <div class="card"><div class="card-body">
            <h5>Commodities by level</h5>
            <?php if (!$byLevel): ?>
                <p class="text-muted">No commodities imported yet. <a href="<?= base_url('upload.php') ?>">Upload a file</a>.</p>
            <?php else: ?>
            <table class="table table-sm mb-0">
                <thead><tr><th>Level</th><th class="text-end">Count</th></tr></thead>
                <tbody>
                <?php foreach ($byLevel as $row): ?>
                    <tr class="level-<?= (int)$row['level'] ?>">
                        <td>Level <?= (int)$row['level'] ?><?= $row['level']>=5?' (leaf)':'' ?></td>
                        <td class="text-end"><?= number_format((int)$row['n']) ?></td>
                    </tr>
                <?php endforeach; ?>
                </tbody>
            </table>
            <?php endif; ?>
        </div></div>
    </div>

    <div class="col-md-7">
        <div class="card"><div class="card-body">
            <h5>Recent uploads</h5>
            <?php if (!$recent): ?>
                <p class="text-muted">No uploads yet.</p>
            <?php else: ?>
            <table class="table table-sm">
                <thead><tr><th>#</th><th>File</th><th>Status</th><th class="text-end">Values</th><th>Latest</th><th>When</th></tr></thead>
                <tbody>
                <?php foreach ($recent as $u): ?>
                    <tr>
                        <td><?= (int)$u['id'] ?></td>
                        <td class="small"><?= h($u['filename']) ?></td>
                        <td><span class="badge bg-secondary"><?= h($u['status']) ?></span></td>
                        <td class="text-end small"><?= number_format((int)$u['values_written']) ?></td>
                        <td class="small"><code><?= h($u['latest_period']) ?></code></td>
                        <td class="small text-muted"><?= h($u['uploaded_at']) ?></td>
                    </tr>
                <?php endforeach; ?>
                </tbody>
            </table>
            <?php endif; ?>
        </div></div>
    </div>
</div>

<?php require __DIR__ . '/includes/footer.php'; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit