mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#1418)
* Minor improvements * Update viewforum.tpl * Update manage_user.php * Update manage_user.php * Update manage_admin.php * Update manage_user.php * Update CHANGELOG.md
This commit is contained in:
parent
96d076f9d1
commit
5a8f431215
4 changed files with 14 additions and 36 deletions
|
@ -25,7 +25,6 @@ switch ($mode) {
|
|||
|
||||
$this->response['cache_html'] = '<span class="seed bold">' . $lang['ALL_CACHE_CLEARED'] . '</span>';
|
||||
break;
|
||||
|
||||
case 'clear_datastore':
|
||||
global $datastore;
|
||||
|
||||
|
@ -33,7 +32,6 @@ switch ($mode) {
|
|||
|
||||
$this->response['datastore_html'] = '<span class="seed bold">' . $lang['DATASTORE_CLEARED'] . '</span>';
|
||||
break;
|
||||
|
||||
case 'clear_template_cache':
|
||||
global $template;
|
||||
|
||||
|
@ -49,7 +47,6 @@ switch ($mode) {
|
|||
|
||||
$this->response['template_cache_html'] = '<span class="seed bold">' . $lang['ALL_TEMPLATE_CLEARED'] . '</span>';
|
||||
break;
|
||||
|
||||
case 'indexer':
|
||||
exec("indexer --config {$bb_cfg['sphinx_config_path']} --all --rotate", $result);
|
||||
|
||||
|
@ -68,32 +65,23 @@ switch ($mode) {
|
|||
|
||||
$this->response['indexer_html'] = '<span class="seed bold">' . $lang['INDEXER'] . '</span>';
|
||||
break;
|
||||
|
||||
case 'update_user_level':
|
||||
\TorrentPier\Legacy\Group::update_user_level('all');
|
||||
|
||||
$this->response['update_user_level_html'] = '<span class="seed bold">' . $lang['USER_LEVELS_UPDATED'] . '</span>';
|
||||
break;
|
||||
|
||||
case 'sync_topics':
|
||||
\TorrentPier\Legacy\Admin\Common::sync('topic', 'all');
|
||||
\TorrentPier\Legacy\Admin\Common::sync_all_forums();
|
||||
|
||||
$this->response['sync_topics_html'] = '<span class="seed bold">' . $lang['TOPICS_DATA_SYNCHRONIZED'] . '</span>';
|
||||
break;
|
||||
|
||||
case 'sync_user_posts':
|
||||
\TorrentPier\Legacy\Admin\Common::sync('user_posts', 'all');
|
||||
|
||||
$this->response['sync_user_posts_html'] = '<span class="seed bold">' . $lang['USER_POSTS_COUNT_SYNCHRONIZED'] . '</span>';
|
||||
break;
|
||||
|
||||
case 'unlock_cron':
|
||||
\TorrentPier\Helpers\CronHelper::enableBoard();
|
||||
|
||||
$this->response['unlock_cron_html'] = '<span class="seed bold">' . $lang['ADMIN_UNLOCKED'] . '</span>';
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->ajax_die('Invalid mode: ' . $mode);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue