diff options
author | plegall <plg@piwigo.org> | 2007-02-14 22:53:02 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2007-02-14 22:53:02 +0000 |
commit | aabdb3e9295474760b2d3fd5d76d2c235970fe16 (patch) | |
tree | a2ced85a4923136c28fd963f52b28f8348cd830f /include/functions.inc.php | |
parent | 58a359e3c17b711be1663985e5e7801407eb50ed (diff) |
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
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r-- | include/functions.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
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').' ) ;'; |