mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Revert "Added clear logs option in admin panel (#775)"
This reverts commit 88cf205962
.
This commit is contained in:
parent
88cf205962
commit
9d5fd03a45
4 changed files with 24 additions and 51 deletions
|
@ -16,12 +16,6 @@ global $userdata, $lang, $bb_cfg;
|
|||
$mode = (string)$this->request['mode'];
|
||||
|
||||
switch ($mode) {
|
||||
case 'clear_logs':
|
||||
remove_files_by_extension(LOG_DIR, ['log']);
|
||||
|
||||
$this->response['logs_html'] = '<span class="seed bold">' . $lang['ALL_LOGS_FILE_CLEARED'] . '</span>';
|
||||
break;
|
||||
|
||||
case 'clear_cache':
|
||||
foreach ($bb_cfg['cache']['engines'] as $cache_name => $cache_val) {
|
||||
if (!in_array('db_sqlite', $cache_val)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue