From aabdb3e9295474760b2d3fd5d76d2c235970fe16 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 14 Feb 2007 22:53:02 +0000 Subject: New: history logs high quality access via action.php. A new column #history.is_high was added. Filter was added on administration history detail view. Modification: function get_sql_condition_FandF was slightly refactored for presentation improvement. git-svn-id: http://piwigo.org/svn/trunk@1817 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/functions.inc.php') diff --git a/include/functions.inc.php b/include/functions.inc.php index 42e54415c..c52fa5457 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -410,7 +410,7 @@ function replace_search( $string, $search ) return $string; } -function pwg_log($image_id = null) +function pwg_log($image_id = null, $is_high = false) { global $conf, $user, $page; @@ -468,6 +468,7 @@ INSERT INTO '.HISTORY_TABLE.' section, category_id, image_id, + is_high, tag_ids ) VALUES @@ -483,6 +484,7 @@ INSERT INTO '.HISTORY_TABLE.' '.(isset($page['section']) ? "'".$page['section']."'" : 'NULL').', '.(isset($page['category']) ? $page['category'] : 'NULL').', '.(isset($image_id) ? $image_id : 'NULL').', + '.(isset($image_id) ? "'".boolean_to_string($is_high)."'" : 'NULL').', '.(isset($tags_string) ? "'".$tags_string."'" : 'NULL').' ) ;'; -- cgit v1.2.3