403Webshell
Server IP : 69.72.244.102  /  Your IP : 216.73.216.164
Web Server : LiteSpeed
System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : konzalta ( 1271)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/konzalta/soko.chat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/konzalta/soko.chat//deal.php
<?php
require_once __DIR__ . '/app/db.php';
require_once __DIR__ . '/app/helpers.php';

$slug=$_GET['slug']??'';
$stmt=$pdo->prepare("SELECT d.*, c.name county_name, c.slug county_slug, cat.name category_name, cat.slug category_slug FROM deals d LEFT JOIN counties c ON c.id=d.county_id LEFT JOIN categories cat ON cat.id=d.category_id WHERE d.slug=? AND d.status='published' LIMIT 1");
$stmt->execute([$slug]); $deal=$stmt->fetch();
if(!$deal){http_response_code(404);die('Deal not found.');}
$pdo->prepare("UPDATE deals SET views_count=views_count+1 WHERE id=?")->execute([$deal['id']]); $deal['views_count']++;
?>
<!doctype html><html><head><meta charset="utf-8"><title><?= e($deal['title']) ?> - <?= e(APP_NAME) ?></title><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="<?= e(APP_URL) ?>/assets/css/style.css"></head>
<body><div class="top"><div class="wrap"><a class="brand logo-brand" href="<?= e(APP_URL) ?>/"><img class="logo-img" src="<?= e(APP_URL) ?>/assets/img/soko-logo.png" alt="Soko.chat"></a><span class="tag"> classified deal</span><div class="nav"><?php if($deal['county_slug']): ?><a href="<?= e(county_url($deal['county_slug'])) ?>">back to <?= e(strtolower($deal['county_name'])) ?></a><?php endif; ?></div></div></div>
<div class="wrap"><div class="formbox" style="max-width:900px"><h2><?= e($deal['title']) ?></h2><p class="muted"><?= e($deal['county_name']) ?> · <?= e($deal['category_name']) ?> · <?= e($deal['location']) ?></p><?php if($deal['price']): ?><p class="price"><?= e($deal['price']) ?></p><?php endif; ?>
<div class="kpis"><div class="kpi"><strong><?= e((int)$deal['views_count']) ?></strong>views</div><div class="kpi"><strong><?= e((int)$deal['unlock_attempts_count']) ?></strong>unlock attempts</div><div class="kpi"><strong><?= e((int)$deal['unlocks_count']) ?></strong>unlocks</div><div class="kpi"><strong><?= e($deal['verification_status']) ?></strong>status</div></div>
<h3>redacted listing</h3><p><?= nl2br(e($deal['redacted_summary'])) ?></p><hr><h3>hidden details</h3><p>Full contact and original message are hidden until unlock.</p><p><strong>unlock fee:</strong> Ksh <?= e(number_format((float)$deal['unlock_fee'],2)) ?></p>
<a class="button green" href="<?= e(APP_URL) ?>/unlock.php?deal=<?= e($deal['id']) ?>">unlock full details</a> <a class="button gray" href="<?= e(APP_URL) ?>/report.php?deal=<?= e($deal['id']) ?>">report</a></div></div></body></html>

Youez - 2016 - github.com/yon3zu
LinuXploit