]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - channels/details.php
Add a `Plugins` overview card
[irc/unrealircd/unrealircd-webpanel.git] / channels / details.php
index ff118b17aa3a3833475fc82256c68101c572fc84..46d33215cbaa3ff06f7073652de495886573df76 100644 (file)
@@ -1,7 +1,7 @@
 <?php
-require_once "../common.php";
-require_once "../connection.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);
@@ -208,7 +208,6 @@ if (!empty($_POST))
 ?>
 <title><?php echo $title; ?></title>
 <h6><?php echo $title; ?></h6>
-<br>
 
 
 <form method="get" action="details.php">
@@ -220,7 +219,11 @@ if (!empty($_POST))
        </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">
@@ -255,7 +258,7 @@ if (!empty($_POST))
                                </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>
@@ -401,11 +404,7 @@ if (!empty($_POST))
                </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>
@@ -563,5 +562,5 @@ if ($topicset)
 $('.nav-tabs a[href="#chanmodes"]').tab('show')
 </script>
 <?php 
-require_once("../footer.php");
+require_once("../inc/footer.php");