-First draft of history display

git-svn-id: http://piwigo.org/svn/trunk@537 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
gweltas
2004-09-26 21:24:49 +00:00
parent bb8189ea75
commit 1d4238055a
8 changed files with 527 additions and 140 deletions
+2 -2
View File
@@ -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 );