first commit 2

This commit is contained in:
hmw1001
2026-06-11 18:47:38 +09:00
parent c768729ce6
commit 6f534e33a6
11095 changed files with 1595758 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
include_once('../../common.php');
if (!defined('_GNUBOARD_')) exit;
if ($_SERVER['REQUEST_METHOD'] === 'POST' && $_POST['act'] === 'top_clear') {
$v_path = G5_DATA_PATH . '/topvisual';
$removed = 0;
// 1. 캐시 파일 삭제
if (is_dir($v_path)) {
foreach (glob($v_path . '/*') as $file) {
if (is_file($file)) {
@unlink($file);
$removed++;
}
}
}
// 2. rb_topvisual 테이블 전체 삭제
sql_query("DELETE FROM rb_topvisual");
echo 'ok';
exit;
}
echo '잘못된 요청입니다.';