mirror of
https://github.com/znc/znc.git
synced 2026-05-07 22:04:46 +02:00
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:
@@ -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 "<password>" ?><? 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>
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
<? AddRow CSSLoop HREF=/modfiles/global/webadmin/webadmin.css ?>
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<script>
|
||||
var CTCPEdit = <? VAR CTCPEdit ?>;
|
||||
</script>
|
||||
|
||||
<form action="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?><? IF Edit ?>edituser<? ELSE ?>adduser<? ENDIF ?>" method="post">
|
||||
<? INC _csrf_check.tmpl ?>
|
||||
<div class="section">
|
||||
@@ -79,7 +83,8 @@
|
||||
<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 "The Ident is sent to server as username." ?>"/>
|
||||
title="<? FORMAT "The Ident is sent to server as username." ?>"
|
||||
<? IF !IdentEdit ?>readonly<? ENDIF ?> />
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel"><label for="statusprefix"><? FORMAT "Status Prefix:" ?></label></div>
|
||||
@@ -90,7 +95,7 @@
|
||||
<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>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
@@ -111,7 +116,8 @@
|
||||
<div class="subsection">
|
||||
<div class="inputlabel"><label for="quitmsg"><? FORMAT "Quit Message:" ?></label></div>
|
||||
<input 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 style="clear: both;"></div>
|
||||
</div>
|
||||
@@ -126,14 +132,20 @@
|
||||
<table class="sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<? IF NetworkEdit ?>
|
||||
<td class="ignore-sort">[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>addnetwork?user=<? VAR Username ESC=URL ?>"><? FORMAT "Add" ?></a>]</td>
|
||||
<? ELSE ?>
|
||||
<td class="ignore-sort"> </td>
|
||||
<? ENDIF ?>
|
||||
<? IF NetworkLoop ?>
|
||||
<th><? FORMAT "Name" ?></th>
|
||||
<th><? FORMAT "Clients" ?></th>
|
||||
<th><? FORMAT "Current Server" ?></th>
|
||||
<th><? FORMAT "Nick" ?></th>
|
||||
<? ELSE ?>
|
||||
<? IF NetworkEdit ?>
|
||||
<td><? FORMAT "← Add a network (opens in same page)" ?></td>
|
||||
<? ENDIF ?>
|
||||
<? ENDIF ?>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -143,7 +155,8 @@
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td>
|
||||
<input type="hidden" name="network" value="<? VAR Name ?>" />
|
||||
[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>editnetwork?user=<? VAR Username ESC=URL ?>&network=<? VAR Name ESC=URL ?>"><? FORMAT "Edit" ?></a>] [<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>delnetwork?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>"><? FORMAT "Del" ?></a>]
|
||||
[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>editnetwork?user=<? VAR Username ESC=URL ?>&network=<? VAR Name ESC=URL ?>"><? FORMAT "Edit" ?></a>]
|
||||
<? IF NetworkEdit ?>[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>delnetwork?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>"><? FORMAT "Del" ?></a>]<? ENDIF ?>
|
||||
</td>
|
||||
<td><? VAR Name ?></td>
|
||||
<td><? VAR Clients ?></td>
|
||||
@@ -202,7 +215,7 @@
|
||||
checked="checked"
|
||||
<? ENDIF ?>
|
||||
disabled="disabled"/>
|
||||
<? ENDIF ?>
|
||||
<? ENDIF ?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<? IF CanBeLoadedByNetwork ?>
|
||||
@@ -346,12 +359,14 @@
|
||||
<tr>
|
||||
<th><? FORMAT "Request" ?></th>
|
||||
<th><? FORMAT "Response" ?></th>
|
||||
<? IF CTCPEdit ?>
|
||||
<th/>
|
||||
<? ENDIF ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="ctcpreplies_tbody"/>
|
||||
</table>
|
||||
<input type="button" value="<? FORMAT "Add" ?>" id="ctcpreplies_add"/>
|
||||
<? IF CTCPEdit ?><input type="button" value="<? FORMAT "Add" ?>" id="ctcpreplies_add"/><? ENDIF ?>
|
||||
<span class="info"><? FORMAT "{1} are available" "Substitutions_Link ESC=" ?></span>
|
||||
<datalist id="ctcpreplies_list">
|
||||
<option value="PING"/>
|
||||
|
||||
Reference in New Issue
Block a user