PHP Version: ' + info.php_version + '
'; html += 'PHP Binary: ' + info.php_binary + '
'; if (info.php_path) { html += 'PHP Path: ' + info.php_path + '
'; } html += 'ExecWithFallback: '; html += info.exec_with_fallback_available ? '✓ Available' : '✗ Not Available'; html += '
'; html += 'Validation Available: '; html += info.validation_available ? '✓ Yes' : '✗ No'; html += '
'; // Update validation status $('#validation-status').html( info.validation_available ? '' : '' ); $('#validation-text').text( info.validation_available ? 'PHP validation is available' : 'PHP validation is not available' ); $('#system-info').html(html); } }; // Initialize when document is ready $(document).ready(function() { FMA_Debug.init(); }); // Add debug button to code editor when it loads $(document).on('DOMNodeInserted', function(e) { if ($(e.target).find('.CodeMirror').length > 0) { if (!$('.fma-debug-toggle').length) { var debugButton = ''; $(e.target).find('.CodeMirror').after(debugButton); } } }); })(jQuery);