2
0

cms.debug.php 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <script>
  2. $(document).ready(function() {
  3. $('#checkIsSubmit').on('change', function() {
  4. window.location.href = '/submit.php?from=parametres-debug&target=submit&actif=' + $('#checkIsSubmit').prop('checked');
  5. });
  6. $('#checkIsSql').on('change', function() {
  7. window.location.href = '/submit.php?from=parametres-debug&target=sql&actif=' + $('#checkIsSql').prop('checked');
  8. });
  9. $('#checkIsEmail').on('change', function() {
  10. window.location.href = '/submit.php?from=parametres-debug&target=email&actif=' + $('#checkIsEmail').prop('checked');
  11. });
  12. $('#checkSendIsEmail').on('change', function() {
  13. window.location.href = '/submit.php?from=parametres-debug&target=send-email&actif=' + $('#checkSendIsEmail').prop('checked');
  14. });
  15. $('.toggle-logs').click(function() {
  16. $('#debugger-logs').slideToggle();
  17. });
  18. // Apply syntax highlighting to log entries
  19. $('.log-entry').each(function() {
  20. var html = $(this).html();
  21. html = html.replace(/(\\$\\w+)/g, '<span class=\"variable\">$1</span>');
  22. html = html.replace(/(\\bfunction\\b)/g, '<span class=\"function\">$1</span>');
  23. $(this).html(html);
  24. });
  25. });
  26. </script>