diff options
author | Christian Schneider | 2009-11-17 12:51:07 +0000 |
---|---|---|
committer | Christian Schneider | 2009-11-17 12:51:07 +0000 |
commit | 16fcdf0efab6726c2f4b80d827490ea22c7430d5 (patch) | |
tree | 68481963b057f69528d03022422155862dbe3b5c | |
parent | 21a064343436bb1f324dc8fea74b0af8875e8fce (diff) | |
download | itools-16fcdf0efab6726c2f4b80d827490ea22c7430d5.tar.gz itools-16fcdf0efab6726c2f4b80d827490ea22c7430d5.tar.bz2 itools-16fcdf0efab6726c2f4b80d827490ea22c7430d5.zip |
Added error reporter sending back code on faulty load
-rw-r--r-- | .gitattributes | 1 | ||||
-rw-r--r-- | itjs/error.gif | 11 |
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"); |