; DebugInfo - Admin-only debug information page for system monitoring
; Input: .pSpecial - pointer to TSpecialParams structure containing request data
; Output: Returns debug information page with system status
; CF clear on success, set on error/redirect
; Note: Shows SQLite statements, SSE listeners, and system statistics
proc DebugInfo, .pSpecial
begin
push edx
mov edx, [.pSpecial]
test [edx+TSpecialParams.userStatus], permAdmin
jz .error_for_admins_only
stdcall CheckSecMode, [edx+TSpecialParams.params]
cmp eax, secNavigate
ja .error_for_admins_only
stdcall TextCreate, sizeof.TText
stdcall ListSQLiteStatus, eax, edx
clc
pop edx
return
.error_for_admins_only:
push edi
stdcall TextMakeRedirect, 0, "/!message/only_for_admins"
mov eax, edi
pop edi edx ;<============ multi pop?? ===============
stc
return
endp
multi pop??