Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id: reputation.php 2263 2006-09-26 09:24:25Z chris $
| * $Id: reputation.php 2345 2006-10-23 03:11:03Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 235 | Zeile 235 |
---|
// Delete a specific reputation from a user. if($mybb->input['action'] == "delete") {
|
// Delete a specific reputation from a user. if($mybb->input['action'] == "delete") {
|
| // Fetch the existing reputation for this user given by our current user if there is one. $query = $db->simple_select(TABLE_PREFIX."reputation", "*", "rid='".intval($mybb->input['rid'])."'"); $existing_reputation = $db->fetch_array($query);
|
// Only administrators as well as users who gave a specifc vote can delete one. if($mybb->usergroup['cancp'] != "yes" && $existing_reputation['adduid'] != $mybb->user['uid']) {
| // Only administrators as well as users who gave a specifc vote can delete one. if($mybb->usergroup['cancp'] != "yes" && $existing_reputation['adduid'] != $mybb->user['uid']) {
|