aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorvolcom <volcom@piwigo.org>2005-10-17 07:21:30 +0000
committervolcom <volcom@piwigo.org>2005-10-17 07:21:30 +0000
commit889b1240cd81511850ea8ad900cb941e35308b52 (patch)
treeb70f5245dace1aadf7559ac1e8e36f5f205c4618 /include/functions.inc.php
parentc31f150276f55de28429b8f47696e641671ec02c (diff)
* new: history details by month,day
git-svn-id: http://piwigo.org/svn/trunk@894 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r--include/functions.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 0c4e462e9..261260b16 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -354,6 +354,8 @@ function pwg_log( $file, $category, $picture = '' )
if ($conf['log'])
{
+ if ( ($conf['history_admin'] ) or ( (! $conf['history_admin']) and ($user['status'] != 'admin') ) )
+ {
$login = ($user['id'] == $conf['guest_id'])
? 'guest' : addslashes($user['username']);
@@ -370,6 +372,7 @@ INSERT INTO '.HISTORY_TABLE.'
;';
pwg_query($query);
}
+ }
}
// format_date returns a formatted date for display. The date given in