summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2009-11-17 12:51:07 +0000
committerChristian Schneider2009-11-17 12:51:07 +0000
commit16fcdf0efab6726c2f4b80d827490ea22c7430d5 (patch)
tree68481963b057f69528d03022422155862dbe3b5c
parent21a064343436bb1f324dc8fea74b0af8875e8fce (diff)
downloaditools-16fcdf0efab6726c2f4b80d827490ea22c7430d5.tar.gz
itools-16fcdf0efab6726c2f4b80d827490ea22c7430d5.tar.bz2
itools-16fcdf0efab6726c2f4b80d827490ea22c7430d5.zip
Added error reporter sending back code on faulty load
-rw-r--r--.gitattributes1
-rw-r--r--itjs/error.gif11
2 files changed, 12 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index e089cfa..3205607 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -4,3 +4,4 @@
/COPYING -text
/README -text
itjs/0.gif -text
+itjs/error.gif -text
diff --git a/itjs/error.gif b/itjs/error.gif
new file mode 100644
index 0000000..d743ef1
--- /dev/null
+++ b/itjs/error.gif
@@ -0,0 +1,11 @@
+<?php
+
+if ($_POST)
+{
+ $data = "<?php return " . var_export($_POST, true) . ";\n";
+ @mkdir("/tmp/itjs");
+ file_put_contents("/tmp/itjs/error-" . date("YmdHis"), $data);
+}
+
+header("Content-Type: image/gif");
+readfile(dirname($_SERVER['SCRIPT_FILENAME']) . "/itjs/0.gif");