494 lines
25 KiB
Cheetah
494 lines
25 KiB
Cheetah
<? I18N znc-webadmin ?>
|
|
<? AddRow JSLoop HREF=/modfiles/global/webadmin/webadmin.js ?>
|
|
<? AddRow CSSLoop HREF=/modfiles/global/webadmin/webadmin.css ?>
|
|
|
|
<? INC Header.tmpl ?>
|
|
<form class="form-horizontal" action="<? VAR ModPath TOP ?><? IF Edit ?>edituser?user=<? VAR Username ?><? ELSE ?>adduser<? ENDIF ?>" method="post">
|
|
<? INC _csrf_check.tmpl ?>
|
|
<input type="hidden" name="submitted" value="1" />
|
|
<input name="userdummy" type="text" style="display: none"/>
|
|
<input name="passworddummy" type="password" style="display: none"/>
|
|
|
|
<div class="container col-md-10 col-md-offset-1">
|
|
<div class="panel with-nav-tabs panel-default">
|
|
<div class="panel-heading">
|
|
<ul class="nav nav-tabs">
|
|
<li class="active"><a href="#authtab" data-toggle="tab"><? FORMAT "Authentication" ?></a></li>
|
|
<li><a href="#ircinformationtab" data-toggle="tab"><? FORMAT "IRC Information" ?></a></li>
|
|
<li class="hidden-xs"><a href="#networkstab" data-toggle="tab"><? FORMAT "Networks" ?></a></li>
|
|
<li class="hidden-xs"><a href="#modulestab" data-toggle="tab"><? FORMAT "Modules" ?></a></li>
|
|
<li class="hidden-xs hidden-sm"><a href="#channelstab" data-toggle="tab"><? FORMAT "Channels" ?></a></li>
|
|
<li class="hidden-xs hidden-sm"><a href="#queriestab" data-toggle="tab"><? FORMAT "Queries" ?></a></li>
|
|
<li class="hidden-xs hidden-sm"><a href="#flagstab" data-toggle="tab"><? FORMAT "Flags" ?></a></li>
|
|
<li class="hidden-xs hidden-sm"><a href="#zncbehavetab" data-toggle="tab"><? FORMAT "ZNC Behavior" ?></a></li>
|
|
<li class="dropdown hidden-lg hidden-md">
|
|
<a href="#" data-toggle="dropdown">More <span class="caret"></span></a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li class="hidden-sm"><a href="#networkstab" data-toggle="tab"><? FORMAT "Networks" ?></a></li>
|
|
<li class="hidden-sm"><a href="#modulestab" data-toggle="tab"><? FORMAT "Modules" ?></a></li>
|
|
<li><a href="#channelsstab" data-toggle="tab"><? FORMAT "Channels" ?></a></li>
|
|
<li><a href="#queriesstab" data-toggle="tab"><? FORMAT "Queries" ?></a></li>
|
|
<li><a href="#flagstab" data-toggle="tab"><? FORMAT "Flags" ?></a></li>
|
|
<li><a href="#zncbehavetab" data-toggle="tab"><? FORMAT "ZNC Behavior" ?></a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
<div class="tab-content">
|
|
<!--Authentication -->
|
|
<div class="tab-pane fade in active" id="authtab">
|
|
|
|
|
|
<div class="form-group">
|
|
<label for="inputUsername" class="col-sm-2 control-label"><? FORMAT "Username:" ?></label>
|
|
<div class="col-sm-10">
|
|
<? IF Clone ?>
|
|
<input type="hidden" class="form-control" id="inputUsername" name="clone" value="<? VAR CloneUsername ?>" autocomplete="off" />
|
|
<? ENDIF ?>
|
|
|
|
<? IF Edit ?>
|
|
<input type="hidden" class="form-control" id="inputUsername" name="user" value="<? VAR Username ?>" autocomplete="off" />
|
|
<input type="text" class="form-control" id="inputUsername" name="newuser" value="<? VAR Username ?>" disabled="disabled" />
|
|
<? ELSE ?>
|
|
<input type="text" class="form-control" id="inputUsername" name="user" value="<? VAR Username ?>" placeholder="<? FORMAT "Please enter a username." ?>" autocomplete="off" />
|
|
<? ENDIF ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="inputPassword" class="col-sm-2 control-label"><? FORMAT "Password:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="password" class="form-control" id="inputPassword" name="password" placeholder="<? FORMAT "Please enter a password." ?>" autocomplete="off">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="inputPassword2" class="col-sm-2 control-label"><? FORMAT "Confirm password:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="password" class="form-control" id="inputPassword2" name="password2" placeholder="<? FORMAT "Please re-type the above password." ?>">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="authonlyviamodule" class="col-sm-2 control-label"><? FORMAT "Auth Only Via Module:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="checkbox" class="cmn-toggle cmn-toggle-round-flat" id="authonlyviamodule" name="authonlyviamodule" placeholder="<? FORMAT "Allow user authentication by external modules only, disabling built-in password authentication." ?>"<? IF AuthOnlyViaModule ?> checked="checked"<? ENDIF ?><? IF !ImAdmin ?> disabled="disabled"<? ENDIF ?> /> </div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="inputAllowedIP" class="col-sm-2 control-label"><? FORMAT "Allowed IPs:" ?></label>
|
|
<div class="col-sm-10">
|
|
<textarea class="form-control class="form-control" data-provide="markdown" id="inputAllowedIP" name="allowedips" cols="70" rows="5"><? LOOP AllowedHostLoop ?><? VAR Host ?>
|
|
<? ENDLOOP ?></textarea>
|
|
<div class="alert alert-info help-block"><? FORMAT "Leave empty to allow connections from all IPs.<br/>Otherwise, one entry per line, wildcards * and ? are available." ?></div>
|
|
</div>
|
|
</div>
|
|
</div><!-- Authentication -->
|
|
|
|
<!-- IRC Information -->
|
|
<div class="tab-pane fade" id="ircinformationtab">
|
|
<? IF !Edit ?>
|
|
<div class="alert alert-info"><? FORMAT "Nick, AltNick, Ident, RealName and QuitMsg can be left empty to use default values." ?></div>
|
|
<? ENDIF ?>
|
|
|
|
<div class="form-group">
|
|
<label for="inputNickname" class="col-sm-2 control-label"><? FORMAT "Nickname:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="inputNickname" name="nick" value="<? VAR Nick ?>" maxlength="30" placeholder="<? FORMAT "Your nickname on IRC." ?>">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="inputaltNickname" class="col-sm-2 control-label"><? FORMAT "Alt. Nickname:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="inputaltNickname" name="altnick" value="<? VAR AltNick ?>" maxlength="128" placeholder="<? FORMAT "Your secondary nickname, if the first is not available on IRC." ?>">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="inputIdent" class="col-sm-2 control-label"><? FORMAT "Ident:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="inputIdent" name="ident" value="<? VAR Ident ?>" maxlength="128" placeholder="<? FORMAT "The Ident is sent to server as username." ?>">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="inputStatusPrefix" class="col-sm-2 control-label"><? FORMAT "Status Prefix:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="inputStatusPrefix" name="statusprefix" value="<? VAR StatusPrefix ?>" maxlength="5" placeholder="<? FORMAT "The prefix for the status and module queries." ?>">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="inputRealname" class="col-sm-2 control-label"><? FORMAT "Realname:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="inputRealname" name="realname" value="<? VAR RealName ?>" maxlength="256" placeholder="<? FORMAT "Your real name." ?>">
|
|
</div>
|
|
</div>
|
|
|
|
<? IF BindHostEdit ?>
|
|
<div class="form-group">
|
|
<label for="inputBindHost" class="col-sm-2 control-label"><? FORMAT "BindHost:" ?></label>
|
|
<div class="col-sm-10">
|
|
<? IF BindHostLoop ?>
|
|
<select class="form-control" id="inputBindHost" name="bindhost">
|
|
<option>Default</option>
|
|
<? LOOP BindHostLoop ?><option value="<? VAR BindHost ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR BindHost ?></option><? ENDLOOP ?>
|
|
</select>
|
|
<? ELSE ?>
|
|
<input class="form-control" type="text" name="bindhost" value="<? VAR BindHost ?>"/>
|
|
<? ENDIF ?>
|
|
</div>
|
|
</div>
|
|
<? ENDIF ?>
|
|
<div class="form-group">
|
|
<label for="inputDCCBindHost" class="col-sm-2 control-label"><? FORMAT "DCCBindHost:" ?></label>
|
|
<div class="col-sm-10">
|
|
<? IF DCCBindHostLoop ?>
|
|
<select class="form-control" id="inputDCCBindHost" name="dccbindhost">
|
|
<option>Default</option>
|
|
<? LOOP DCCBindHostLoop ?><option value="<? VAR BindHost ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR BindHost ?></option><? ENDLOOP ?>
|
|
</select>
|
|
<? ELSE ?>
|
|
<input type="text" class="form-control" name="dccbindhost" value="<? VAR DCCBindHost ?>"/>
|
|
<? ENDIF ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="inputQuit" class="col-sm-2 control-label"><? FORMAT "Quit Message:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="inputQuit" name="quitmsg" value="<? VAR QuitMsg ?>" maxlength="256" placeholder="<? FORMAT "You may define a Message shown, when you quit IRC." ?>">
|
|
</div>
|
|
</div>
|
|
</div> <!-- IRC Information -->
|
|
|
|
<!-- Networks -->
|
|
<div class="tab-pane fade" id="networkstab">
|
|
<? IF Edit ?>
|
|
<table class="table table-bordered table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<td><a href="<? VAR ModPath TOP ?>addnetwork?user=<? VAR Username ESC=URL ?>" class="btn btn-default btn-xs"><? FORMAT "Add" ?></a></td>
|
|
<? IF NetworkLoop ?>
|
|
<td><? FORMAT "Name" ?></td>
|
|
<td><? FORMAT "Clients" ?></td>
|
|
<td><? FORMAT "Current Server" ?></td>
|
|
<td><? FORMAT "Nick" ?></td>
|
|
<? ELSE ?>
|
|
<td><? FORMAT "← Add a network (opens in same page)" ?></td>
|
|
<? ENDIF ?>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<? LOOP NetworkLoop SORTASC=Name ?>
|
|
<tr>
|
|
<td>
|
|
<input type="hidden" name="network" value="<? VAR Name ?>" />
|
|
<a href="<? VAR ModPath TOP ?>editnetwork?user=<? VAR Username ESC=URL ?>&network=<? VAR Name ESC=URL ?>" class="btn btn-primary btn-xs">Edit</a> <a href="delnetwork?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>" class="btn btn-danger btn-xs"><? FORMAT "Del" ?></a>
|
|
</td>
|
|
<td><? VAR Name ?></td>
|
|
<td><? VAR Clients ?></td>
|
|
<td><? VAR Server DEFAULT="-N/A-" ?></td>
|
|
<td><? VAR IRCNick ?></td>
|
|
</tr>
|
|
<? ENDLOOP ?>
|
|
</tbody>
|
|
</table>
|
|
<? ELSE ?>
|
|
<? IF Clone ?>
|
|
<span class="info"><? FORMAT "You will be able to add + modify networks here after you have cloned the user." ?></span><br />
|
|
<? ELSE ?>
|
|
<span class="info"><? FORMAT "You will be able to add + modify networks here after you have created the user." ?></span><br />
|
|
<? ENDIF ?>
|
|
<? ENDIF ?>
|
|
</div><!-- Networks -->
|
|
|
|
<!-- Modules -->
|
|
<div class="tab-pane fade" id="modulestab">
|
|
<? LOOP EmbeddedModuleLoop ?>
|
|
<? IF Embed ?>
|
|
<div class="form-group">
|
|
<label for="input<? VAR ModName ?>" class="col-sm-2 control-label"><? VAR ModName ?>:</label>
|
|
<div class="col-sm-10">
|
|
<? INC *Embed ?>
|
|
</div>
|
|
</div>
|
|
<? ENDIF ?>
|
|
<? ENDLOOP ?>
|
|
<table class="table table-bordered table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<td><? FORMAT "Status" ?></td>
|
|
<td><? FORMAT "Name" ?></td>
|
|
<td><? FORMAT "Arguments" ?></td>
|
|
<td><? FORMAT "Description" ?></td>
|
|
<td><? FORMAT "Loaded globally" ?></td>
|
|
<td><? FORMAT "Loaded by networks" ?></td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<? LOOP ModuleLoop ?>
|
|
<tr>
|
|
<td>
|
|
<div class="switch">
|
|
<input type="checkbox" name="loadmod" id="lm_<? VAR Name ?>" value="<? VAR Name ?>" class="cmn-toggle cmn-toggle-round-flat" value="<? VAR Name ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> />
|
|
<? IF Disabled ?>
|
|
<input type="hidden" name="loadmod" value="<? VAR Name ?>" value="<? VAR Name ?>"<? IF Checked ?> checked="checked"<? ENDIF ?> />
|
|
<? ENDIF ?>
|
|
<label for="lm_<? VAR Name ?>"></label>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<label for="lm_<? VAR Name ?>"> <? IF Wiki ?><a href="http://wiki.znc.in/<? VAR Wiki ?>" target="_blank"><? VAR Name ?></a> <? ELSE ?> <? VAR Name ?> <? ENDIF ?></label>
|
|
</td>
|
|
<td>
|
|
<? IF Disabled ?>
|
|
<? VAR Args ?>
|
|
<? ELSE ?>
|
|
<input class="third form-control" type="text" name="modargs_<? VAR Name ?>" value="<? VAR Args ?>"
|
|
<? IF !HasArgs ?> disabled="disabled"<? ENDIF ?>
|
|
<? IF ArgsHelpText ?> data-toggle="tooltip" data-placement="top" data-original-title="<? VAR ArgsHelpText ?>"<? ENDIF ?> />
|
|
<? ENDIF ?>
|
|
</td>
|
|
<td><? VAR Description ?></td>
|
|
<td>
|
|
<? IF CanBeLoadedGlobally ?>
|
|
<div class="checkboxSwitchMini">
|
|
<input type="checkbox" name="loaded_globally" id="loaded_globally_<? VAR Name ?>" value="<? VAR Name ?>"<? IF LoadedGloabally?> checked="checked" <? ENDIF ?> class="sr-only" disabled="disabled" /> <? ENDIF ?>
|
|
<label for="loaded_globally_<? VAR Name ?>"></label>
|
|
</div>
|
|
<? ENDIF ?>
|
|
</td>
|
|
<td>
|
|
<? IF CanBeLoadedByNetwork ?>
|
|
<div class="checkboxSwitchMini">
|
|
<input type="checkbox" name="loaded_by_network" id="loaded_by_net_<? VAR Name ?>" value="<? VAR Name ?>"<? IF LoadedByAllNetworks ?> checked="checked" <? ENDIF ?> class="sr-only" disabled="disabled" /> <? ENDIF ?>
|
|
<label for="loaded_by_net_<? VAR Name ?>"></label>
|
|
</div>
|
|
<? IF LoadedBySomeNetworks && !LoadedByAllNetworks ?>
|
|
<script type="text/javascript">document.getElementById("loaded_by_net_<? VAR Name ?>").indeterminate = true;</script>
|
|
<? ENDIF ?>
|
|
</td>
|
|
</tr>
|
|
<? ENDLOOP ?>
|
|
</tbody>
|
|
</table>
|
|
</div> <!-- Modules -->
|
|
|
|
<!-- Default Settings -->
|
|
<div class="tab-pane fade" id="channelstab">
|
|
<div class="form-group">
|
|
<label for="inputModes" class="col-sm-2 control-label"><? FORMAT "Default Modes:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="inputModes" name="chanmodes" value="<? VAR DefaultChanModes ?>" maxlength="32" placeholder="<? FORMAT "These are the default modes ZNC will set when you join an empty channel." ?>">
|
|
<div class="alert alert-info help-block"><? FORMAT "Empty = use standard value" ?></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="chanbuffersize" class="col-sm-2 control-label"><? FORMAT "Buffer Size:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="chanbufsize" name="chanbufsize" value="<? VAR ChanBufferSize ?>" min="0" placeholder="<? FORMAT "This is the amount of lines that the playback buffer will store for channels before dropping off the oldest line. The buffers are stored in the memory by default." ?>" />
|
|
<div class="alert alert-info help-block"><? FORMAT "Empty = use standard value" ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="tab-pane fade" id="queriestab">
|
|
|
|
<div class="form-group">
|
|
<label for="maxquerybuffers" class="col-sm-2 control-label"><? FORMAT "Max Buffers:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="maxquerybuffers" name="maxquerybuffers" value="<? VAR MaxQueryBuffers ?>" min="0" placeholder="<? FORMAT "Maximum number of query buffers. 0 is unlimited." ?>" />
|
|
<div class="alert alert-info help-block"><? FORMAT "Empty = use standard value" ?></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="querybufsize" class="col-sm-2 control-label"><? FORMAT "Buffer Size:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="querybufsize" name="querybufsize" value="<? VAR QueryBufferSize ?>" min="0" placeholder="<? FORMAT "This is the amount of lines that the playback buffer will store for queries before dropping off the oldest line. The buffers are stored in the memory by default." ?>" />
|
|
<div class="alert alert-info help-block"><? FORMAT "Empty = use standard value" ?></div>
|
|
</div>
|
|
</div>
|
|
</div> <!-- Default Settings -->
|
|
|
|
<!-- Flags -->
|
|
<div class="tab-pane fade" id="flagstab">
|
|
<div class="row">
|
|
<div class="col-md-6 col-md-offset-3">
|
|
<table class="table table-bordered table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<td></td>
|
|
<td><? FORMAT "Description" ?></td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<? LOOP OptionLoop ?>
|
|
<tr>
|
|
<td>
|
|
<div class="switch">
|
|
<input type="checkbox" name="<? VAR Name ?>" id="opt_<? VAR Name ?>" class="cmn-toggle cmn-toggle-round-flat" value="1"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> />
|
|
<label for="opt_<? VAR Name ?>"></label>
|
|
</div>
|
|
</td>
|
|
<td><b><? VAR DisplayName ?></b></td>
|
|
</tr>
|
|
<? ENDLOOP ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div> <!-- Flags -->
|
|
|
|
<!-- ZNC Behavior -->
|
|
<div class="tab-pane fade" id="zncbehavetab">
|
|
<div class="alert alert-info help-block"><? FORMAT "Any of the following text boxes can be left empty to use their default value." ?></div>
|
|
<div class="form-group">
|
|
<label for="inputtimeFormat" class="col-sm-2 control-label"><? FORMAT "Timestamp Format:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input type="text" class="form-control" id="inputtimeFormat" name="timestampformat" value="<? VAR TimestampFormat ?>" placeholder="The format for the timestamps used in buffers, for example [%H:%M:%S]." />
|
|
<div class="alert alert-info help-block"><? FORMAT "The format for the timestamps used in buffers, for example [%H:%M:%S]. This setting is ignored in new IRC clients, which use server-time. If your client supports server-time, change timestamp format in client settings instead." ?></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="inputTimezone" class="col-sm-2 control-label"><? FORMAT "Timezone:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input class="form-control" id="inputTimezone" name="timezone" value="<? VAR Timezone ?>" placeholder="<? FORMAT "Select your timezone." ?>">
|
|
<div class="alert alert-info help-block"><? FORMAT "E.g. <code>Europe/Berlin</code>, or <code>GMT-6</code>" ?></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<label for="inputClientencode" class="col-sm-2 control-label"><? FORMAT "Client encoding:" ?></label>
|
|
<div class="col-sm-10">
|
|
<? INC encoding_settings.tmpl ?>
|
|
<span class="help-block"><? FORMAT "Character encoding used between IRC client and ZNC." ?></span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
<label for="inputJoinTries" class="col-sm-2 control-label"><? FORMAT "Join Tries:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input class="form-control" type="number" id="inputJoinTries" name="jointries" value="<? VAR JoinTries ?>" min="0" placeholder="<? FORMAT "This defines how many times ZNC tries to join a channel, if the first join failed, e.g. due to channel mode +i/+k or if you are banned." ?>" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="inputMaxJoins" class="col-sm-2 control-label"><? FORMAT "Join speed:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input class="form-control" type="number" id="inputMaxJoins" name="maxjoins" value="<? VAR MaxJoins ?>" min="0" placeholder="<? FORMAT "How many channels are joined in one JOIN command. 0 is unlimited (default). Set to small positive value if you get disconnected with “Max SendQ Exceeded”" ?>" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="inputmaxIRCnet" class="col-sm-2 control-label"><? FORMAT "Max IRC Networks Number:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input class="form-control" type="number" id="inputmaxIRCnet" name="maxnetworks" value="<? VAR MaxNetworks ?>" min="0" placeholder="<? FORMAT "Maximum number of IRC networks allowed for this user." ?>" <? IF !ImAdmin ?>disabled="disabled"<? ENDIF ?> />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="notraffictimeout" class="col-sm-2 control-label"><? FORMAT "Timeout before reconnect:" ?></label>
|
|
<div class="col-sm-10">
|
|
<input class="form-control" type="number" id="notraffictimeout" name="notraffictimeout" value="<? VAR NoTrafficTimeout ?>" class="third" min="30" placeholder="<? FORMAT "How much time ZNC waits (in seconds) until it receives something from network or declares the connection timeout. This happens after attempts to ping the peer." ?>"/>
|
|
</div>
|
|
</div>
|
|
|
|
<? SETBLOCK Substitutions_Link ?><a href="https://wiki.znc.in/ExpandString" target="_blank" class="external"><? FORMAT "Substitutions" ?></a><? ENDSETBLOCK ?>
|
|
<div class="form-group" id="ctcpreplies_plain">
|
|
<label for="inputCTCPreplies" class="col-sm-2 control-label">CTCP Replies:</label>
|
|
<div class="col-sm-10">
|
|
<textarea class="form-control" name="ctcpreplies" cols="70" rows="3" id="ctcpreplies_text"><? LOOP CTCPLoop ?><? VAR CTCP ?>
|
|
<? ENDLOOP ?></textarea>
|
|
<div class="alert alert-info help-block"><? FORMAT "One reply per line. Example: <code>TIME Buy a watch!</code>" ?></div>
|
|
<div class="alert alert-info help-block"><? FORMAT "{1} are available" "Substitutions_Link ESC=" ?></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group" id="ctcpreplies_js" style="display:none" data-placeholder="<? FORMAT "Empty value means this CTCP request will be ignored" ?>">
|
|
<label for="ctcpreplies" class="col-sm-2 control-label"><? FORMAT "CTCP Replies:" ?></label>
|
|
<div class="col-sm-10">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th><? FORMAT "Request" ?></th>
|
|
<th><? FORMAT "Response" ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="ctcpreplies_tbody" />
|
|
</table>
|
|
<button type="button" class="btn btn-default" value="<? FORMAT "Add" ?>" id="ctcpreplies_add"><? FORMAT "Add" ?></button>
|
|
<span class="info"><? FORMAT "{1} are available" "Substitutions_Link ESC=" ?></span>
|
|
<datalist id="ctcpreplies_list">
|
|
<option value="PING"/>
|
|
<option value="FINGER"/>
|
|
<option value="CLIENTINFO"/>
|
|
<option value="USERINFO"/>
|
|
<option value="VERSION"/>
|
|
<option value="SOURCE"/>
|
|
<option value="TIME"/>
|
|
<option value="PAGE"/>
|
|
<option value="DCC"/>
|
|
<option value="UPTIME"/>
|
|
</datalist>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">ctcpreplies_init(jQuery);</script>
|
|
|
|
|
|
<div class="form-group">
|
|
<label for="inputSkins" class="col-sm-2 control-label"><? FORMAT "Skin:" ?></label>
|
|
<div class="col-sm-10">
|
|
<? IF SkinLoop ROWS > 1 ?>
|
|
<select class="form-control" name="skin">
|
|
<option value=""><? FORMAT "- Global -" ?></option>
|
|
<? LOOP SkinLoop ?>
|
|
<option value="<? VAR Name ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? IF Name == "_default_" ?><? FORMAT "Default" ?><? ELSE ?><? VAR Name ?><? ENDIF ?></option>
|
|
<? ENDLOOP ?>
|
|
</select>
|
|
<? ELSE ?>
|
|
<p><? FORMAT "No other skins found" ?></p>
|
|
<? ENDIF ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="language" class="col-sm-2 control-label"><? FORMAT "Language:" ?></label>
|
|
<div class="col-sm-10">
|
|
<? IF HaveI18N ?>
|
|
<select class="form-control" name="language">
|
|
<? LOOP LanguageLoop ?>
|
|
<option value="<? VAR Code ?>" <? IF Language TOP == *Code ?>selected="selected"<? ENDIF ?>><? VAR Name ?></option>
|
|
<? ENDLOOP ?>
|
|
</select>
|
|
<? ELSE ?>
|
|
<p>ZNC is compiled without i18n support!</p>
|
|
<? ENDIF ?>
|
|
</div>
|
|
</div>
|
|
</div><!-- ZNC Behavior -->
|
|
</div>
|
|
</div>
|
|
<div class="panel-footer text-right">
|
|
<? IF ImAdmin ?>
|
|
<input class="btn btn-danger" type="reset" value="Reset">
|
|
<input class="btn btn-success" type="submit" name="submit_return" value="<? IF Edit ?><? FORMAT "Save and return" ?><? ELSE ?><? IF Clone ?><? FORMAT "Clone and return" ?><? ELSE ?><? FORMAT "Create and return" ?><? ENDIF ?><? ENDIF ?>" />
|
|
<input class="btn btn-default" type="submit" name="submit_continue" value="<? IF Edit ?><? FORMAT "Save and continue" ?><? ELSE ?><? IF Clone ?><? FORMAT "Clone and continue" ?><? ELSE ?><? FORMAT "Create and continue" ?><? ENDIF ?><? ENDIF ?>" />
|
|
<? ELSE ?>
|
|
<input class="btn btn-danger" type="reset" value="Reset">
|
|
<input class="btn btn-success" type="submit" value="<? IF Edit ?><? FORMAT "Save" ?><? ELSE ?><? IF Clone ?><? FORMAT "Clone" ?><? ELSE ?><? FORMAT "Create" ?><? ENDIF ?><? ENDIF ?>" />
|
|
<? ENDIF ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<? INC Footer.tmpl ?>
|