Jeremy Newman : add debug log html to footer

Jeremy Newman jnewman at winehq.org
Mon Nov 21 08:38:07 CST 2016


Module: appdb
Branch: master
Commit: 502d58934c131344196bcaa7562971c056fa4984
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=502d58934c131344196bcaa7562971c056fa4984

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Tue Nov 15 12:14:17 2016 -0600

add debug log html to footer

---

 include/footer.php | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/include/footer.php b/include/footer.php
index 39a12a9..fa35671 100644
--- a/include/footer.php
+++ b/include/footer.php
@@ -11,5 +11,16 @@
     title="CodeWeavers - Run Windows applications and games on Mac and Linux"></a>
 </div>
 
+<?php
+if($GLOBALS['_APPDB_debug'] and !empty($GLOBALS['_APPDB_debugLog'])) {
+?>
+<div id="dlog">
+    <div id="dlogp"><pre><?php echo htmlspecialchars($GLOBALS['_APPDB_debugLog']); ?></pre></div>
+    <div id="dlogt"><i class="fa fa-bug"></i> Toggle Debug Console</div>
+</div>
+<?php
+}
+?>
+
 </body>
 </html>




More information about the wine-cvs mailing list