From 16fcdf0efab6726c2f4b80d827490ea22c7430d5 Mon Sep 17 00:00:00 2001
From: Christian Schneider
Date: Tue, 17 Nov 2009 12:51:07 +0000
Subject: Added error reporter sending back code on faulty load

---
 itjs/error.gif | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 itjs/error.gif

(limited to 'itjs')

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");
-- 
cgit v1.2.3