Ignore:
Timestamp:
Jan 21, 2014, 11:50:06 PM (10 years ago)
Author:
rvelices
Message:

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
  • trunk/admin/rating.php

    r26837 r26900  
    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.