fixed reports
This commit is contained in:
parent
39a9827cd1
commit
d7ee19306c
5 changed files with 19 additions and 39 deletions
|
@ -324,7 +324,7 @@ class chat extends module{
|
|||
$counter++;
|
||||
}
|
||||
if(isset($_POST['room']) && $_POST['room']!=""){
|
||||
if($_POST['room']!='Chitchat' || $session->userdata['rp_admin']==1){
|
||||
if($_POST['room']!='Chitchat' || $session->userdata['chatrights']>=50){
|
||||
$log=$db->query("SELECT * FROM `ptc_chatlog` WHERE `room`='".$db->escape($_POST['room'])."'".$date.$cd." ORDER BY `timestamp`");
|
||||
while($rowl=$db->fetch_array($log)){
|
||||
$rowl['date']=date('H:i:s',$rowl['timestamp']);
|
||||
|
@ -368,7 +368,7 @@ class chat extends module{
|
|||
$rooms='';
|
||||
$result=$db->query("SELECT `room` FROM `ptc_chatlog` GROUP BY `room`");
|
||||
while($row=$db->fetch_array($result)){
|
||||
if($session->userdata['rp_admin']==0 && $row['room']=='Chitchat'){
|
||||
if($session->userdata['chatrights']<50 && $row['room']=='Chitchat'){
|
||||
continue;
|
||||
}
|
||||
if($_POST['room']==$row['room']){
|
||||
|
@ -396,7 +396,7 @@ class chat extends module{
|
|||
if($session->userdata['uid']==0){
|
||||
$core->message('Sorry', "You have to be logged in to participate.");
|
||||
}else{
|
||||
if(!$session->userdata['rp_admin']=='1'){
|
||||
if(!$session->userdata['chatrights']>=50){
|
||||
$core->message('Sorry', "Can't touch this.");
|
||||
}else{
|
||||
if($_GET['uid']==''){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue