From 1d4238055a7fbb86bdb901f09eb5de90026ba431 Mon Sep 17 00:00:00 2001 From: gweltas Date: Sun, 26 Sep 2004 21:24:49 +0000 Subject: -First draft of history display git-svn-id: http://piwigo.org/svn/trunk@537 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/functions.inc.php') diff --git a/include/functions.inc.php b/include/functions.inc.php index 1bd3abd07..841c86f74 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -345,9 +345,9 @@ function pwg_log( $file, $category, $picture = '' ) if ( $conf['log'] ) { - $query = 'insert into '.PREFIX_TABLE.'history'; + $query = 'insert into '.HISTORY_TABLE; $query.= ' (date,login,IP,file,category,picture) values'; - $query.= " (".time().", '".$user['username']."'"; + $query.= " (NOW(), '".$user['username']."'"; $query.= ",'".$_SERVER['REMOTE_ADDR']."'"; $query.= ",'".$file."','".$category."','".$picture."');"; mysql_query( $query ); -- cgit v1.2.3