diff options
author | gweltas <gweltas@piwigo.org> | 2004-09-26 21:24:49 +0000 |
---|---|---|
committer | gweltas <gweltas@piwigo.org> | 2004-09-26 21:24:49 +0000 |
commit | 1d4238055a7fbb86bdb901f09eb5de90026ba431 (patch) | |
tree | a3273603e2a8c4e859bded7f992c02a8ba101270 /include/functions.inc.php | |
parent | bb8189ea750fdde2b489abd563034e0efb32db20 (diff) |
-First draft of history display
git-svn-id: http://piwigo.org/svn/trunk@537 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r-- | include/functions.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); |