Changeset 26900 for trunk/admin/rating.php
- Timestamp:
- Jan 21, 2014, 11:50:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/rating.php
r26837 r26900 76 76 $page['user_filter'] = ' AND r.user_id = '.$conf['guest_id']; 77 77 } 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'] );97 78 } 98 79
Note: See TracChangeset
for help on using the changeset viewer.