|
|
|
@ -2156,7 +2156,7 @@ if ( defined('HESK_DEMO') )
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- NuMods: Denied Parties -->
|
|
|
|
|
<!-- NuMods: IP/Email Bans -->
|
|
|
|
|
<div class="tab-pane fade in" id="ipEmailBans">
|
|
|
|
|
<h6 style="font-weight: bold"><?php echo $hesklang['ip_bans']; ?></h6>
|
|
|
|
|
<div class="footerWithBorder blankSpace"></div>
|
|
|
|
@ -2174,9 +2174,9 @@ if ( defined('HESK_DEMO') )
|
|
|
|
|
$ipRs= hesk_dbQuery('SELECT * FROM `'.$hesk_settings['db_pfix'].'denied_ips`');
|
|
|
|
|
while ($row = $ipRs->fetch_assoc()) {
|
|
|
|
|
echo '<tr id="trIp'.$row['ID'].'">';
|
|
|
|
|
echo '<td><input type="checkbox" name="ipDelete'.$row['ID'].'" onclick="toggleRow(\'trIp'.$row['ID'].'\')"></td>';
|
|
|
|
|
echo '<td><input type="text" name="ipFrom'.$row['ID'].'" placeholder="'.$hesklang['from'].'" class="form-control" value="'.$row['RangeStart'].'"></td>';
|
|
|
|
|
echo '<td><input type="text" name="ipTo'.$row['ID'].'" placeholder="'.$hesklang['ip_to'].'" class="form-control" value="'.$row['RangeEnd'].'"></td>';
|
|
|
|
|
echo '<td><input type="checkbox" name="ipDelete['.$row['ID'].']" onclick="toggleRow(\'trIp'.$row['ID'].'\')"></td>';
|
|
|
|
|
echo '<td><input type="text" name="ipFrom['.$row['ID'].']" placeholder="'.$hesklang['from'].'" class="form-control" value="'.$row['RangeStart'].'"></td>';
|
|
|
|
|
echo '<td><input type="text" name="ipTo['.$row['ID'].']" placeholder="'.$hesklang['ip_to'].'" class="form-control" value="'.$row['RangeEnd'].'"></td>';
|
|
|
|
|
echo '</tr>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -2200,29 +2200,29 @@ if ( defined('HESK_DEMO') )
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
|
<table class="table table-hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th><?php echo $hesklang['delete']; ?></th>
|
|
|
|
|
<th><?php echo $hesklang['email']; ?></th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th><?php echo $hesklang['delete']; ?></th>
|
|
|
|
|
<th><?php echo $hesklang['email']; ?></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<?php
|
|
|
|
|
$emailRs = hesk_dbQuery('SELECT * FROM `'.$hesk_settings['db_pfix'].'denied_emails`');
|
|
|
|
|
while ($row = $emailRs->fetch_assoc()) {
|
|
|
|
|
echo '<tr id="trEmail'.$row['ID'].'">';
|
|
|
|
|
echo '<td><input type="checkbox" name="emailDelete'.$row['ID'].'" onclick="toggleRow(\'trEmail'.$row['ID'].'\')"></td>';
|
|
|
|
|
echo '<td><input type="text" name="email'.$row['ID'].'" class="form-control" placeholder="'.$hesklang['email'].'" value="'.$row['Email'].'"></td>';
|
|
|
|
|
echo '</tr>';
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<?php
|
|
|
|
|
$emailRs = hesk_dbQuery('SELECT * FROM `'.$hesk_settings['db_pfix'].'denied_emails`');
|
|
|
|
|
while ($row = $emailRs->fetch_assoc()) {
|
|
|
|
|
echo '<tr id="trEmail'.$row['ID'].'">';
|
|
|
|
|
echo '<td><input type="checkbox" name="emailDelete['.$row['ID'].']" onclick="toggleRow(\'trEmail'.$row['ID'].'\')"></td>';
|
|
|
|
|
echo '<td><input type="text" name="email['.$row['ID'].']" class="form-control" placeholder="'.$hesklang['email'].'" value="'.$row['Email'].'"></td>';
|
|
|
|
|
echo '</tr>';
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<!-- Add new email -->
|
|
|
|
|
<tr class="info">
|
|
|
|
|
<td><b><?php echo $hesklang['addNew']; ?></b></td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type="text" name="addEmail" class="form-control" placeholder="<?php echo $hesklang['email']; ?>">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<!-- Add new email -->
|
|
|
|
|
<tr class="info">
|
|
|
|
|
<td><b><?php echo $hesklang['addNew']; ?></b></td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type="text" name="addEmail" class="form-control" placeholder="<?php echo $hesklang['email']; ?>">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|