| Server IP : 172.67.201.108 / Your IP : 216.73.216.191 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/banners/domains/bwayworld/ |
Upload File : |
<?php
require_once '/home/banners/public_html/bway/db/mysql_bootstrap.php';
$shortlink = trim($_GET['shortlink'] ?? '');
if ($shortlink === '') {
header('Location: https://bway.world');
exit;
}
$dbHost = 'amazonaurora.cluster-cemzxojvmybt.us-east-1.rds.amazonaws.com';
$pdo = new PDO(
"mysql:host=$dbHost;dbname=bway_bww;charset=utf8mb4",
'admin', 'xxatN6Lb8Kbwb9MiU1At',
mysqlPdoOptions([PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC])
);
$stmt = $pdo->prepare("SELECT clickto, clicks FROM bway_bww.columntableredirect WHERE shortcode = ? ORDER BY id DESC LIMIT 1");
$stmt->execute([$shortlink]);
$row = $stmt->fetch();
if ($row) {
$update = $pdo->prepare("UPDATE bway_bww.columntableredirect SET clicks = clicks + 1 WHERE shortcode = ?");
$update->execute([$shortlink]);
header('Location: ' . $row['clickto']);
exit;
} else {
header('Location: https://www.broadwayworld.com/instahub.cfm');
exit;
}