347 lines
14 KiB
Cheetah
347 lines
14 KiB
Cheetah
|
<? INC Header.tmpl ?>
|
||
|
<div class="container">
|
||
|
<div class="panel panel-default">
|
||
|
<div class="panel-heading">Edit User</div>
|
||
|
<div class="panel-body">
|
||
|
<form class="form-horizontal" action="<? IF Edit ?>edituser<? ELSE ?>adduser<? ENDIF ?>" method="post">
|
||
|
<? INC _csrf_check.tmpl ?>
|
||
|
<div class="section">
|
||
|
<input type="hidden" name="submitted" value="1" />
|
||
|
|
||
|
<h3>Authentication</h3>
|
||
|
<hr>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputUsername" class="col-sm-2 control-label">Username:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<? IF Clone ?>
|
||
|
<input type="hidden" class="form-control" id="inputUsername" name="clone" value="<? VAR CloneUsername ?>" />
|
||
|
<? ENDIF ?>
|
||
|
|
||
|
<? IF Edit ?>
|
||
|
<input type="hidden" class="form-control" id="inputUsername" name="user" value="<? VAR Username ?>" />
|
||
|
<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="Please enter a username." />
|
||
|
<? ENDIF ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputPassword" class="col-sm-2 control-label">Password:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="password" class="form-control" id="inputPassword" name="password" placeholder="Please enter a password.">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputPassword2" class="col-sm-2 control-label">Confirm Password:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="password" class="form-control" id="inputPassword2" name="password2" placeholder="Please re-type the above password.">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputAllowedIP" class="col-sm-2 control-label">Allowed IPs:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<textarea class="form-control class="form-control" id="inputAllowedIP" name="allowedips" cols="70" rows="5"><? LOOP AllowedHostLoop ?><? VAR Host ?><? ENDLOOP ?></textarea>
|
||
|
<div class="alert alert-info help-block">Leave empty to allow connections from all IPs. Otherwise, one entry per line, wildcards * and ? are available.</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<h3>IRC Information</h3>
|
||
|
<hr>
|
||
|
|
||
|
<? IF !Edit ?>
|
||
|
<div class="alert alert-info">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">Nickname:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="text" class="form-control" id="inputNickname" name="nick" value="<? VAR Nick ?>" maxlength="30" placeholder="This will be your nickname on IRC.">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputaltNickname" class="col-sm-2 control-label">Alt. Nickname</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="text" class="form-control" id="inputaltNickname" name="altnick" value="<? VAR AltNick ?>" maxlength="128" placeholder="If the nickname above is not available anymore, then this will be your nickname on IRC.">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputIdent" class="col-sm-2 control-label">Ident:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="text" class="form-control" id="inputIdent" name="ident" value="<? VAR Ident ?>" maxlength="128" placeholder="The Ident identifies you as one specific user of your host.">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputStatusPrefix" class="col-sm-2 control-label">StatusPrefix:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="text" class="form-control" id="inputStatusPrefix" name="statusprefix" value="<? VAR StatusPrefix ?>" maxlength="5" placeholder="This defines the prefix for the status and module queries.">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputRealname" class="col-sm-2 control-label">Realname:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="text" class="form-control" id="inputRealname" name="realname" value="<? VAR RealName ?>" maxlength="256" placeholder="The real name of the user.">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<? IF BindHostEdit ?>
|
||
|
<div class="form-group">
|
||
|
<label for="inputBindHost" class="col-sm-2 control-label">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">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">Quit Message:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="text" class="form-control" id="inputQuit" name="quitmsg" value="<? VAR QuitMsg ?>" maxlength="256" placeholder="You may define a Message shown, when you quit IRC.">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<h3>Networks</h3>
|
||
|
<hr>
|
||
|
|
||
|
<? IF Edit ?>
|
||
|
<table class="table table-bordered table-hover table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<td><a href="addnetwork?user=<? VAR Username ESC=URL ?>" class="btn btn-default btn-xs">Add</a></td>
|
||
|
<? IF NetworkLoop ?>
|
||
|
<td>Name</td>
|
||
|
<td>Clients</td>
|
||
|
<td>Current Server</td>
|
||
|
<td>IRC Nick</td>
|
||
|
<? ELSE ?>
|
||
|
<td><- Add a network (opens in same page)</td>
|
||
|
<? ENDIF ?>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<? LOOP NetworkLoop SORTASC=Name ?>
|
||
|
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||
|
<td>
|
||
|
<input type="hidden" name="network" value="<? VAR Name ?>" />
|
||
|
<a href="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">Delete</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 ?>
|
||
|
<span class="info">You will be able to add + modify networks here after you <? IF Clone ?>have cloned<? ELSE ?>created<? ENDIF ?> the user.</span><br />
|
||
|
<? ENDIF ?>
|
||
|
|
||
|
|
||
|
<h3>Modules</h3>
|
||
|
<hr>
|
||
|
|
||
|
<table class="table table-bordered table-hover table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<td>Status</td>
|
||
|
<td>Name</td>
|
||
|
<td>Arguments</td>
|
||
|
<td>Description</td>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<? LOOP ModuleLoop ?>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<div class="checkboxSwitch">
|
||
|
<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 ?>"></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>
|
||
|
</tr>
|
||
|
<? ENDLOOP ?>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<h3>Default Settings For New Future Channels</h3>
|
||
|
<hr>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputModes" class="col-sm-2 control-label">Modes:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="text" class="form-control" id="inputModes" name="chanmodes" value="<? VAR DefaultChanModes ?>" maxlength="32" placeholder="These are the default modes ZNC will set when you join an empty channel.">
|
||
|
<div class="alert alert-info help-block">Empty = use standard value</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputBufferSize" class="col-sm-2 control-label">Buffer Size:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="text" class="form-control" id="inputBufferSize" name="bufsize" value="<? VAR BufferCount ?>" min="0" placeholder="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." />
|
||
|
<div class="alert alert-info help-block">Empty = use standard value</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<h3>Flags</h3>
|
||
|
<hr>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-md-6 col-md-offset-3">
|
||
|
<table class="table table-bordered table-hover table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<td>Status</td>
|
||
|
<td>Flag Title</td>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<? LOOP OptionLoop ?>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<div class="checkboxSwitch">
|
||
|
<input type="checkbox" name="<? VAR Name ?>" id="opt_<? VAR Name ?>" 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>
|
||
|
|
||
|
<h3>ZNC Behavior</h3>
|
||
|
<hr>
|
||
|
<div class="alert alert-info help-block">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">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>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputTimezone" class="col-sm-2 control-label">Timezone:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input class="form-control" id="inputTimezone" name="timezone" value="<? VAR Timezone ?>" placeholder="Select your timezone.">
|
||
|
<div class="alert alert-info help-block">E.g. <b>Europe/Berlin</b> or <b>GMT-6</b></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputJoinTries" class="col-sm-2 control-label">Join Tries:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input class="form-control" type="number" id="inputJoinTries" name="jointries" value="<? VAR JoinTries ?>" min="0" placeholder="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>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputMaxJoins" class="col-sm-2 control-label">Max Joins:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input class="form-control" type="number" id="inputMaxJoins" name="maxjoins" value="<? VAR MaxJoins ?>" min="0" placeholder="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">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="Maximum number of IRC networks allowed for this user." <? IF !ImAdmin ?>disabled="disabled"<? ENDIF ?> />
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="inputCTCPreplies" class="col-sm-2 control-label">CTCP Replies:</label>
|
||
|
<div class="col-sm-10">
|
||
|
<textarea class="form-control" id="inputCTCPreplies" name="ctcpreplies" cols="70" rows="3"><? LOOP CTCPLoop ?><? VAR CTCP ?><? ENDLOOP ?></textarea>
|
||
|
<div class="alert alert-info help-block">One reply per line. Example: TIME Buy a watch!</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="input..." class="col-sm-2 control-label">Skin(s):</label>
|
||
|
<div class="col-sm-10">
|
||
|
<? IF SkinLoop ROWS > 1 ?>
|
||
|
<select class="form-control" name="skin">
|
||
|
<option value="">- Global -</option>
|
||
|
<? LOOP SkinLoop ?>
|
||
|
<option value="<? VAR Name ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? IF Name == "_default_" ?>Default<? ELSE ?><? VAR Name ?><? ENDIF ?></option>
|
||
|
<? ENDLOOP ?>
|
||
|
</select>
|
||
|
<? ELSE ?>
|
||
|
<p>No other skins found!</p>
|
||
|
<? ENDIF ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<? LOOP EmbeddedModuleLoop ?>
|
||
|
<? IF Embed ?>
|
||
|
<h3>Module <? VAR ModName ?></h3>
|
||
|
<hr>
|
||
|
|
||
|
<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 ?>
|
||
|
|
||
|
<div class="btn-group pull-right">
|
||
|
<input class="btn btn-danger" type="reset" value="Reset">
|
||
|
<input class="btn btn-success" type="submit" value="<? IF Edit ?>Save<? ELSE ?><? IF Clone ?>Clone<? ELSE ?>Create<? ENDIF ?><? ENDIF ?>" />
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<? INC Footer.tmpl ?>
|