<?php
-require_once "../common.php";
-require_once "../header.php";
+require_once "../inc/common.php";
+require_once "../inc/connection.php";
+require_once "../inc/header.php";
if ($uplink = $rpc->server()->get())
IRCList::setmodes($uplink->server->features->chanmodes);
?>
<title><?php echo $title; ?></title>
<h6><?php echo $title; ?></h6>
-<br>
<form method="get" action="details.php">
</div>
</form>
<?php if (!$channelObj)
- return; ?>
+{
+ require_once("../inc/footer.php");
+ return;
+}
+?>
<!-- Modal for Add Ban -->
<div class="modal fade" id="ban" tabindex="-1" role="dialog" aria-labelledby="confirmModalCenterTitle" aria-hidden="true">
</label>
</div>
<div class="input-group mb-3">
- <label for="bantype_sel_type">Ban Type
+ <label for="bantype_sel_type">Ban Type <small>Leave this blank for a "normal" ban</small>
<select class="form-control" name="bantype_sel_type" id="bantype_sel_type">
<option></option>
<option>Match Account</option>
</div>
<div class="modal-body">
<form method="post">
-
<?php generate_edit_chmodes($channelObj); ?>
-
- </div>
- <div class="modal-footer">
<input type="hidden" id="server" name="add_chex" value="e"></input>
<button id="CloseButton" type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="submit" action="post" class="btn btn-danger">Update</button>
$('.nav-tabs a[href="#chanmodes"]').tab('show')
</script>
<?php
-require_once("../footer.php");
+require_once("../inc/footer.php");