Ignore:
Timestamp:
01/21/14 23:50:59 (6 years ago)
Author:
rvelices
Message:

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)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/admin/rating.php

    r26838 r26901  
    7676    $page['user_filter'] = ' AND r.user_id = '.$conf['guest_id']; 
    7777  } 
    78 } 
    79  
    80 if (isset($_GET['del'])) 
    81 { 
    82   include_once(PHPWG_ROOT_PATH.'include/functions_rate.inc.php'); 
    83   $del_params = urldecode( $_GET['del'] ); 
    84   parse_str($del_params, $vars); 
    85   if ( !is_numeric($vars['e']) or !is_numeric($vars['u']) ) 
    86   { 
    87     die('Hacking attempt'); 
    88   } 
    89   $query = ' 
    90 DELETE FROM '. RATE_TABLE .' 
    91 WHERE element_id=' . $vars['e'] . ' 
    92 AND user_id=' . $vars['u'] . ' 
    93 AND anonymous_id=\'' . $vars['a'] . '\' 
    94 ;'; 
    95   pwg_query($query); 
    96   update_rating_score( $vars['e'] ); 
    9778} 
    9879 
Note: See TracChangeset for help on using the changeset viewer.