Add more deny options

DenySetIdent - Denies setting ident

DenySetNetwork - Denies adding/removing networks/servers

DenySetRealName - Denies setting realname

DenySetQuitMsg - Denies setting quitmsg

DenySetCTCPReplies - Denies adding/removing CTCP replies
This commit is contained in:
Bradley Shaw
2021-06-26 15:21:34 +01:00
parent 688645413c
commit fe475e1ef0
8 changed files with 452 additions and 91 deletions
@@ -3,6 +3,10 @@
<? AddRow CSSLoop HREF=/modfiles/global/webadmin/webadmin.css ?>
<? INC Header.tmpl ?>
<script>
var NetworkEdit = <? VAR NetworkEdit ?>;
</script>
<div class="section">
<? IF Edit ?>
<? SETBLOCK ClientConnectHint_Password ?><? VAR Username ?>/<? VAR Name ?>:<? FORMAT "&lt;password&gt;" ?><? ENDSETBLOCK ?>
@@ -28,7 +32,7 @@
<div class="subsection">
<div class="inputlabel"><label for="name"><? FORMAT "Network Name:" ?></label></div>
<input id="name" type="text" name="name" value="<? VAR Name ?>" class="half" maxlength="128"
title="<? FORMAT "The name of the IRC network." ?>"/>
title="<? FORMAT "The name of the IRC network." ?>" <? IF !NameEdit ?>readonly<? ENDIF ?> />
</div>
<div class="subsection">
@@ -45,12 +49,12 @@
<div class="subsection">
<div class="inputlabel"><label for="ident"><? FORMAT "Ident:" ?></label></div>
<input id="ident" type="text" name="ident" value="<? VAR Ident ?>" class="half" maxlength="128"
title="<? FORMAT "Your ident." ?>"/>
title="<? FORMAT "Your ident." ?>" <? IF !IdentEdit ?>readonly<? ENDIF ?> />
</div>
<div class="subsection">
<div class="inputlabel"><label for="realname"><? FORMAT "Realname:" ?></label></div>
<input id="realname" type="text" name="realname" value="<? VAR RealName ?>" class="full" maxlength="256"
title="<? FORMAT "Your real name." ?>"/>
title="<? FORMAT "Your real name." ?>" <? IF !RealNameEdit ?>readonly<? ENDIF ?> />
</div>
<? IF BindHostEdit ?>
@@ -64,7 +68,8 @@
<div class="subsection">
<div class="inputlabel"><label for="quitmsg"><? FORMAT "Quit Message:" ?></label></div>
<input id="quitmsg" type="text" name="quitmsg" value="<? VAR QuitMsg ?>" class="full" maxlength="256"
title="<? FORMAT "You may define a Message shown, when you quit IRC." ?>"/>
title="<? FORMAT "You may define a Message shown, when you quit IRC." ?>"
<? IF !QuitMsgEdit ?>readonly<? ENDIF ?> />
</div>
<div class="subsection">
@@ -102,12 +107,16 @@
<th><? FORMAT "Port" ?></th>
<th><? FORMAT "SSL" ?></th>
<th><? FORMAT "Password" ?></th>
<? IF NetworkEdit ?>
<th/>
<? ENDIF ?>
</tr>
</thead>
<tbody id="servers_tbody"/>
</table>
<? IF NetworkEdit ?>
<input type="button" value="Add" id="servers_add"/>
<? ENDIF ?>
</div>
</div>
<script type="text/javascript">serverlist_init(jQuery);</script>