diff --git a/assets/js/main.js b/assets/js/main.js index 78cfe2e..3da79ed 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -907,7 +907,7 @@ document.addEventListener('DOMContentLoaded', () => {
${escapeHTML(msg.username)} - ${renderRoleIconJS(msg.role_icon, '12px')} + ${renderRoleIconJS(msg.role_icon, '14px')} ${msg.time}
@@ -957,7 +957,7 @@ document.addEventListener('DOMContentLoaded', () => {
${roles.map(r => ` - ${r.icon_url ? `` : ''} + ${r.icon_url ? `` : ''} ${escapeHTML(r.name)} `).join('')} @@ -1133,7 +1133,7 @@ document.addEventListener('DOMContentLoaded', () => { availableRoles.forEach(role => { const li = document.createElement('li'); li.innerHTML = ` -
+
${role.name}
`; li.onclick = async (e) => { @@ -1544,7 +1544,7 @@ document.addEventListener('DOMContentLoaded', () => { } catch (e) { console.error(e); } } - function renderRoleIconJS(icon, size = '12px') { + function renderRoleIconJS(icon, size = '14px') { if (!icon) return ''; const isUrl = icon.startsWith('http') || icon.startsWith('/'); if (isUrl) { @@ -1584,7 +1584,7 @@ document.addEventListener('DOMContentLoaded', () => { item.style.marginBottom = '8px'; item.style.cursor = 'pointer'; - const roleIconHtml = renderRoleIconJS(m.role_icon, '12px'); + const roleIconHtml = renderRoleIconJS(m.role_icon, '14px'); const avatarBg = m.avatar_url ? `background-image: url('${m.avatar_url}');` : ''; const statusColor = m.status === 'online' ? '#23a559' : '#80848e'; @@ -1609,7 +1609,7 @@ document.addEventListener('DOMContentLoaded', () => { authorEl.style.color = member.role_color || 'inherit'; // Try to update icon if it exists or add it if it doesn't let iconEl = authorEl.querySelector('.role-icon, span.ms-1'); - const newIconHtml = renderRoleIconJS(member.role_icon, '12px'); + const newIconHtml = renderRoleIconJS(member.role_icon, '14px'); if (newIconHtml) { if (iconEl) { @@ -1638,7 +1638,7 @@ document.addEventListener('DOMContentLoaded', () => { const item = document.createElement('div'); item.className = 'list-group-item bg-transparent text-white border-secondary d-flex justify-content-between align-items-center p-2 mb-1 rounded role-sortable-item'; item.dataset.id = role.id; - const roleIconHtml = renderRoleIconJS(role.icon_url, '12px'); + const roleIconHtml = renderRoleIconJS(role.icon_url, '14px'); item.innerHTML = `
@@ -1698,7 +1698,7 @@ document.addEventListener('DOMContentLoaded', () => { const item = document.createElement('div'); item.className = 'list-group-item bg-transparent text-white border-secondary d-flex justify-content-between align-items-center p-2 mb-2 rounded bg-dark'; - const roleIconHtml = renderRoleIconJS(member.role_icon, '12px'); + const roleIconHtml = renderRoleIconJS(member.role_icon, '14px'); item.innerHTML = `
@@ -2160,7 +2160,7 @@ document.addEventListener('DOMContentLoaded', () => { div.className = 'd-flex justify-content-between align-items-center mb-2 p-2 bg-dark rounded'; div.innerHTML = `
-
+
${tag.name}
@@ -2448,7 +2448,7 @@ document.addEventListener('DOMContentLoaded', () => { function parseCustomEmotes(text) { let parsed = escapeHTML(text); (window.CUSTOM_EMOTES_CACHE || []).forEach(emote => { - const imgHtml = `${emote.name}`; + const imgHtml = `${emote.name}`; parsed = parsed.split(emote.code).join(imgHtml); }); return parsed; @@ -2543,7 +2543,7 @@ document.addEventListener('DOMContentLoaded', () => {
${escapeHTML(msg.username)} - ${renderRoleIconJS(msg.role_icon, '12px')} + ${renderRoleIconJS(msg.role_icon, '14px')} ${msg.timestamp || 'Just now'} ${pinnedBadge} diff --git a/debug_reorder.log b/debug_reorder.log index 68cd156..3ad33af 100644 --- a/debug_reorder.log +++ b/debug_reorder.log @@ -12,3 +12,4 @@ 2026-02-16 03:07:52 - Server: 1 - Orders: [{"id":"11","position":0,"category_id":null},{"id":"16","position":1,"category_id":null},{"id":"12","position":2,"category_id":null},{"id":"10","position":3,"category_id":null},{"id":"1","position":4,"category_id":"10"},{"id":"6","position":5,"category_id":"10"},{"id":"15","position":6,"category_id":"10"},{"id":"2","position":7,"category_id":"10"},{"id":"14","position":8,"category_id":null},{"id":"13","position":9,"category_id":null},{"id":"9","position":10,"category_id":null},{"id":"3","position":11,"category_id":null}] 2026-02-16 03:08:33 - Server: 1 - Orders: [{"id":"11","position":0,"category_id":null},{"id":"17","position":1,"category_id":null},{"id":"12","position":2,"category_id":null},{"id":"10","position":3,"category_id":null},{"id":"1","position":4,"category_id":"10"},{"id":"6","position":5,"category_id":"10"},{"id":"15","position":6,"category_id":"10"},{"id":"2","position":7,"category_id":"10"},{"id":"14","position":8,"category_id":null},{"id":"13","position":9,"category_id":null},{"id":"9","position":10,"category_id":null},{"id":"3","position":11,"category_id":null}] 2026-02-16 03:09:18 - Server: 1 - Orders: [{"id":"11","position":0,"category_id":null},{"id":"17","position":1,"category_id":null},{"id":"12","position":2,"category_id":null},{"id":"10","position":3,"category_id":null},{"id":"1","position":4,"category_id":"10"},{"id":"6","position":5,"category_id":"10"},{"id":"15","position":6,"category_id":"10"},{"id":"2","position":7,"category_id":"10"},{"id":"18","position":8,"category_id":"10"},{"id":"14","position":9,"category_id":null},{"id":"13","position":10,"category_id":null},{"id":"9","position":11,"category_id":null},{"id":"3","position":12,"category_id":null}] +2026-02-16 18:43:44 - Server: 1 - Orders: [{"id":"11","position":0,"category_id":null},{"id":"17","position":1,"category_id":null},{"id":"12","position":2,"category_id":null},{"id":"19","position":3,"category_id":null},{"id":"10","position":4,"category_id":null},{"id":"1","position":5,"category_id":"10"},{"id":"6","position":6,"category_id":"10"},{"id":"15","position":7,"category_id":"10"},{"id":"2","position":8,"category_id":"10"},{"id":"18","position":9,"category_id":"10"},{"id":"14","position":10,"category_id":null},{"id":"13","position":11,"category_id":null},{"id":"9","position":12,"category_id":null},{"id":"3","position":13,"category_id":null}] diff --git a/index.php b/index.php index fe968f2..b65e290 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ file_put_contents('requests.log', date('Y-m-d H:i:s') . " - " . $_SERVER['REQUEST_METHOD'] . " " . $_SERVER['REQUEST_URI'] . " - POST: " . json_encode($_POST) . "\n", FILE_APPEND); require_once 'auth/session.php'; -function renderRoleIcon($icon, $size = '12px') { +function renderRoleIcon($icon, $size = '14px') { if (empty($icon)) return ''; $isUrl = (strpos($icon, 'http') === 0 || strpos($icon, '/') === 0); $isFa = (strpos($icon, 'fa-') === 0); @@ -41,7 +41,7 @@ function parse_emotes($content) { $result = htmlspecialchars($content); foreach ($custom_emotes_cache as $ce) { - $emote_html = '' . htmlspecialchars($ce['name']) . ''; + $emote_html = '' . htmlspecialchars($ce['name']) . ''; $result = str_replace($ce['code'], $emote_html, $result); } return $result; @@ -592,7 +592,7 @@ $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
"> - + SOLUTION @@ -817,7 +817,7 @@ $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
"> - + @@ -838,7 +838,7 @@ $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? ''; $custom_emotes_cache = db()->query("SELECT name, path, code FROM custom_emotes")->fetchAll(); } foreach ($custom_emotes_cache as $ce) { - $emote_html = '' . htmlspecialchars($ce['name']) . ''; +$emote_html = '' . htmlspecialchars($ce['name']) . ''; $msg_content = str_replace($ce['code'], $emote_html, $msg_content); } @@ -979,7 +979,7 @@ $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
"> - +
diff --git a/requests.log b/requests.log index 3c3dea6..685531c 100644 --- a/requests.log +++ b/requests.log @@ -253,3 +253,21 @@ 2026-02-16 17:41:16 - GET / - POST: [] 2026-02-16 17:41:28 - GET /?fl_project=38443 - POST: [] 2026-02-16 18:00:22 - GET /index.php?server_id=1&channel_id=17 - POST: [] +2026-02-16 18:03:21 - GET /?fl_project=38443 - POST: [] +2026-02-16 18:23:09 - GET /index.php?server_id=1&channel_id=17 - POST: [] +2026-02-16 18:29:00 - GET /index.php?server_id=1&channel_id=11 - POST: [] +2026-02-16 18:39:35 - GET /index.php?server_id=1&channel_id=17 - POST: [] +2026-02-16 18:39:37 - GET /index.php?server_id=1&channel_id=12 - POST: [] +2026-02-16 18:39:39 - GET /index.php?server_id=1&channel_id=17 - POST: [] +2026-02-16 18:39:40 - GET /index.php?server_id=1&channel_id=11 - POST: [] +2026-02-16 18:40:37 - GET /index.php?server_id=1&channel_id=18 - POST: [] +2026-02-16 18:40:39 - GET /index.php?server_id=1&channel_id=6 - POST: [] +2026-02-16 18:41:42 - GET /index.php?server_id=1&channel_id=15 - POST: [] +2026-02-16 18:41:48 - GET /index.php?server_id=1&channel_id=2 - POST: [] +2026-02-16 18:41:51 - GET /index.php?server_id=1&channel_id=18 - POST: [] +2026-02-16 18:42:47 - GET /index.php?server_id=1 - POST: [] +2026-02-16 18:42:50 - GET /index.php?server_id=1&channel_id=17 - POST: [] +2026-02-16 18:43:03 - GET /index.php?server_id=1&channel_id=12 - POST: [] +2026-02-16 18:43:06 - GET /index.php?server_id=1&channel_id=17 - POST: [] +2026-02-16 18:43:30 - GET /index.php?server_id=1&channel_id=12 - POST: [] +2026-02-16 18:43:38 - GET /index.php?server_id=1&channel_id=19 - POST: []