mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
-First draft of history display
git-svn-id: http://piwigo.org/svn/trunk@537 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user