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
+24
View File
@@ -0,0 +1,24 @@
<?php
include_once('../../common.php');
if (!defined('_GNUBOARD_')) exit;
if ($_SERVER['REQUEST_METHOD'] === 'POST' && $_POST['act'] === 'clear') {
$cache_path = G5_DATA_PATH . '/cache';
$removed = 0;
if (is_dir($cache_path)) {
foreach (glob($cache_path . '/*') as $file) {
if (is_file($file)) {
@unlink($file);
$removed++;
}
}
echo 'ok';
} else {
echo '캐시 폴더가 존재하지 않습니다.';
}
exit;
}
echo '잘못된 요청입니다.';