Added Webskin "znc-ation"

This commit is contained in:
Jens-Andre Koch
2012-03-23 12:20:45 +01:00
parent 2f853bee61
commit 92ec938150
49 changed files with 1137 additions and 100 deletions

View File

@@ -14,23 +14,27 @@
<? IF !Edit ?>
<div class="subsection half">
<div class="inputlabel">Channel Name:</div>
<div><input type="text" name="name" value="" /></div>
<input type="text" name="name" value=""
title="The channel name." />
</div>
<? ENDIF ?>
<div class="subsection">
<div class="inputlabel">Key:</div>
<div><input type="text" name="key" value="<? VAR Key ?>" size="10" /></div>
<input type="text" name="key" value="<? VAR Key ?>" size="10"
title="The password of the channel, if there is one." />
</div>
<div class="subsection">
<div class="inputlabel">Buffer Count:</div>
<div><input type="number" name="buffercount" value="<? VAR BufferCount ?>" size="10" min="0" /></div>
<input type="number" name="buffercount" value="<? VAR BufferCount ?>" size="10" min="0"
title="The buffer count." />
</div>
<div class="subsection">
<div class="inputlabel">Default Modes:</div>
<div><input type="text" name="defmodes" value="<? VAR DefModes ?>" size="10" /></div>
<input type="text" name="defmodes" value="<? VAR DefModes ?>" size="10"
title="The default modes of the channel." />
</div>
</div>
@@ -70,4 +74,4 @@
</div>
</form>
<? INC Footer.tmpl ?>
<? INC Footer.tmpl ?>

View File

@@ -20,28 +20,31 @@
<? IF !Edit ?>
<div class="subsection">
<div class="inputlabel">Network Name:</div>
<div>
<input type="text" name="network" value="<? VAR Name ?>" class="half" maxlength="128" />
<input type="text" name="network" value="<? VAR Name ?>" class="half" maxlength="128"
title="The name of the IRC network." />
</div>
</div>
<? ENDIF ?>
<div class="subsection">
<div class="inputlabel">Nickname:</div>
<div><input type="text" name="nick" value="<? VAR Nick ?>" class="half" maxlength="128" /></div>
<input type="text" name="nick" value="<? VAR Nick ?>" class="half" maxlength="128"
title="Your nickname on IRC." />
</div>
<div class="subsection">
<div class="inputlabel">Alt. Nickname:</div>
<div><input type="text" name="altnick" value="<? VAR AltNick ?>" class="half" maxlength="128" /></div>
<input type="text" name="altnick" value="<? VAR AltNick ?>" class="half" maxlength="128"
title="Your secondary nickname, if the first is not available on IRC." />
</div>
<div style="clear: both;"></div>
<div class="subsection">
<div class="inputlabel">Ident:</div>
<div><input type="text" name="ident" value="<? VAR Ident ?>" class="half" maxlength="128" /></div>
<input type="text" name="ident" value="<? VAR Ident ?>" class="half" maxlength="128"
title="Your ident." />
</div>
<div class="subsection">
<div class="inputlabel">Realname:</div>
<div><input type="text" name="realname" value="<? VAR RealName ?>" class="full" maxlength="256" /></div>
<input type="text" name="realname" value="<? VAR RealName ?>" class="full" maxlength="256"
title="Your real name." />
</div>
<div class="subsection">
@@ -76,6 +79,8 @@
<div class="inputlabel">Flood protection:</div>
<div class="checkbox">
<input type="checkbox" name="floodprotection" id="floodprotection_checkbox"
title="You might enable the flood protection.
This prevents "excess flood" errors, which occur, when your IRC bot is command flooded or spammed."
onchange="floodprotection_change();"
<? IF FloodProtection ?>checked="checked"<? ENDIF ?> />
<label for="floodprotection_checkbox">Enabled</label>
@@ -83,14 +88,18 @@
</div>
<div class="subsection">
<div class="inputlabel">Flood protection rate:</div>
<div><input type="number" name="floodrate" min="0.3" step="0.05" id="floodrate"
<? IF FloodProtection ?> value="<? VAR FloodRate ?>" <? ELSE ?> value="1.00" <? ENDIF ?> /> seconds per line</div>
<input type="number" name="floodrate" min="0.3" step="0.05" id="floodrate"
title="The number of seconds per line."
<? IF FloodProtection ?> value="<? VAR FloodRate ?>" <? ELSE ?> value="1.00" disabled="disabled" <? ENDIF ?>
/> seconds per line
</div>
<div class="subsection">
<div class="inputlabel">Flood protection burst:</div>
<div><input type="number" name="floodburst" min="1" id="floodburst"
<? IF FloodProtection ?> value="<? VAR FloodBurst ?>" <? ELSE ?> value="4" <? ENDIF ?> /> lines can be send immediately</div>
<input type="number" name="floodburst" min="1" id="floodburst"
title="Defines the number of lines, which can immediately be send."
<? IF FloodProtection ?> value="<? VAR FloodBurst ?>" <? ELSE ?> value="4" disabled="disabled" <? ENDIF ?>
/> lines can be send immediately
</div>
<script type="text/javascript">floodprotection_change();</script>
<div style="clear: both;"></div>

