Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

disabled logger

  • Loading branch information...
commit 3bf95d645046a6505ae8c0244b2263a1ef522767 1 parent 3982bc0
@thomaspark authored
Showing with 15 additions and 15 deletions.
  1. +14 −14 logger.php
  2. +1 −1  login.php
View
28 logger.php
@@ -1,20 +1,20 @@
<?php
function logger($data)
{
- $today = date('ymd');
- $now = date('Y/m/d H:i:s');
-
- $name = $_SESSION['name'];
- $filename = "logs/" . $name . ".txt";
-
- // open file
- $fd = fopen($filename, "a");
-
- // write string
- fwrite($fd, $now . "\t" . $name . "\t" . $data . "\t" . $_SERVER["REQUEST_URI"] . "\n");
-
- // close file
- fclose($fd);
+ // $today = date('ymd');
+ // $now = date('Y/m/d H:i:s');
+ //
+ // $name = $_SESSION['name'];
+ // $filename = "logs/" . $name . ".txt";
+ //
+ // // open file
+ // $fd = fopen($filename, "a");
+ //
+ // // write string
+ // fwrite($fd, $now . "\t" . $name . "\t" . $data . "\t" . $_SERVER["REQUEST_URI"] . "\n");
+ //
+ // // close file
+ // fclose($fd);
}
?>
View
2  login.php
@@ -8,7 +8,7 @@
if($log->login("ownership", $_POST['username'], $_POST['password']) == true){
//do something on successful login
- logger('login');
+ // logger('login');
header('Location: ./list');
}else{
Please sign in to comment.
Something went wrong with that request. Please try again.