Zeile 74 | Zeile 74 |
---|
else { $verified = true;
|
else { $verified = true;
|
| $button = '#post_'.$id.' .postbit_report';
|
}
// Password protected forums ......... yhummmmy!
| }
// Password protected forums ......... yhummmmy!
|
Zeile 95 | Zeile 96 |
---|
$report_type_db = "type = 'profile'"; $id2 = $id3 = 0; // We don't use these on the profile $id = $checkid = $user['uid']; // id is the profile user
|
$report_type_db = "type = 'profile'"; $id2 = $id3 = 0; // We don't use these on the profile $id = $checkid = $user['uid']; // id is the profile user
|
| $button = '.report_user_button';
|
} } else if($report_type == 'reputation')
| } } else if($report_type == 'reputation')
|
Zeile 114 | Zeile 116 |
---|
$id2 = $checkid = $reputation['adduid']; // id2 is the user who gave the comment $id3 = $reputation['uid']; // id3 is the user who received the comment $report_type_db = "type = 'reputation'";
|
$id2 = $checkid = $reputation['adduid']; // id2 is the user who gave the comment $id3 = $reputation['uid']; // id3 is the user who received the comment $report_type_db = "type = 'reputation'";
|
| $button = '#rid'.$id.' .postbit_report';
|
} }
|
} }
|
| $plugins->run_hooks("report_type");
|
$permissions = user_permissions($checkid); if(empty($permissions['canbereported'])) { $error = $lang->sprintf($lang->error_invalid_report, $report_type); }
|
$permissions = user_permissions($checkid); if(empty($permissions['canbereported'])) { $error = $lang->sprintf($lang->error_invalid_report, $report_type); }
|
$plugins->run_hooks("report_type");
| |
// Check for an existing report if(!empty($report_type_db))
| // Check for an existing report if(!empty($report_type_db))
|
Zeile 162 | Zeile 165 |
---|
eval("\$report_thanks = \"".$templates->get("report_thanks")."\";"); echo $report_thanks;
|
eval("\$report_thanks = \"".$templates->get("report_thanks")."\";"); echo $report_thanks;
|
| echo sprintf("<script type='text/javascript'>$('%s').remove();</script>", $button);
|
exit; } else
| exit; } else
|
Zeile 220 | Zeile 224 |
---|
eval("\$report_thanks = \"".$templates->get("report_thanks")."\";"); echo $report_thanks;
|
eval("\$report_thanks = \"".$templates->get("report_thanks")."\";"); echo $report_thanks;
|
| echo sprintf("<script type='text/javascript'>$('%s').remove();</script>", $button);
|
exit; } }
| exit; } }
|