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 /itjs/error.gif | |
parent | 21a064343436bb1f324dc8fea74b0af8875e8fce (diff) | |
download | itools-16fcdf0efab6726c2f4b80d827490ea22c7430d5.tar.gz itools-16fcdf0efab6726c2f4b80d827490ea22c7430d5.tar.bz2 itools-16fcdf0efab6726c2f4b80d827490ea22c7430d5.zip |
Added error reporter sending back code on faulty load
Diffstat (limited to 'itjs/error.gif')
-rw-r--r-- | itjs/error.gif | 11 |
1 files changed, 11 insertions, 0 deletions
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"); |