View File

@@ -10,7 +10,7 @@
<div class="sectionbody">
<div class="subsection">
<div class="inputlabel">Username:</div>
<div>
<? IF Clone ?>
<input type="hidden" name="clone" value="<? VAR CloneUsername ?>" />
<? ENDIF ?>
@@ -18,23 +18,26 @@
<input type="hidden" name="user" value="<? VAR Username ?>" />
<input type="text" name="newuser" value="<? VAR Username ?>" class="half" maxlength="128" disabled="disabled" />
<? ELSE ?>
<input type="text" name="user" value="<? VAR Username ?>" class="half" maxlength="128" />
<input type="text" name="user" value="<? VAR Username ?>" class="half" maxlength="128"
title="Please enter a username." />
<? ENDIF ?>
</div>
</div>
<div class="subsection">
<div class="inputlabel">Password:</div>
<div><input type="password" name="password" class="half" /></div>
<input type="password" name="password" class="half"
title="Please enter a password." />
</div>
<div class="subsection">
<div class="inputlabel">Confirm password:</div>
<div><input type="password" name="password2" class="half" /></div>
<input type="password" name="password2" class="half"
title="Please re-type the above password." />
</div>
<div class="subsection half">
<div class="inputlabel">Allowed IPs:</div>
<div><textarea name="allowedips" cols="70" rows="5"><? LOOP AllowedHostLoop ?><? VAR Host ?>
<textarea name="allowedips" cols="70" rows="5"><? LOOP AllowedHostLoop ?><? VAR Host ?>
<? ENDLOOP ?>
</textarea></div>
</textarea>
<br /><span class="info">Leave empty to allow connections from all IPs.<br />
Otherwise, one entry per line, wildcards * and ? are available.</span>
</div>
@@ -52,25 +55,30 @@
<div class="sectionbody">
<div class="subsection">
<div class="inputlabel">Nickname:</div>
<div><input type="text" name="nick" value="<? VAR Nick ?>" class="half" maxlength="128" /></div>
<input type="text" name="nick" value="<? VAR Nick ?>" class="half" maxlength="128"
title="This will be your nickname on IRC." />
</div>
<div class="subsection">
<div class="inputlabel">Alt. Nickname:</div>
<div><input type="text" name="altnick" value="<? VAR AltNick ?>" class="half" maxlength="128" /></div>
<input type="text" name="altnick" value="<? VAR AltNick ?>" class="half" maxlength="128"
title="If the nickname above is not available anymore, then this will be your nickname on IRC." />
</div>
<div style="clear: both;"></div>
<div class="subsection">
<div class="inputlabel">Ident:</div>
<div><input type="text" name="ident" value="<? VAR Ident ?>" class="half" maxlength="128" /></div>
<input type="text" name="ident" value="<? VAR Ident ?>" class="half" maxlength="128"
title="The Ident identifies you as one specific user of your host." />
</div>
<div class="subsection">
<div class="inputlabel">StatusPrefix:</div>
<div><input type="text" name="statusprefix" value="<? VAR StatusPrefix ?>" class="half" maxlength="5" /></div>
<input type="text" name="statusprefix" value="<? VAR StatusPrefix ?>" class="half" maxlength="5"
title="This defines the prefix for the status and module queries." />
</div>
<div style="clear: both;"></div>
<div class="subsection">
<div class="inputlabel">Realname:</div>
<div><input type="text" name="realname" value="<? VAR RealName ?>" class="full" maxlength="256" /></div>
<input type="text" name="realname" value="<? VAR RealName ?>" class="full" maxlength="256"
title="The real name of the user." />
</div>
<div style="clear: both;"></div>
@@ -98,7 +106,8 @@
<div class="subsection">
<div class="inputlabel">Quit Message:</div>
<div><input type="text" name="quitmsg" value="<? VAR QuitMsg ?>" class="full" maxlength="256" /></div>
<input type="text" name="quitmsg" value="<? VAR QuitMsg ?>" class="full" maxlength="256"
title="You may define a Message shown, when you quit IRC." />
</div>
<div style="clear: both;"></div>
</div>
@@ -161,7 +170,13 @@
<input type="checkbox" name="loadmod" id="lm_<? VAR Name ?>" value="<? VAR Name ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ?>"> <? IF Wiki ?><a href="http://wiki.znc.in/<? VAR Wiki ?>"><? VAR Name ?></a> <? ELSE ?> <? VAR Name ?> <? ENDIF ?></label>
</td>
<td class="mod_args">
<? IF Disabled ?><? VAR Args ?><? ELSE ?><input class="third" type="text" name="modargs_<? VAR Name ?>" value="<? VAR Args ?>" /><? ENDIF ?>
<? IF Disabled ?>
<? VAR Args ?>
<? ELSE ?>
<input class="third" type="text" name="modargs_<? VAR Name ?>" value="<? VAR Args ?>"
<? IF !HasArgs ?> disabled="disabled"<? ENDIF ?>
<? IF ArgsHelpText ?> title="<? VAR ArgsHelpText ?>"<? ENDIF ?> />
<? ENDIF ?>
</td>
<td class="mod_descr"><? VAR Description ?></td>
</tr>
@@ -179,12 +194,15 @@
<div class="sectionbody">
<div class="subsection third">
<div class="inputlabel">Modes:</div>
<div><input type="text" name="chanmodes" value="<? VAR DefaultChanModes ?>" maxlength="32" /></div>
<input type="text" name="chanmodes" value="<? VAR DefaultChanModes ?>" maxlength="32"
title="These are the default modes ZNC will set when you join an empty channel." />
<br /><span class="info">Empty = use standard value</span>
</div>
<div class="subsection third">
<div class="inputlabel">Buffer Size:</div>
<div><input type="number" name="bufsize" value="<? VAR BufferCount ?>" min="0" /></div>
<input type="number" name="bufsize" value="<? VAR BufferCount ?>" min="0"
title="This is the amount of lines that the playback buffer will store before dropping off the oldest line.
The buffers are stored in the memory by default." />
<br /><span class="info">Empty = use standard value</span>
</div>
</div>
@@ -213,22 +231,24 @@
<div class="sectionbody">
<div class="subsection">
<div class="inputlabel">Timestamp Format:</div>
<div><input type="text" name="timestampformat" value="<? VAR TimestampFormat ?>" class="full" /></div>
<input type="text" name="timestampformat" value="<? VAR TimestampFormat ?>" class="full"
title="The format for the timestamps used in buffers, for example [%H:%M:%S]." />
</div>
<div class="subsection">
<div class="inputlabel">Timezone:</div>
<div>
<input type="text" name="timezone" value="<? VAR Timezone ?>" class="half" list="timezone_list" />
<datalist id="timezone_list">
<? LOOP TZLoop ?>
<option value="<? VAR TZ ?>"/>
<? ENDLOOP ?>
</datalist>
</div>
<input type="text" name="timezone" value="<? VAR Timezone ?>" class="half" list="timezone_list"
title="Select your timezone." />
<datalist id="timezone_list">
<? LOOP TZLoop ?>
<option value="<? VAR TZ ?>"/>
<? ENDLOOP ?>
</datalist>
</div>
<div class="subsection">
<div class="inputlabel">Join Tries:</div>
<div><input type="number" name="jointries" value="<? VAR JoinTries ?>" class="third" min="0" /></div>
<input type="number" name="jointries" value="<? VAR JoinTries ?>" class="third" min="0"
title="This defines how often ZNC tries to join, if the first join failed,
e.g. due to channel mode +i/+k or if you're banned." />
</div>
<div class="subsection half">
<div class="inputlabel">CTCP Replies:</div>
@@ -239,7 +259,7 @@
</div>
<div class="subsection">
<div class="inputlabel">Skin:</div>
<div>
<? IF SkinLoop ROWS > 1 ?>
<select name="skin">
<option value="">- Global -</option>
@@ -250,7 +270,7 @@
<? ELSE ?>
No other skins found
<? ENDIF ?>
</div>
</div>
<div style="clear: both;"></div>
</div>

