From b1403aa95bab3ed373c2cbf7b3550b9f346bd29f Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 20 Jul 2023 22:42:31 +0700 Subject: [PATCH] Minor improvements (#833) --- library/config.php | 4 +- src/Ajax.php | 104 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+), 2 deletions(-) diff --git a/library/config.php b/library/config.php index 80234434d..52e439a8a 100644 --- a/library/config.php +++ b/library/config.php @@ -68,7 +68,7 @@ $bb_cfg['cache'] = [ 'port' => 6379, 'con_required' => true, ], - // Available cache types: memcache, sqlite, redis, (filecache by default) + // Available cache types: filecache, memcache, sqlite, redis, apcu (filecache by default) 'engines' => [ 'bb_cache' => ['filecache', []], 'bb_config' => ['filecache', []], @@ -81,7 +81,7 @@ $bb_cfg['cache'] = [ ]; // Datastore -// Available datastore types: memcache, sqlite, redis (filecache by default) +// Available datastore types: filecache, memcache, sqlite, redis, apcu (filecache by default) $bb_cfg['datastore_type'] = 'filecache'; // Server diff --git a/src/Ajax.php b/src/Ajax.php index 96a5d7ec6..fc6c21215 100644 --- a/src/Ajax.php +++ b/src/Ajax.php @@ -60,6 +60,7 @@ class Ajax /** * Perform action + * * @throws Exception */ public function exec() @@ -159,6 +160,7 @@ class Ajax /** * Send data + * * @throws Exception */ public function send() @@ -202,6 +204,7 @@ class Ajax /** * Admin session + * * @throws Exception */ public function check_admin_session() @@ -225,6 +228,7 @@ class Ajax /** * Prompt for password + * * @throws Exception */ public function prompt_for_password() @@ -267,101 +271,201 @@ class Ajax } } + /** + * Edit user profile actions + * + * @return void + */ public function edit_user_profile() { require AJAX_DIR . '/edit_user_profile.php'; } + /** + * Change user rank actions + * + * @return void + */ public function change_user_rank() { require AJAX_DIR . '/change_user_rank.php'; } + /** + * Change user opt actions + * + * @return void + */ public function change_user_opt() { require AJAX_DIR . '/change_user_opt.php'; } + /** + * Generate passkey actions + * + * @return void + */ public function gen_passkey() { require AJAX_DIR . '/gen_passkey.php'; } + /** + * Group membership actions + * + * @return void + */ public function group_membership() { require AJAX_DIR . '/group_membership.php'; } + /** + * Manage group actions + * + * @return void + */ public function manage_group() { require AJAX_DIR . '/edit_group_profile.php'; } + /** + * Post moderator comment actions + * + * @return void + */ public function post_mod_comment() { require AJAX_DIR . '/post_mod_comment.php'; } + /** + * View post actions + * + * @return void + */ public function view_post() { require AJAX_DIR . '/view_post.php'; } + /** + * Change torrent status actions + * + * @return void + */ public function change_tor_status() { require AJAX_DIR . '/change_tor_status.php'; } + /** + * Change torrent actions + * + * @return void + */ public function change_torrent() { require AJAX_DIR . '/change_torrent.php'; } + /** + * View torrent actions + * + * @return void + */ public function view_torrent() { require AJAX_DIR . '/view_torrent.php'; } + /** + * User registration actions + * + * @return void + */ public function user_register() { require AJAX_DIR . '/user_register.php'; } + /** + * Moderator actions + * + * @return void + */ public function mod_action() { require AJAX_DIR . '/mod_action.php'; } + /** + * Posts actions + * + * @return void + */ public function posts() { require AJAX_DIR . '/posts.php'; } + /** + * Manage user actions + * + * @return void + */ public function manage_user() { require AJAX_DIR . '/manage_user.php'; } + /** + * Manage admin actions + * + * @return void + */ public function manage_admin() { require AJAX_DIR . '/manage_admin.php'; } + /** + * Topic tpl actions + * + * @return void + */ public function topic_tpl() { require AJAX_DIR . '/topic_tpl.php'; } + /** + * Index data actions + * + * @return void + */ public function index_data() { require AJAX_DIR . '/index_data.php'; } + /** + * Avatar actions + * + * @return void + */ public function avatar() { require AJAX_DIR . '/avatar.php'; } + /** + * Sitemap actions + * + * @return void + */ public function sitemap() { require AJAX_DIR . '/sitemap.php';