Split functions to the composer autoloading

Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
Yuriy Pikhtarev 2018-06-24 14:13:56 +03:00
commit 83ca67fae6
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
75 changed files with 3612 additions and 3184 deletions

View file

@ -31,14 +31,9 @@ if ($ajax->action != 'manage_admin') {
// Load actions required modules
switch ($ajax->action) {
case 'view_post':
require INC_DIR . '/bbcode.php';
break;
case 'posts':
case 'post_mod_comment':
require INC_DIR . '/bbcode.php';
require INC_DIR . '/functions_post.php';
require INC_DIR . '/functions_admin.php';
break;
case 'view_torrent':
@ -47,21 +42,6 @@ switch ($ajax->action) {
case 'change_torrent':
case 'gen_passkey':
require ATTACH_DIR . '/attachment_mod.php';
require INC_DIR . '/functions_torrent.php';
break;
case 'user_register':
require INC_DIR . '/functions_validate.php';
break;
case 'manage_user':
case 'manage_admin':
require INC_DIR . '/functions_admin.php';
break;
case 'group_membership':
case 'manage_group':
require INC_DIR . '/functions_group.php';
break;
}