Permalink
Browse files

restrict access to log dir

  • Loading branch information...
kerphi committed Aug 30, 2012
1 parent a7750fd commit 876c765318fb40275b76f3096382dff14681a93a
Showing with 5 additions and 2 deletions.
  1. +2 −2 server/index.php
  2. +3 −0 server/log/.htaccess
View
@@ -7,9 +7,9 @@
function debug($msg) {
if (is_string($msg)) {
- file_put_contents(__DIR__.'/logs/pfc.log', $msg."\n", FILE_APPEND);
+ file_put_contents(__DIR__.'/log/pfc.log', $msg."\n", FILE_APPEND);
} else {
- file_put_contents(__DIR__.'/logs/pfc.log', print_r($msg, true), FILE_APPEND);
+ file_put_contents(__DIR__.'/log/pfc.log', print_r($msg, true), FILE_APPEND);
}
}
View
@@ -0,0 +1,3 @@
+order deny,allow
+deny from all
+allow from localhost

0 comments on commit 876c765

Please sign in to comment.