Why are we saving this spam? Lets not.
scp/tickets.php
Remove:
case 'banemail':
if(!$thisuser->isadmin() && !$thisuser->canManageBanList()){
$errors='Perm. Denied. You are not allowed to ban emails';
}elseif(Banlist:($ticket->getEmail(),$thisuser->getName())){
$page='tickets.inc.php'; //ticket is gone...go back to the listing.
$msg='Email added to banlist';
if($ticket->isOpen() && $ticket->close())
$msg.=' & ticket status set to closed';
}else{
$errors='Unable to add the email to banlist';
}
break;
Add:
case 'banemail':
if(!$thisuser->isadmin() && !$thisuser->canManageBanList()){
$errors='Perm. Denied. You are not allowed to ban emails';
}elseif(Banlist:($ticket->getEmail(),$thisuser->getName())){
$page='tickets.inc.php'; //ticket is gone...go back to the listing.
$msg='Email added to banlist';
if($ticket->delete()){
$page='tickets.inc.php'; //ticket is gone...go back to the listing.
$msg.=' & ticket deleted';
$ticket=null; //clear the object.
}else{
$errors='Problems deleting the ticket. Try again';
}
}
break;
include/staff/viewticket.inc.php
Change:
<option value="banemail" >Ban Email <?=$ticket->isOpen()?'& Close':''?></option>
To:
<option value="banemail" >Ban Email <?=$ticket->isOpen()?'& Delete':''?></option>