aboutsummaryrefslogtreecommitdiffstats
path: root/admin/rating.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-01-21 22:50:59 +0000
committerrvelices <rv-github@modusoptimus.com>2014-01-21 22:50:59 +0000
commitb4247f00af3f358cedf3a702f774d5953e9d5fb7 (patch)
tree45a73e31046f00b03e1e71d399dea15b9477f564 /admin/rating.php
parentd3d0dc1eaf7d0e541340c10d2e834754a69b6a22 (diff)
merge -r26900 from trunk to 2.6
admin rating user improvements - add last rate date for user - add consensus deviation but only based on the best rated photos (e.g. how much this user tries to change the best rated photos) git-svn-id: http://piwigo.org/svn/branches/2.6@26901 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/rating.php')
-rw-r--r--admin/rating.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/admin/rating.php b/admin/rating.php
index 381b5c4cc..1592125c6 100644
--- a/admin/rating.php
+++ b/admin/rating.php
@@ -77,25 +77,6 @@ if (isset($_GET['users']))
}
}
-if (isset($_GET['del']))
-{
- include_once(PHPWG_ROOT_PATH.'include/functions_rate.inc.php');
- $del_params = urldecode( $_GET['del'] );
- parse_str($del_params, $vars);
- if ( !is_numeric($vars['e']) or !is_numeric($vars['u']) )
- {
- die('Hacking attempt');
- }
- $query = '
-DELETE FROM '. RATE_TABLE .'
-WHERE element_id=' . $vars['e'] . '
-AND user_id=' . $vars['u'] . '
-AND anonymous_id=\'' . $vars['a'] . '\'
-;';
- pwg_query($query);
- update_rating_score( $vars['e'] );
-}
-
$users = array();
$query = '
SELECT '.$conf['user_fields']['username'].' as username, '.$conf['user_fields']['id'].' as id