Remove the CSRF debug log

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2124 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-04-30 13:39:44 +00:00
parent 69442fa87d
commit 238a245071

View File

@@ -235,7 +235,6 @@ class route
return;
}
file_put_contents ("/tmp/csrf.log", date ("Y-m-d H:i:s")." GET route->map ($route, ...)\n", FILE_APPEND);
return $this->map ($route, $function);
}
@@ -257,7 +256,6 @@ file_put_contents ("/tmp/csrf.log", date ("Y-m-d H:i:s")." GET route->map ($rout
return;
}
file_put_contents ("/tmp/csrf.log", date ("Y-m-d H:i:s")." POST route->map ($route, ...)\n", FILE_APPEND);
return $this->map ($route, $function);
}
@@ -279,7 +277,6 @@ file_put_contents ("/tmp/csrf.log", date ("Y-m-d H:i:s")." POST route->map ($rou
return;
}
file_put_contents ("/tmp/csrf.log", date ("Y-m-d H:i:s")." PUT route->map ($route, ...)\n", FILE_APPEND);
return $this->map ($route, $function);
}
@@ -301,7 +298,6 @@ file_put_contents ("/tmp/csrf.log", date ("Y-m-d H:i:s")." PUT route->map ($rout
return;
}
file_put_contents ("/tmp/csrf.log", date ("Y-m-d H:i:s")." DELETE route->map ($route, ...)\n", FILE_APPEND);
return $this->map ($route, $function);
}
@@ -319,7 +315,6 @@ file_put_contents ("/tmp/csrf.log", date ("Y-m-d H:i:s")." DELETE route->map ($r
{
if ($this->debug)
echo "==> FOUND EQUAL !\n";
file_put_contents ("/tmp/csrf.log", date ("Y-m-d H:i:s")." map : BACKTRACE = ".print_r(debug_backtrace(), TRUE)."\n", FILE_APPEND);
try
{
$function ();
@@ -348,7 +343,6 @@ file_put_contents ("/tmp/csrf.log", date ("Y-m-d H:i:s")." map : BACKTRACE = ".p
{
if ($this->debug)
echo "==> FOUND REGEX !\n";
file_put_contents ("/tmp/csrf.log", date ("Y-m-d H:i:s")." map : BACKTRACE = ".print_r(debug_backtrace(), TRUE)."\n", FILE_APPEND);
$params = array ();
$reflect = new ReflectionFunction ($function);
foreach ($reflect->getParameters() as $key=>$val)