Commit | Line | Data |
---|---|---|
e586807d H |
1 | <?php |
2 | /* This program is free software. It comes without any warranty, to | |
3 | * the extent permitted by applicable law. You can redistribute it | |
4 | * and/or modify it under the terms of the Do What The Fuck You Want | |
5 | * To Public License, Version 2, as published by Sam Hocevar. See | |
6 | * http://sam.zoy.org/wtfpl/COPYING for more details. */ | |
7 | ||
8 | class log { | |
9 | ||
10 | function log($action,$node_id,$result,$parameter1='',$parameter2='') { | |
11 | ||
12 | global $db,$node; | |
13 | $user_id=$_SESSION['user_id']; | |
14 | // $db->query("insert delayed into logs set event='$action',node_id='$node_id',user_id='$user_id',result='$result',parameter1='$parameter1',parameter2='$parameter2'"); | |
15 | ||
16 | } | |
17 | ||
18 | } | |
19 | ?> |