From abe1151407fb084089a8dfa12ea081b95630a1fd Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Fri, 11 Feb 2011 08:23:11 +0100 Subject: [PATCH] log_points moved to briskin5 subtree --- web/Obj/brisk.phh | 15 --------------- web/briskin5/Obj/briskin5.phh | 13 +++++++++++++ 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index e51304d..34e08b0 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -2560,21 +2560,6 @@ function log_legal($curtime, &$user, $where, $mesg) } } -function log_points($curtime, &$user, $where, $mesg) -{ - GLOBAL $_SERVER; - - if (($fp = @fopen(LEGAL_PATH."/points.log", 'a')) != FALSE) { - /* Unix time | session | nickname | IP | where was | mesg */ - fwrite($fp, sprintf("%ld|%s|%s|%s|%s|%s|%s|\n", $curtime, $user->sess, - ($user->flags & USER_FLAG_AUTH ? 'A' : 'N'), - $user->name, $_SERVER['REMOTE_ADDR'], $where , $mesg)); - fclose($fp); - } -} - - - function lock_banlist() { diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 2990da4..3e5c685 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -1497,4 +1497,17 @@ function game_result($asta_pnt, $pnt) } } +function log_points($curtime, &$user, $where, $mesg) +{ + GLOBAL $_SERVER; + + if (($fp = @fopen(LEGAL_PATH."/points.log", 'a')) != FALSE) { + /* Unix time | session | nickname | IP | where was | mesg */ + fwrite($fp, sprintf("%ld|%s|%s|%s|%s|%s|%s|\n", $curtime, $user->sess, + ($user->flags & USER_FLAG_AUTH ? 'A' : 'N'), + $user->name, $_SERVER['REMOTE_ADDR'], $where , $mesg)); + fclose($fp); + } +} + ?> -- 2.17.1