View File

@@ -1,10 +1,8 @@
<? INC Header.tmpl ?>
<div class="textsection">
<p>Welcome to the ZNC webadmin module. All changes you make will be in effect immediately after
you submitted them.</p>
<p>Welcome to the ZNC webadmin module.<br/>
All changes you make will be in effect immediately after you submitted them.</p>
</div>
<? INC Footer.tmpl ?>
<? INC Footer.tmpl ?>

View File

@@ -9,7 +9,7 @@
<div class="sectionbg">
<div class="sectionbody">
<div class="subsection">
<div>
<table>
<thead>
<tr>
@@ -36,9 +36,9 @@
<? ENDLOOP ?>
</tbody>
</table>
</div>
</div>
<div style="clear: both;"></div>
</div>
</div>
</div>
@@ -49,70 +49,78 @@
<div class="sectionbody">
<div class="subsection">
<div class="inputlabel">Skin:</div>
<div>
<select name="skin">
<? LOOP SkinLoop ?>
<option value="<? VAR Name ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? IF Name == "_default_" ?>Default<? ELSE ?><? VAR Name ?><? ENDIF ?></option>
<? ENDLOOP ?>
</select>
</div>
</div>
<div style="clear: both;"></div>
<div class="subsection third">
<div class="inputlabel">Status Prefix:</div>
<div><input type="text" name="statusprefix" value="<? VAR StatusPrefix ?>" /></div>
<input type="text" name="statusprefix" value="<? VAR StatusPrefix ?>"
title="The prefix for the status and module queries."/>
<br /><span class="info">Default for new users only.</span>
</div>
<div style="clear: both;"></div>
<div class="subsection half">
<div class="inputlabel">Maximum Buffer Size:</div>
<div><input type="text" name="maxbufsize" value="<? VAR MaxBufferSize ?>" /></div>
<input type="text" name="maxbufsize" value="<? VAR MaxBufferSize ?>"
title="Sets the global Max Buffer Size a user can have."/>
</div>
<div style="clear: both;"></div>
<div class="subsection half">
<div class="inputlabel">Connect Delay:</div>
<div><input type="text" name="connectdelay" value="<? VAR ConnectDelay ?>" /></div>
<input type="text" name="connectdelay" value="<? VAR ConnectDelay ?>"
title="The time every connection will be delayed, in seconds.
Some servers refuse your connection if you reconnect too fast.
This affects the connection between ZNC and the IRC server;
not the connection between your IRC client and ZNC. "/>
</div>
<div style="clear: both;"></div>
<div class="subsection half">
<div class="inputlabel">Server Throttle:</div>
<div><input type="text" name="serverthrottle" value="<? VAR ServerThrottle ?>" /></div>
<input type="text" name="serverthrottle" value="<? VAR ServerThrottle ?>"
title="The time between two connect attempts to the same hostname." />
</div>
<div style="clear: both;"></div>
<div class="subsection half">
<div class="inputlabel">Anonymous IP Limit:</div>
<div><input type="text" name="anoniplimit" value="<? VAR AnonIPLimit ?>" /></div>
<input type="text" name="anoniplimit" value="<? VAR AnonIPLimit ?>"
title="Limits the number of unidentified connections per IP." />
</div>
<div style="clear: both;"></div>
<div class="subsection">
<div class="inputlabel">Protect Web Sessions:</div>
<div class="checkbox"><input type="checkbox" name="protectwebsessions" id="protectwebsessions_checkbox"<? IF ProtectWebSessions ?> checked="checked"<? ENDIF ?> />
<label for="protectwebsessions_checkbox">Disallow IP changing during each web session</label></div>
</div>
<div style="clear: both;"></div>
<div class="subsection twothird">
<div class="inputlabel">MOTD:</div>
<div><textarea name="motd" cols="70" rows="5" class="monospace"><? LOOP MOTDLoop ?><? VAR Line ?>
<textarea name="motd" cols="70" rows="5" class="monospace"><? LOOP MOTDLoop ?><? VAR Line ?>
<? ENDLOOP ?>
</textarea></div>
</textarea>
<br /><span class="info">"Message of the Day", sent to all ZNC users on connect.</span>
</div>
<div class="subsection twothird">
<div class="inputlabel">BindHosts:</div>
<div><textarea name="bindhosts" cols="70" rows="8"><? LOOP BindHostLoop ?><? VAR BindHost ?>
<textarea name="bindhosts" cols="70" rows="8"><? LOOP BindHostLoop ?><? VAR BindHost ?>
<? ENDLOOP ?>
</textarea></div>
</textarea>
<br /><span class="info">One host name or IP entry per line.</span>
</div>
<div style="clear: both;"></div>
</div>
</div>
</div>
@@ -132,8 +140,19 @@
<tbody>
<? LOOP ModuleLoop ?>
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
<td class="mod_name"><input type="checkbox" name="loadmod" id="lm_<? VAR Name ?>" value="<? VAR Name ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ?>"> <? IF Wiki ?> <a href="http://wiki.znc.in/<? VAR Wiki ?>"><? VAR Name ?></a> <? ELSE ?> <? VAR Name ?> <? ENDIF ?></label></td>
<td class="mod_args"><input type="text" name="modargs_<? VAR Name ?>" value="<? VAR Args ?>" /></td>
<td class="mod_name">
<input type="checkbox" name="loadmod" id="lm_<? VAR Name ?>" value="<? VAR Name ?>"
<? IF Checked ?> checked="checked"<? ENDIF ?>
<? IF Disabled ?> disabled="disabled"<? ENDIF ?> />
<label for="lm_<? VAR Name ?>">
<? IF Wiki ?><a href="http://wiki.znc.in/<? VAR Wiki ?>"><? VAR Name ?></a>
<? ELSE ?> <? VAR Name ?> <? ENDIF ?></label>
</td>
<td class="mod_args">
<input type="text" name="modargs_<? VAR Name ?>" value="<? VAR Args ?>"
<? IF !HasArgs ?> disabled="disabled"<? ENDIF ?>
<? IF ArgsHelpText ?> title="<? VAR ArgsHelpText ?>"<? ENDIF ?> />
</td>
<td class="mod_descr"><? VAR Description ?></td>
</tr>
<? ENDLOOP ?>
@@ -148,4 +167,4 @@
</div>
</form>
<? INC Footer.tmpl ?>
<? INC Footer.tmpl ?>