chat_quotes_single($quoteId), 'quote_parent' => $setId, ]); } elseif ($setId > 0) { tpl_var('quote_set', chat_quotes_set($setId)); } $quoteCount = chat_quotes_count(true); $quotes = chat_quotes_parents($_GET['o'] ?? 0); echo tpl_render('manage.general.quotes', [ 'quote_count' => $quoteCount, 'quote_offset' => (int)($_GET['o'] ?? 0), 'quote_parents' => $quotes, ]); break; case 'emoticons': if (!perms_check($generalPerms, MSZ_PERM_GENERAL_MANAGE_EMOTICONS)) { echo render_error(403); break; } echo tpl_render('manage.general.emoticons'); break; case 'settings': if (!perms_check($generalPerms, MSZ_PERM_GENERAL_MANAGE_SETTINGS)) { echo render_error(403); break; } echo tpl_render('manage.general.settings'); break; }