리빌더 부분 추가

This commit is contained in:
2025-07-02 14:13:16 +09:00
parent b491c16b5e
commit 68797db562
1200 changed files with 264947 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<?php
include_once("../_common.php");
$bn_id = isset($bn_id) ? (int)$bn_id : 0;
$sql = "SELECT bn_id, bn_url FROM rb_banner WHERE bn_id = '$bn_id'";
$row = sql_fetch($sql);
if (!isset($row['bn_id']) || !$row['bn_id']) {
alert('등록된 배너가 없습니다.', G5_URL);
}
if (!isset($_COOKIE['ck_bn_id']) || $_COOKIE['ck_bn_id'] != $bn_id) {
$sql = "UPDATE rb_banner SET bn_hit = bn_hit + 1 WHERE bn_id = '$bn_id'";
sql_query($sql);
// 하루 동안
set_cookie("ck_bn_id", $bn_id, 60*60*24);
}
$url = isset($row['bn_url']) ? clean_xss_tags($row['bn_url']) : G5_URL;
goto_url($url);
?>