aboutsummaryrefslogtreecommitdiff
path: root/php/headers.php
diff options
context:
space:
mode:
authorMinteck <freeziv.ytb@gmail.com>2021-03-07 18:29:17 +0100
committerMinteck <freeziv.ytb@gmail.com>2021-03-07 18:29:17 +0100
commit0f79e708bf07721b73ea41e5d341be08e8ea4dce (patch)
treef3c63cd6a9f4ef0b26f95eec6a031600232e80c8 /php/headers.php
downloadelectrode-0f79e708bf07721b73ea41e5d341be08e8ea4dce.tar.gz
electrode-0f79e708bf07721b73ea41e5d341be08e8ea4dce.tar.bz2
electrode-0f79e708bf07721b73ea41e5d341be08e8ea4dce.zip
Initial commit
Diffstat (limited to 'php/headers.php')
-rw-r--r--php/headers.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/php/headers.php b/php/headers.php
new file mode 100644
index 0000000..d8518de
--- /dev/null
+++ b/php/headers.php
@@ -0,0 +1,8 @@
+<?php
+
+function __electrode_end_hooks() {
+ global $_PHPID;
+ file_put_contents("./cache/HAD_$_PHPID.json", json_encode(xdebug_get_headers(), JSON_PRETTY_PRINT));
+}
+
+$__electrode = true;