<?PHP include '../System/core.php'; $config['title'] = 'Очистка кэша'; include '../System/header.php'; if (isset($_POST['go'])) { if (!empty($_POST['index'])) { if (file_exists(H.'Cache/index.cache')) { unlink(H.'Cache/index.cache'); } } if (!empty($_POST['statistic'])) { if (file_exists(H.'Cache/statistic.cache')) { unlink(H.'Cache/statistic.cache'); } } if (!empty($_POST['news'])) { if (file_exists(H.'Cache/news.cache')) { unlink(H.'Cache/news.cache'); } } message('Кэш успешно очищен'); } ?> <form action="" class="text" method="POST"> <label><input type='checkbox' name='index' value='1'> Кэширование главной</label><br /> <label><input type='checkbox' name='statistic' value='1'> Кэширование статистики</label><br /> <label><input type='checkbox' name='news' value='1'> Кэширование новостей</label><br /> <input type="submit" name="go" value="Очистить"> </form> <div class="back"><a href="/Panel/"><img src="/Style/icons/back.png" alt="" /> В панель управления</a></div> <div class="back"><a href="/"><img src="/Style/icons/back.png" alt="" /> На главную</a></div> <? include '../System/footer.php'; ?>