Update to support the new bits on ZNC v.1.5-git
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
<div class="checkboxSwitch">
 | 
			
		||||
	<input type="checkbox" name="embed_blockuser_block" id="opt_embed_blockuser_block" value="1"<? IF Blocked ?> checked="checked"<? ENDIF ?><? IF Self ?> disabled="disabled"<? ENDIF ?> />
 | 
			
		||||
<div class="switch">
 | 
			
		||||
	<input type="checkbox" name="embed_blockuser_block" id="opt_embed_blockuser_block" value="1" class="cmn-toggle cmn-toggle-round-flat"<? IF Blocked ?> checked="checked"<? ENDIF ?><? IF Self ?> disabled="disabled"<? ENDIF ?> />
 | 
			
		||||
	<label for="opt_embed_blockuser_block"></label>
 | 
			
		||||
</div>
 | 
			
		||||
		
 | 
			
		||||
 
 | 
			
		||||
@@ -1,35 +1,30 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
<div class="container col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Cert</div>
 | 
			
		||||
		<div class="panel-heading">Certificate</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
				<? IF Cert ?>
 | 
			
		||||
					<p>You already have a certificate set, use the form below to overwrite the current certificate. Alternatively click <a href="<? VAR URIPrefix TOP ?><? VAR ModPath ?>delete">here</a> to <a href="<? VAR URIPrefix TOP ?><? VAR ModPath ?>delete">delete</a> your certificate.</p>
 | 
			
		||||
					<div class="alert alert-success">You already have a certificate set, use the form below to overwrite the current certificate. Alternatively click <a href="<? VAR URIPrefix TOP ?><? VAR ModPath ?>delete">here</a> to <a href="<? VAR URIPrefix TOP ?><? VAR ModPath ?>delete">delete</a> your certificate.</div>
 | 
			
		||||
				<? ELSE ?>
 | 
			
		||||
					<p>You do not have a cert.</p>
 | 
			
		||||
					<div class="alert alert-danger">You do not have a cert.</div>
 | 
			
		||||
				<? ENDIF ?>
 | 
			
		||||
 | 
			
		||||
				<form class="form-horizontal" method="post" action="<? VAR URIPrefix TOP ?><? VAR ModPath ?>update">
 | 
			
		||||
				<? INC _csrf_check.tmpl ?>
 | 
			
		||||
				<h3>Certificate</h3>
 | 
			
		||||
				<hr>
 | 
			
		||||
		
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<label for="inputPEM" class="col-sm-2 control-label">PEM File</label>
 | 
			
		||||
					<div class="form-group">
 | 
			
		||||
					<label for="inputPEM" class="col-sm-2 control-label">PEM File: </label>
 | 
			
		||||
						<div class="col-sm-10">
 | 
			
		||||
							<textarea class="form-control" rows="5" name="cert"></textarea>
 | 
			
		||||
						</div>
 | 
			
		||||
				</div>
 | 
			
		||||
		
 | 
			
		||||
				 
 | 
			
		||||
				<div class="btn-group pull-right">
 | 
			
		||||
					<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
					<input class="btn btn-success" type="submit" name="add" value="Update" />
 | 
			
		||||
				</div>
 | 
			
		||||
				</form>
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>	
 | 
			
		||||
			<div class="panel-footer text-right">
 | 
			
		||||
				<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
				<input class="btn btn-success" type="submit" name="add" value="Update" />
 | 
			
		||||
			</div>
 | 
			
		||||
				</form>	
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
<? INC Footer.tmpl ?>
 | 
			
		||||
@@ -1,14 +1,11 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
<div class="container col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Cert Auth</div>
 | 
			
		||||
		<div class="panel-heading">Certauth — Add A Note</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
				<form class="form-horizontal" method="post" action="<? VAR URIPrefix TOP ?><? VAR ModPath ?>add">
 | 
			
		||||
				<? INC _csrf_check.tmpl ?>
 | 
			
		||||
				<h3>Add A Note</h3>
 | 
			
		||||
				<hr>
 | 
			
		||||
	
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<label for="inputKey" class="col-sm-2 control-label">Key:</label>
 | 
			
		||||
						<div class="col-sm-10">
 | 
			
		||||
@@ -16,34 +13,36 @@
 | 
			
		||||
						</div>
 | 
			
		||||
				</div>
 | 
			
		||||
 | 
			
		||||
				<div class="btn-group pull-right">
 | 
			
		||||
					<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
					<input class="btn btn-success" type="submit" name="add" value="Add Key" />
 | 
			
		||||
				</div>	
 | 
			
		||||
				</form>
 | 
			
		||||
 | 
			
		||||
				<? IF !KeyLoop ?>
 | 
			
		||||
					<p>You have no keys.</p>
 | 
			
		||||
					<p class="text-center">You have no keys.</p>
 | 
			
		||||
				<? ELSE ?>
 | 
			
		||||
 | 
			
		||||
				
 | 
			
		||||
				<br />
 | 
			
		||||
				
 | 
			
		||||
				<table class="table table-bordered table-hover">
 | 
			
		||||
					<thead>
 | 
			
		||||
						<tr>
 | 
			
		||||
							<td></td>
 | 
			
		||||
							<td>Action</td>
 | 
			
		||||
							<td>Key</td>
 | 
			
		||||
						</tr>
 | 
			
		||||
					</thead>
 | 
			
		||||
					<tbody>
 | 
			
		||||
						<? LOOP KeyLoop ?>
 | 
			
		||||
						<tr>
 | 
			
		||||
							<td>[<a href="<? VAR ModPath ?>delete?key=<? VAR Key ESC=URL,HTML ?>">del</a>]</td>
 | 
			
		||||
							<td><a href="<? VAR ModPath ?>delete?key=<? VAR Key ESC=URL,HTML ?>" class="btn btn-danger btn-xs">Delete</a></td>
 | 
			
		||||
							<td><? VAR Key ?></td>
 | 
			
		||||
						</tr>
 | 
			
		||||
				<? ENDLOOP ?>
 | 
			
		||||
						<? ENDLOOP ?>
 | 
			
		||||
					</tbody>
 | 
			
		||||
				</table>
 | 
			
		||||
				<? ENDIF ?>
 | 
			
		||||
			</div>
 | 
			
		||||
			
 | 
			
		||||
			<div class="panel-footer text-right">
 | 
			
		||||
				<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
				<input class="btn btn-success" type="submit" name="add" value="Add Key" />
 | 
			
		||||
			</div>	
 | 
			
		||||
			</form>
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
	
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
<div class="container col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Last Seen</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
 
 | 
			
		||||
@@ -1 +1,5 @@
 | 
			
		||||
<h6>Last Login Time: <b><? VAR LastSeen DEFAULT="No Data..." ?></b><h6>
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
		<div class="col-sm-10">
 | 
			
		||||
			<input type="text" class="form-control" id="inputLastseen" name="seen" value="<? VAR LastSeen DEFAULT="No Data..." ?>" disabled>
 | 
			
		||||
		</div>
 | 
			
		||||
</div>
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
<div class="container col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Listsockets</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
 
 | 
			
		||||
@@ -1,14 +1,12 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
<div class="container col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Notes</div>
 | 
			
		||||
		<div class="panel-heading">Notes · Add A Note</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
				<form class="form-horizontal" method="post" action="<? VAR URIPrefix TOP ?><? VAR ModPath ?>addnote">
 | 
			
		||||
				<? INC _csrf_check.tmpl ?>
 | 
			
		||||
				<h3>Add A Note</h3>
 | 
			
		||||
				<hr>
 | 
			
		||||
		
 | 
			
		||||
				
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<label for="inputKey" class="col-sm-2 control-label">Key:</label>
 | 
			
		||||
						<div class="col-sm-10">
 | 
			
		||||
@@ -33,7 +31,7 @@
 | 
			
		||||
						<tr>
 | 
			
		||||
							<td>Key</td>
 | 
			
		||||
							<td>Note</td>
 | 
			
		||||
							<td></td>
 | 
			
		||||
							<td>Action</td>
 | 
			
		||||
						</tr>
 | 
			
		||||
					</thead>
 | 
			
		||||
					<tbody>
 | 
			
		||||
@@ -47,12 +45,13 @@
 | 
			
		||||
					</tbody>
 | 
			
		||||
				</table>
 | 
			
		||||
				<? ENDIF ?>
 | 
			
		||||
				<div class="pull-right">
 | 
			
		||||
				</div>
 | 
			
		||||
				
 | 
			
		||||
				<div class="panel-footer text-right">
 | 
			
		||||
					<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
					<input class="btn btn-success" type="submit" name="add" value="Add Note"  />
 | 
			
		||||
				</div>
 | 
			
		||||
				</form>
 | 
			
		||||
			</div>
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
	
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,8 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
<div class="container col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Perform</div>
 | 
			
		||||
		<div class="panel-heading">Perform · Add a Command</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
				<form method="post" action="<? VAR URIPrefix TOP ?><? VAR ModPath ?>">
 | 
			
		||||
				<? INC _csrf_check.tmpl ?>
 | 
			
		||||
@@ -14,13 +14,12 @@
 | 
			
		||||
							<div class="alert alert-info help-block">Commands sent to the IRC server on connect, one per line.</div>
 | 
			
		||||
						</div>
 | 
			
		||||
				</div>
 | 
			
		||||
  
 | 
			
		||||
				<div class="btn-group pull-right">
 | 
			
		||||
					<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
					<input class="btn btn-success" type="submit" name="save" value="Save" />
 | 
			
		||||
				</div>
 | 
			
		||||
				</form>
 | 
			
		||||
			</div>
 | 
			
		||||
			<div class="panel-footer text-right">
 | 
			
		||||
				<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
				<input class="btn btn-success" type="submit" name="save" value="Save" />
 | 
			
		||||
			</div>
 | 
			
		||||
				</form>
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
<div class="container col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Q Network Module</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
@@ -26,15 +26,15 @@
 | 
			
		||||
									<thead>
 | 
			
		||||
										<tr>
 | 
			
		||||
											<td>Status</td>
 | 
			
		||||
											<td>Label</td>
 | 
			
		||||
											<td>Settings</td>
 | 
			
		||||
										</tr>
 | 
			
		||||
									</thead>
 | 
			
		||||
									<tbody>	
 | 
			
		||||
									<? LOOP OptionLoop ?>			
 | 
			
		||||
										<tr>
 | 
			
		||||
											<td>
 | 
			
		||||
												<div class="checkboxSwitch" title="<? VAR Tooltip ?>">
 | 
			
		||||
													<input type="checkbox" name="<? VAR Name ?>" id="opt_<? VAR Name ?>" value="1"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> />
 | 
			
		||||
												<div class="switch" title="<? VAR Tooltip ?>">
 | 
			
		||||
													<input type="checkbox" name="<? VAR Name ?>" id="opt_<? VAR Name ?>" value="1" class="cmn-toggle cmn-toggle-round-flat"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?>disabled="disabled"<? ENDIF ?>"/>
 | 
			
		||||
													<label for="opt_<? VAR Name ?>"></label>
 | 
			
		||||
												</div>
 | 
			
		||||
											</td>
 | 
			
		||||
@@ -47,14 +47,13 @@
 | 
			
		||||
								</table>
 | 
			
		||||
							</div>				
 | 
			
		||||
						</div>	
 | 
			
		||||
 | 
			
		||||
						<div class="pull-right">
 | 
			
		||||
			</div>
 | 
			
		||||
						<div class="panel-footer text-right">
 | 
			
		||||
							<input type="hidden" name="submitted" value="1" />
 | 
			
		||||
							<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
							<input class="btn btn-success" type="submit" value="Save" />
 | 
			
		||||
						</div>
 | 
			
		||||
				</form>			
 | 
			
		||||
			</div>	 
 | 
			
		||||
				</form>				 
 | 
			
		||||
	</div>
 | 
			
		||||
</div>				
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
@@ -1,15 +1,13 @@
 | 
			
		||||
<? ADDROW JSLoop HREF=/modfiles/user/send_raw/select.js ?>
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
<div class="container col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Send RAW</div>
 | 
			
		||||
		<div class="panel-heading">Send RAW · Send a raw IRC line</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
				<form class="form-horizontal" method="post" action="<? VAR URIPrefix TOP ?><? VAR ModPath ?>">
 | 
			
		||||
				<? INC _csrf_check.tmpl ?>
 | 
			
		||||
				<h3>Send a raw IRC line</h3>
 | 
			
		||||
				<hr>
 | 
			
		||||
 | 
			
		||||
				
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<label for="inputUser" class="col-sm-2 control-label">User:</label>
 | 
			
		||||
						<div class="col-sm-10">
 | 
			
		||||
@@ -48,13 +46,13 @@
 | 
			
		||||
						<input type="text" class="form-control" id="inputLine" name="line" value="<? VAR line ?>">
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>
 | 
			
		||||
 | 
			
		||||
			<div class="btn-group pull-right">
 | 
			
		||||
			</div>
 | 
			
		||||
			
 | 
			
		||||
			<div class="panel-footer text-right">
 | 
			
		||||
				<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
				<input class="btn btn-success" type="submit" value="Send" />
 | 
			
		||||
			</div>
 | 
			
		||||
			</form>
 | 
			
		||||
			</div>
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
	
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
<div class="container col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Stickychan</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
@@ -9,8 +9,8 @@
 | 
			
		||||
				<table class="table table-bordered table-hover">
 | 
			
		||||
					<thead>
 | 
			
		||||
						<tr>
 | 
			
		||||
							<td>Name</td>
 | 
			
		||||
							<td>Sticky</td>
 | 
			
		||||
							<td>Channel Name</td>
 | 
			
		||||
							<td>Enable / Disable</td>
 | 
			
		||||
						</tr>
 | 
			
		||||
					</thead>
 | 
			
		||||
					<tbody>
 | 
			
		||||
@@ -18,8 +18,8 @@
 | 
			
		||||
						<tr>
 | 
			
		||||
							<td><? VAR Name ?></td>
 | 
			
		||||
							<td>
 | 
			
		||||
								<div class="checkboxSwitchMini">
 | 
			
		||||
									<input type="checkbox" id="stick_<? VAR Name ?>" name="stick_<? VAR Name ?>"<? IF Sticky ?> checked="checked"<? ENDIF ?> />
 | 
			
		||||
								<div class="switch">
 | 
			
		||||
									<input type="checkbox" id="stick_<? VAR Name ?>" name="stick_<? VAR Name ?>" class="cmn-toggle cmn-toggle-round-flat"<? IF Sticky ?> checked="checked"<? ENDIF ?> />
 | 
			
		||||
									<label for="stick_<? VAR Name ?>"></label>
 | 
			
		||||
								</div>
 | 
			
		||||
							</td>
 | 
			
		||||
@@ -27,14 +27,13 @@
 | 
			
		||||
					<? ENDLOOP ?>
 | 
			
		||||
					</tbody>
 | 
			
		||||
				</table>
 | 
			
		||||
	
 | 
			
		||||
				<div class="btn-group pull-right">
 | 
			
		||||
					<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
					<input type="hidden" name="submitted" value="1" />
 | 
			
		||||
					<input class="btn btn-success" type="submit" value="Save" />
 | 
			
		||||
				</div>
 | 
			
		||||
				</form>
 | 
			
		||||
			</div>
 | 
			
		||||
			<div class="panel-footer text-right">
 | 
			
		||||
				<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
				<input type="hidden" name="submitted" value="1" />
 | 
			
		||||
				<input class="btn btn-success" type="submit" value="Save" />
 | 
			
		||||
			</div>
 | 
			
		||||
				</form>
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,51 +1,62 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
<div class="container">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Channel Info</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
				<form class="form-horizontal" role="form" action="<? IF Edit ?>editchan<? ELSE ?>addchan<? ENDIF ?>" method="post">
 | 
			
		||||
				<? INC _csrf_check.tmpl ?>
 | 
			
		||||
				<div class="section">
 | 
			
		||||
					<input type="hidden" name="submitted" value="1" />
 | 
			
		||||
					<input type="hidden" name="user" value="<? VAR User ?>" />
 | 
			
		||||
					<input type="hidden" name="network" value="<? VAR Network ?>" />
 | 
			
		||||
				<? IF Edit ?>
 | 
			
		||||
					<input type="hidden" name="name" value="<? VAR ChanName ?>" />
 | 
			
		||||
				<? ENDIF ?>
 | 
			
		||||
 | 
			
		||||
				<? IF !Edit ?>
 | 
			
		||||
					<div class="form-group">
 | 
			
		||||
<form class="form-horizontal" role="form" action="<? IF Edit ?>editchan<? ELSE ?>addchan<? ENDIF ?>" method="post">
 | 
			
		||||
	<? INC _csrf_check.tmpl ?>
 | 
			
		||||
	<div class="section">
 | 
			
		||||
		<input type="hidden" name="submitted" value="1" />
 | 
			
		||||
		<input type="hidden" name="user" value="<? VAR User ?>" />
 | 
			
		||||
		<input type="hidden" name="network" value="<? VAR Network ?>" />
 | 
			
		||||
		<? IF Edit ?>
 | 
			
		||||
			<input type="hidden" name="name" value="<? VAR ChanName ?>" />
 | 
			
		||||
		<? ENDIF ?>
 | 
			
		||||
 | 
			
		||||
<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="#chaninfotab" data-toggle="tab">Channel Info</a></li>
 | 
			
		||||
				<li><a href="#flagstab" data-toggle="tab">Flags</a></li>
 | 
			
		||||
				<li><a href="#othermods" data-toggle="tab">More</a></li>
 | 
			
		||||
			</ul>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
		<div class="panel-body">
 | 
			
		||||
            <div class="tab-content">
 | 
			
		||||
				<!-- Channel Info -->
 | 
			
		||||
                <div class="tab-pane fade in active" id="chaninfotab">
 | 
			
		||||
					<? IF !Edit ?>
 | 
			
		||||
						<div class="form-group">
 | 
			
		||||
						<label for="inputlabelChanName" class="col-sm-2 control-label">Channel Name:</label>
 | 
			
		||||
							<div class="col-sm-10">
 | 
			
		||||
								<input class="form-control" id="inputlabelChanName" type="text" name="name" value="" placeholder="The channel name.">
 | 
			
		||||
							</div>
 | 
			
		||||
					</div>
 | 
			
		||||
				<? ENDIF ?>
 | 
			
		||||
						</div>
 | 
			
		||||
					<? ENDIF ?>
 | 
			
		||||
 | 
			
		||||
					<div class="form-group">
 | 
			
		||||
						<div class="form-group">
 | 
			
		||||
						<label for="inputlabelKey" class="col-sm-2 control-label">Key:</label>
 | 
			
		||||
							<div class="col-sm-10">
 | 
			
		||||
								<input type="test" class="form-control" id="inputlabelKey" name="key" value="<? VAR Key ?>" placeholder="The password of the channel, if there is one.">
 | 
			
		||||
							</div>
 | 
			
		||||
					</div>
 | 
			
		||||
						</div>
 | 
			
		||||
  
 | 
			
		||||
					<div class="form-group">
 | 
			
		||||
						<div class="form-group">
 | 
			
		||||
						<label for="inputlabelBufferCount" class="col-sm-2 control-label">Buffer Count:</label>
 | 
			
		||||
							<div class="col-sm-10">
 | 
			
		||||
								<input class="form-control" id="inputlabelBufferCount" type="number" name="buffercount" value="<? VAR BufferCount ?>" size="10" min="0" placeholder="The buffer count.">
 | 
			
		||||
							</div>
 | 
			
		||||
					</div>
 | 
			
		||||
						</div>
 | 
			
		||||
  
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<div class="form-group">
 | 
			
		||||
					<label for="inputDefaultModes" class="col-sm-2 control-label">Default Modes:</label>
 | 
			
		||||
						<div class="col-sm-10">
 | 
			
		||||
							<input type="text" class="form-control" id="inputDefaultModes" name="defmodes" value="<? VAR DefModes ?>" size="10" placeholder="The default modes of the channel.">
 | 
			
		||||
						</div>
 | 
			
		||||
				</div>				 
 | 
			
		||||
				 			 
 | 
			
		||||
				<h3>Flags</h3> 
 | 
			
		||||
				<hr>
 | 
			
		||||
				<div class="row">
 | 
			
		||||
					</div>				 
 | 
			
		||||
				</div> <!-- Channel Info -->
 | 
			
		||||
				
 | 
			
		||||
				<!-- Flags -->
 | 
			
		||||
				<div class="tab-pane fade" id="flagstab">
 | 
			
		||||
					<div class="col-md-6 col-md-offset-3">
 | 
			
		||||
						<table class="table table-bordered table-hover table-striped">
 | 
			
		||||
							<thead>
 | 
			
		||||
@@ -56,36 +67,40 @@
 | 
			
		||||
							</thead>
 | 
			
		||||
							<tbody>
 | 
			
		||||
								<tr>
 | 
			
		||||
									<td><div class="checkboxSwitch"><input type="checkbox" name="save" id="save" value="true"<? IF InConfig ?> checked="checked"<? ENDIF ?> /> <label for="save"></label> </div></td>
 | 
			
		||||
									<td><div class="switch"><input type="checkbox" name="save" id="save" class="cmn-toggle cmn-toggle-round-flat" value="true"<? IF InConfig ?> checked="checked"<? ENDIF ?> /> <label for="save"></label> </div></td>
 | 
			
		||||
									<td>Save to config</td>
 | 
			
		||||
								</tr>
 | 
			
		||||
								<? LOOP OptionLoop ?>
 | 
			
		||||
								<tr>
 | 
			
		||||
									<td><div class="checkboxSwitch"><input type="checkbox" name="<? VAR Name ?>" id="opt_<? VAR Name ?>" value="true"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /> <label for="opt_<? VAR Name ?>"></label> </div></td>
 | 
			
		||||
									<td><div class="switch"><input type="checkbox" name="<? VAR Name ?>" id="opt_<? VAR Name ?>" class="cmn-toggle cmn-toggle-round-flat" value="true"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /> <label for="opt_<? VAR Name ?>"></label> </div></td>
 | 
			
		||||
									<td><? VAR DisplayName ?></td>		 
 | 
			
		||||
								</tr>
 | 
			
		||||
								<? ENDLOOP ?>	
 | 
			
		||||
							</tbody>
 | 
			
		||||
						</table>	
 | 
			
		||||
						</table>
 | 
			
		||||
					</div>
 | 
			
		||||
				</div>		
 | 
			
		||||
				
 | 
			
		||||
	<? LOOP EmbeddedModuleLoop ?>
 | 
			
		||||
		<? IF Embed ?>
 | 
			
		||||
		<div class="section">
 | 
			
		||||
			<h3>Module <? VAR ModName ?></h3>
 | 
			
		||||
			<? INC *Embed ?>
 | 
			
		||||
		</div>
 | 
			
		||||
		<? ENDIF ?>
 | 
			
		||||
	<? ENDLOOP ?>
 | 
			
		||||
				</div> <!-- Flags -->	
 | 
			
		||||
	
 | 
			
		||||
	<div class="pull-right">
 | 
			
		||||
			<!-- Other Modules -->
 | 
			
		||||
			<div class="tab-pane fade" id="othermods">
 | 
			
		||||
			<? LOOP EmbeddedModuleLoop ?>
 | 
			
		||||
				<? IF Embed ?>
 | 
			
		||||
					<h3>Module <? VAR ModName ?></h3>
 | 
			
		||||
					<? INC *Embed ?>
 | 
			
		||||
				<? ENDIF ?>
 | 
			
		||||
			<? ENDLOOP ?>			
 | 
			
		||||
			</div> <!-- Other Modules -->	
 | 
			
		||||
		</div>
 | 
			
		||||
	</div>
 | 
			
		||||
	
 | 
			
		||||
	<div class="panel-footer text-right">
 | 
			
		||||
		<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
		<input class="btn btn-success"type="submit" name="submit_return" value="<? IF Edit ?>Save<? ELSE ?>Add Channel<? ENDIF ?>" />
 | 
			
		||||
 		<input class="btn btn-default"type="submit" name="submit_continue" value="<? IF Edit ?>Save and continue<? ELSE ?>Save and continue<? ENDIF ?>" />
 | 
			
		||||
	</div>
 | 
			
		||||
			</form>
 | 
			
		||||
		</div>
 | 
			
		||||
			
 | 
			
		||||
		
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
</form>
 | 
			
		||||
<? INC Footer.tmpl ?>
 | 
			
		||||
@@ -1,56 +1,68 @@
 | 
			
		||||
<? AddRow JSLoop HREF=/modfiles/global/webadmin/webadmin.js ?>
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
<div class="container">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Network Info</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
 | 
			
		||||
<form class="form-horizontal" role="form" action="<? IF Edit ?>editnetwork<? ELSE ?>addnetwork<? ENDIF ?>" method="post">
 | 
			
		||||
	<? INC _csrf_check.tmpl ?>
 | 
			
		||||
	<div class="section">
 | 
			
		||||
		<input type="hidden" name="submitted" value="1" />
 | 
			
		||||
		<input type="hidden" name="user" value="<? VAR Username ?>" />
 | 
			
		||||
		<input type="hidden" name="network" value="<? VAR Name ?>" />
 | 
			
		||||
		
 | 
			
		||||
		
 | 
			
		||||
<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="#netinfotab" data-toggle="tab">Network Info</a></li>
 | 
			
		||||
				<li><a href="#floodprotab" data-toggle="tab">Flood Protection</a></li>
 | 
			
		||||
				<li><a href="#channelstab" data-toggle="tab">Channels</a></li>
 | 
			
		||||
                <li><a href="#modulestab" data-toggle="tab">Modules</a></li>
 | 
			
		||||
            </ul>
 | 
			
		||||
        </div>				
 | 
			
		||||
		<div class="panel-body">
 | 
			
		||||
            <div class="tab-content">
 | 
			
		||||
				<!-- Network Info -->
 | 
			
		||||
				<div class="tab-pane fade in active" id="netinfotab">
 | 
			
		||||
				<div class="alert alert-warning">To connect to this network from your IRC client, you can set the server password field as follows: <code><? VAR Username ?>/<? IF Edit ?><? VAR Name ?><? ELSE ?><network><? ENDIF ?>:<password></code> or username field as <code><? VAR Username ?>/<? IF Edit ?><? VAR Name ?><? ELSE ?><network><? ENDIF ?></code></div>
 | 
			
		||||
			<form class="form-horizontal" role="form" action="<? IF Edit ?>editnetwork<? ELSE ?>addnetwork<? ENDIF ?>" method="post">
 | 
			
		||||
			<? INC _csrf_check.tmpl ?>
 | 
			
		||||
			<div class="section">
 | 
			
		||||
				<input type="hidden" name="submitted" value="1" />
 | 
			
		||||
				<input type="hidden" name="user" value="<? VAR Username ?>" />
 | 
			
		||||
				<? IF Edit ?><input type="hidden" name="network" value="<? VAR Name ?>" /><? ENDIF ?>
 | 
			
		||||
				<div class="alert alert-info">Nick, AltNick, Ident, RealName, BindHost can be left empty to use the value from the user.</div>
 | 
			
		||||
			<? IF !Edit ?>
 | 
			
		||||
			<div class="form-group">
 | 
			
		||||
			
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
				<label for="inputNetworkName" class="col-sm-2 control-label">Network Name:</label>
 | 
			
		||||
					<div class="col-sm-10">
 | 
			
		||||
						<input type="text" class="form-control" id="inputNetworkName" name="network" value="<? VAR Name ?>" maxlength="20" placeholder="The name of the IRC network.">
 | 
			
		||||
						<input type="text" class="form-control" id="inputNetworkName" name="name" value="<? VAR Name ?>" maxlength="20" placeholder="The name of the IRC network.">
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>
 | 
			
		||||
			<? ENDIF ?>			 
 | 
			
		||||
				</div>		 
 | 
			
		||||
					 
 | 
			
		||||
			<div class="form-group">
 | 
			
		||||
				<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="Your nickname on IRC.">
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>
 | 
			
		||||
				</div>
 | 
			
		||||
  
 | 
			
		||||
			<div class="form-group">
 | 
			
		||||
				<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="AltNickname" name="altnick" value="<? VAR AltNick ?>" maxlength="30" placeholder="Your secondary nickname, if the first is not available on IRC.">
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>
 | 
			
		||||
				</div>
 | 
			
		||||
  
 | 
			
		||||
			<div class="form-group">
 | 
			
		||||
				<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="30" placeholder="Your ident.">
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>
 | 
			
		||||
				</div>
 | 
			
		||||
  
 | 
			
		||||
			<div class="form-group">
 | 
			
		||||
				<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="128" placeholder="Your real name.">
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>
 | 
			
		||||
				</div>
 | 
			
		||||
			
 | 
			
		||||
			<? IF BindHostEdit ?>
 | 
			
		||||
			<div class="form-group">
 | 
			
		||||
				<? IF BindHostEdit ?>
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
				<label for="inputBindHost" class="col-sm-2 control-label">BindHost:</label>
 | 
			
		||||
					<div class="col-sm-10">
 | 
			
		||||
					<? IF BindHostLoop ?>
 | 
			
		||||
@@ -64,106 +76,115 @@
 | 
			
		||||
						<input class="form-control" type="text" name="bindhost" value="<? VAR BindHost ?>"/>
 | 
			
		||||
					<? ENDIF ?>
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>
 | 
			
		||||
			<? ENDIF ?>
 | 
			
		||||
				</div>
 | 
			
		||||
				<? ENDIF ?>
 | 
			
		||||
			
 | 
			
		||||
				<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>			
 | 
			
		||||
 | 
			
		||||
			<div class="form-group">
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
				<label for="inputActive" class="col-sm-2 control-label">Active:</label>
 | 
			
		||||
					<div class="col-sm-10">
 | 
			
		||||
						<div class="checkboxSwitch">
 | 
			
		||||
							<input type="checkbox" value="1" name="doconnect" id="doconnect_checkbox"<? IF IRCConnectEnabled ?> checked="checked"<? ENDIF ?> />
 | 
			
		||||
						<div class="switch">
 | 
			
		||||
							<input type="checkbox" value="1" name="doconnect" class="cmn-toggle cmn-toggle-round-flat" id="doconnect_checkbox"<? IF IRCConnectEnabled ?> checked="checked"<? ENDIF ?> />
 | 
			
		||||
							<label for="doconnect_checkbox"></label>
 | 
			
		||||
							<span class="help-block">Connect to IRC & automatically re-connect</span>
 | 
			
		||||
						</div>
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>			
 | 
			
		||||
				</div>			
 | 
			
		||||
				
 | 
			
		||||
			<div class="form-group">
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
				<label for="inputServers" class="col-sm-2 control-label">Servers of this IRC network:</label>
 | 
			
		||||
					<div class="col-sm-10">
 | 
			
		||||
						<textarea class="form-control" name="servers" rows="5"><? LOOP ServerLoop ?><? VAR Server ?><? ENDLOOP ?></textarea>
 | 
			
		||||
						<span class="help-block">One server per line, "host [[+]port] [password]", + means SSL</span>
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>	
 | 
			
		||||
			
 | 
			
		||||
				</div>	
 | 
			
		||||
			</div> <!-- Network Info -->
 | 
			
		||||
			 
 | 
			
		||||
			<h3>Flood Protection</h3>
 | 
			
		||||
			<hr>
 | 
			
		||||
	
 | 
			
		||||
			<div class="form-group">
 | 
			
		||||
			 <!-- Flood Protection -->
 | 
			
		||||
			<div class="tab-pane fade" id="floodprotab">
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
				<label for="inputFloodpro" class="col-sm-2 control-label">Flood protection:</label>
 | 
			
		||||
					<div class="col-sm-10">
 | 
			
		||||
						<div class="checkboxSwitch">
 | 
			
		||||
							<input type="checkbox" name="floodprotection" id="floodprotection_checkbox" placeholder="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 ?> />
 | 
			
		||||
						<div class="switch">
 | 
			
		||||
							<input type="checkbox" name="floodprotection" id="floodprotection_checkbox" class="cmn-toggle cmn-toggle-round-flat" onchange="floodprotection_change();" <? IF FloodProtection ?>checked="checked"<? ENDIF ?> />
 | 
			
		||||
							<label for="floodprotection_checkbox"></label>
 | 
			
		||||
							<span class="help-block">This prevents 'excess flood' errors, which occur, when an IRC robot is command flooded or spammed.</span>
 | 
			
		||||
						</div>
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>	 
 | 
			
		||||
				</div>	 
 | 
			
		||||
			 
 | 
			
		||||
			<div class="form-group">
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
				<label for="inputFloodproRate" class="col-sm-2 control-label">Flood protection rate:</label>
 | 
			
		||||
					<div class="col-sm-10">
 | 
			
		||||
						<input class="form-control" type="number" name="floodrate" min="0.3" step="0.05" id="floodrate" placeholder="The number of seconds per line." <? IF FloodProtection ?> value="<? VAR FloodRate ?>" <? ELSE ?> value="1.00" disabled="disabled" <? ENDIF ?> /> seconds per line
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>			
 | 
			
		||||
				</div>			
 | 
			
		||||
			 
 | 
			
		||||
				
 | 
			
		||||
			<div class="form-group">
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
				<label for="inputFloodproBurst" class="col-sm-2 control-label">Flood protection burst:</label>
 | 
			
		||||
					<div class="col-sm-10">
 | 
			
		||||
						<input type="number" class="form-control" name="floodburst" min="1" id="inputFloodproBurst floodburst" placeholder="Defines the number of lines, which can be sent immediately." <? IF FloodProtection ?> value="<? VAR FloodBurst ?>" <? ELSE ?> value="4" disabled="disabled" <? ENDIF ?> /> lines can be sent immediately
 | 
			
		||||
					</div>
 | 
			
		||||
			</div>			
 | 
			
		||||
				</div>			
 | 
			
		||||
				
 | 
			
		||||
			<script type="text/javascript">floodprotection_change();</script>
 | 
			
		||||
			 
 | 
			
		||||
			<h3>Channels</h3>
 | 
			
		||||
			<hr>
 | 
			
		||||
	
 | 
			
		||||
			<? IF !Edit ?>
 | 
			
		||||
				<span class="info">You will be able to add + modify channels here after you created the network.</span><br />
 | 
			
		||||
			<? ELSE ?>
 | 
			
		||||
			<table class="table table-bordered table-hover table-striped">
 | 
			
		||||
				<thead>
 | 
			
		||||
					<tr>
 | 
			
		||||
						<td><a href="addchan?user=<? VAR Username ESC=URL ?>&network=<? VAR Name ESC=URL ?>" class="btn btn-primary btn-xs">Add</a></td>
 | 
			
		||||
						<? IF ChannelLoop ?>
 | 
			
		||||
						<td>Save</td>
 | 
			
		||||
						<td>Name</td>
 | 
			
		||||
						<td>CurModes</td>
 | 
			
		||||
						<td>DefModes</td>
 | 
			
		||||
						<td>BufferCount</td>
 | 
			
		||||
						<td>Options</td>
 | 
			
		||||
						<? ELSE ?>
 | 
			
		||||
						<td><- Add a channel (opens in same page)</td>
 | 
			
		||||
			<? ENDIF ?>
 | 
			
		||||
					</tr>
 | 
			
		||||
				</thead>
 | 
			
		||||
				<tbody>
 | 
			
		||||
					<? LOOP ChannelLoop SORTASC=Name ?>
 | 
			
		||||
					<tr>
 | 
			
		||||
						<td>
 | 
			
		||||
							<input type="hidden" name="channel" value="<? VAR Name ?>" /> <a href="editchan?user=<? VAR Username ESC=URL ?>&network=<? VAR Network ESC=URL ?>&name=<? VAR Name ESC=URL ?>" class="btn btn-warning btn-xs">Edit</a> <a href="delchan?user=<? VAR Username ESC=URL ?>&network=<? VAR Network ESC=URL ?>&name=<? VAR Name ESC=URL ?>" class="btn btn-danger btn-xs">Del</a> 
 | 
			
		||||
						</td>
 | 
			
		||||
						<td>
 | 
			
		||||
							<div class="checkboxSwitchMini">
 | 
			
		||||
								<input type="checkbox" name="save_<? VAR Name ?>"<? IF InConfig ?> checked="checked"<? ENDIF ?> />
 | 
			
		||||
								<label for="save_<? VAR Name ?>"></label>
 | 
			
		||||
							</div>
 | 
			
		||||
						</td>
 | 
			
		||||
						<td><? VAR Name ?></td>
 | 
			
		||||
						<td><? VAR CurModes ?></td>
 | 
			
		||||
						<td><? VAR DefModes ?></td>
 | 
			
		||||
						<td><? VAR BufferCount ?></td>
 | 
			
		||||
						<td><? VAR Options ?></td>
 | 
			
		||||
					</tr>
 | 
			
		||||
					<? ENDLOOP ?>
 | 
			
		||||
				</tbody>
 | 
			
		||||
			</table>
 | 
			
		||||
			<? ENDIF ?>
 | 
			
		||||
 	
 | 
			
		||||
			<h3>Modules</h3>
 | 
			
		||||
			<hr>
 | 
			
		||||
				<script type="text/javascript">floodprotection_change();</script>
 | 
			
		||||
			</div> <!-- Flood Protection -->
 | 
			
		||||
			
 | 
			
		||||
			<!-- Channels -->
 | 
			
		||||
			<div class="tab-pane fade" id="channelstab">
 | 
			
		||||
				<? IF !Edit ?>
 | 
			
		||||
					<span class="info">You will be able to add + modify channels here after you created the network.</span><br />
 | 
			
		||||
				<? ELSE ?>
 | 
			
		||||
				<table class="table table-bordered table-hover table-striped">
 | 
			
		||||
					<thead>
 | 
			
		||||
						<tr>
 | 
			
		||||
							<td><a href="addchan?user=<? VAR Username ESC=URL ?>&network=<? VAR Name ESC=URL ?>" class="btn btn-primary btn-xs">Add</a></td>
 | 
			
		||||
							<? IF ChannelLoop ?>
 | 
			
		||||
							<td>Save</td>
 | 
			
		||||
							<td>Name</td>
 | 
			
		||||
							<td>CurModes</td>
 | 
			
		||||
							<td>DefModes</td>
 | 
			
		||||
							<td>BufferCount</td>
 | 
			
		||||
							<td>Options</td>
 | 
			
		||||
							<? ELSE ?>
 | 
			
		||||
							<td><- Add a channel (opens in same page)</td>
 | 
			
		||||
							<? ENDIF ?>
 | 
			
		||||
						</tr>
 | 
			
		||||
					</thead>
 | 
			
		||||
					<tbody>
 | 
			
		||||
						<? LOOP ChannelLoop SORTASC=Name ?>
 | 
			
		||||
						<tr>
 | 
			
		||||
							<td>
 | 
			
		||||
								<input type="hidden" name="channel" value="<? VAR Name ?>" /> <a href="editchan?user=<? VAR Username ESC=URL ?>&network=<? VAR Network ESC=URL ?>&name=<? VAR Name ESC=URL ?>" class="btn btn-warning btn-xs">Edit</a> <a href="delchan?user=<? VAR Username ESC=URL ?>&network=<? VAR Network ESC=URL ?>&name=<? VAR Name ESC=URL ?>" class="btn btn-danger btn-xs">Del</a> 
 | 
			
		||||
							</td>
 | 
			
		||||
							<td class="text-center">
 | 
			
		||||
								<div class="switch">
 | 
			
		||||
									<input type="checkbox" name="save_<? VAR Name ?>" class="cmn-toggle cmn-toggle-round-flat"<? IF InConfig ?> checked="checked"<? ENDIF ?> />
 | 
			
		||||
									<label for="save_<? VAR Name ?>"></label>
 | 
			
		||||
								</div>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td><? VAR Name ?></td>
 | 
			
		||||
							<td><? VAR CurModes ?></td>
 | 
			
		||||
							<td><? VAR DefModes ?></td>
 | 
			
		||||
							<td><? VAR BufferCount ?></td>
 | 
			
		||||
							<td><? VAR Options ?></td>
 | 
			
		||||
						</tr>
 | 
			
		||||
						<? ENDLOOP ?>
 | 
			
		||||
					</tbody>
 | 
			
		||||
				</table>
 | 
			
		||||
				<? ENDIF ?>
 | 
			
		||||
			</div> <!-- Channels -->
 | 
			
		||||
			
 | 
			
		||||
			
 | 
			
		||||
			<!-- Modules -->
 | 
			
		||||
			<div class="tab-pane fade" id="modulestab">
 | 
			
		||||
			<table class="table table-bordered table-hover table-striped">
 | 
			
		||||
				<thead>
 | 
			
		||||
					<tr>
 | 
			
		||||
@@ -171,14 +192,16 @@
 | 
			
		||||
						<td>Name</td>
 | 
			
		||||
						<td>Arguments</td>
 | 
			
		||||
						<td>Description</td>
 | 
			
		||||
						<td>Global</td>
 | 
			
		||||
						<td>Networks</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 ?> />
 | 
			
		||||
							<div class="switch">
 | 
			
		||||
								<input type="checkbox" name="loadmod" id="lm_<? VAR Name ?>" class="cmn-toggle cmn-toggle-round-flat" value="<? VAR Name ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> />
 | 
			
		||||
								<label for="lm_<? VAR Name ?>"></label>
 | 
			
		||||
							</div>
 | 
			
		||||
						</td>
 | 
			
		||||
@@ -191,30 +214,51 @@
 | 
			
		||||
							<? ELSE ?>
 | 
			
		||||
							<input class="form-control" class="third" 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 ?> />
 | 
			
		||||
							<? IF ArgsHelpText ?> data-toggle="tooltip" data-placement="top" data-original-title="<? VAR ArgsHelpText ?>"<? ENDIF ?> autocomplete="off"/>
 | 
			
		||||
							<? 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 CanBeLoadedByUser ?>							
 | 
			
		||||
								<div class="checkboxSwitchMini">
 | 
			
		||||
									<input type="checkbox" name="loaded_by_user" id="loaded_by_user_<? VAR Name ?>" value="<? VAR Name ?>"<? IF LoadedByUser ?> checked="checked"  <? ENDIF ?> class="sr-only" disabled="disabled" /> <? ENDIF ?>
 | 
			
		||||
									<label for="loaded_by_user_<? VAR Name ?>"></label>
 | 
			
		||||
								</div>
 | 
			
		||||
							<? ENDIF ?>
 | 
			
		||||
						</td>
 | 
			
		||||
					</tr>
 | 
			
		||||
				<? ENDLOOP ?>
 | 
			
		||||
				</tbody>
 | 
			
		||||
			</table>
 | 
			
		||||
 | 
			
		||||
	<? LOOP EmbeddedModuleLoop ?>
 | 
			
		||||
		<? IF Embed ?>
 | 
			
		||||
			<h3>Module <? VAR ModName ?></h3>
 | 
			
		||||
			<? INC *Embed ?>
 | 
			
		||||
		<? ENDIF ?>
 | 
			
		||||
	<? ENDLOOP ?>
 | 
			
		||||
 | 
			
		||||
	<div class="pull-right">
 | 
			
		||||
		<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
		<input class="btn btn-success" type="submit" name="submit_return" value="<? IF Edit ?>Save<? ELSE ?>Save Network<? ENDIF ?>" />
 | 
			
		||||
 		<input class="btn btn-default" type="submit" name="submit_continue" value="<? IF Edit ?>Save and continue<? ELSE ?>Save and continue<? ENDIF ?>" />
 | 
			
		||||
	</div>
 | 
			
		||||
				</form>
 | 
			
		||||
			</div> <!-- Modules -->
 | 
			
		||||
			
 | 
			
		||||
			<!-- Other Modules -->
 | 
			
		||||
			<div class="tab-pane fade" id="othermods">
 | 
			
		||||
			<? LOOP EmbeddedModuleLoop ?>
 | 
			
		||||
				<? IF Embed ?>
 | 
			
		||||
					<h3>Module <? VAR ModName ?></h3>
 | 
			
		||||
					<? INC *Embed ?>
 | 
			
		||||
				<? ENDIF ?>
 | 
			
		||||
			<? ENDLOOP ?>
 | 
			
		||||
			</div> <!-- Other Modules -->
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
		</div>	
 | 
			
		||||
		
 | 
			
		||||
			<div class="panel-footer text-right">
 | 
			
		||||
				<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
				<input class="btn btn-success" type="submit" name="submit_return" value="<? IF Edit ?>Save<? ELSE ?>Save Network<? ENDIF ?>" />
 | 
			
		||||
				<input class="btn btn-default" type="submit" name="submit_continue" value="<? IF Edit ?>Save and continue<? ELSE ?>Save and continue<? ENDIF ?>" />
 | 
			
		||||
			</div>
 | 
			
		||||
				
 | 
			
		||||
	</div>
 | 
			
		||||
	
 | 
			
		||||
</div>
 | 
			
		||||
</form>	
 | 
			
		||||
<? INC Footer.tmpl ?>
 | 
			
		||||
@@ -1,17 +1,41 @@
 | 
			
		||||
<? 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>
 | 
			
		||||
<form class="form-horizontal" action="<? IF Edit ?>edituser<? ELSE ?>adduser<? ENDIF ?>" method="post">
 | 
			
		||||
	<? INC _csrf_check.tmpl ?>
 | 
			
		||||
	<input type="hidden" name="submitted" value="1" />
 | 
			
		||||
	
 | 
			
		||||
<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">Authentication</a></li>
 | 
			
		||||
                <li><a href="#ircinformationtab" data-toggle="tab">IRC Information</a></li>
 | 
			
		||||
                <li class="hidden-xs"><a href="#networkstab" data-toggle="tab">Networks</a></li> 
 | 
			
		||||
				<li class="hidden-xs"><a href="#modulestab" data-toggle="tab">Modules</a></li>	
 | 
			
		||||
				<li class="hidden-xs hidden-sm"><a href="#defaultsettingstab" data-toggle="tab">Default Settings</a></li>	
 | 
			
		||||
				<li class="hidden-xs hidden-sm"><a href="#flagstab" data-toggle="tab">Flags</a></li>	
 | 
			
		||||
				<li class="hidden-xs hidden-sm"><a href="#zncbehavetab" data-toggle="tab">ZNC Behavior</a></li>	
 | 
			
		||||
				<li class="hidden-xs hidden-sm"><a href="#othermodtab" data-toggle="tab">Other Modules</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">Networks</a></li> 
 | 
			
		||||
							<li class="hidden-sm"><a href="#modulestab" data-toggle="tab">Modules</a></li>	
 | 
			
		||||
							<li><a href="#defaultsettingstab" data-toggle="tab">Default Settings</a></li>	
 | 
			
		||||
							<li><a href="#flagstab" data-toggle="tab">Flags</a></li>	
 | 
			
		||||
							<li><a href="#zncbehavetab" data-toggle="tab">ZNC Behavior</a></li>	
 | 
			
		||||
                            <li><a href="#othermodtab" data-toggle="tab">Other Modules</a></li>	
 | 
			
		||||
                        </ul>
 | 
			
		||||
                </li>	
 | 
			
		||||
            </ul>
 | 
			
		||||
        </div>
 | 
			
		||||
		
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
        <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">Username:</label>
 | 
			
		||||
						<div class="col-sm-10">
 | 
			
		||||
						<? IF Clone ?>
 | 
			
		||||
@@ -22,79 +46,78 @@
 | 
			
		||||
							<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="Please enter a username." autocomplete="off" />
 | 
			
		||||
							<input type="text" class="form-control" id="inputUsername" name="user" value="<? VAR Username ?>" placeholder="Enter a username" autocomplete="off" />
 | 
			
		||||
						<? ENDIF ?>
 | 
			
		||||
						</div>
 | 
			
		||||
				</div>
 | 
			
		||||
					</div>
 | 
			
		||||
  
 | 
			
		||||
  
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<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." autocomplete="off">
 | 
			
		||||
							<input type="password" class="form-control" id="inputPassword" name="password" placeholder="Enter a secure password" autocomplete="off">
 | 
			
		||||
						</div>
 | 
			
		||||
				</div>
 | 
			
		||||
					</div>
 | 
			
		||||
  
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<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.">
 | 
			
		||||
							<input type="password" class="form-control" id="inputPassword2" name="password2" placeholder="Re-type the password">
 | 
			
		||||
						</div>
 | 
			
		||||
				</div>
 | 
			
		||||
					</div>
 | 
			
		||||
 | 
			
		||||
  
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<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" data-provide="markdown" 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>		
 | 
			
		||||
				</div><!-- Authentication -->
 | 
			
		||||
 | 
			
		||||
				<!-- IRC Information -->
 | 
			
		||||
				<div class="tab-pane fade" id="ircinformationtab"> 
 | 
			
		||||
 				<? IF !Edit ?>
 | 
			
		||||
					<div class="alert alert-info">Nick, AltNick, Ident, RealName and QuitMsg can be left empty to use default values.</div>
 | 
			
		||||
				<? ENDIF ?>
 | 
			
		||||
				<? ENDIF ?> 
 | 
			
		||||
		
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<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>
 | 
			
		||||
		
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<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>
 | 
			
		||||
  
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<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>
 | 
			
		||||
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<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>
 | 
			
		||||
  
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<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">
 | 
			
		||||
					</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 ?>
 | 
			
		||||
@@ -106,10 +129,10 @@
 | 
			
		||||
							<input class="form-control" type="text" name="bindhost" value="<? VAR BindHost ?>"/>
 | 
			
		||||
						<? ENDIF ?>
 | 
			
		||||
						</div>
 | 
			
		||||
				</div>
 | 
			
		||||
				<? ENDIF ?>
 | 
			
		||||
					</div>
 | 
			
		||||
					<? ENDIF ?>
 | 
			
		||||
  
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<div class="form-group">
 | 
			
		||||
					<label for="inputDCCBindHost" class="col-sm-2 control-label">DCCBindHost:</label>
 | 
			
		||||
						<div class="col-sm-10">
 | 
			
		||||
						<? IF DCCBindHostLoop ?>
 | 
			
		||||
@@ -121,233 +144,258 @@
 | 
			
		||||
							<input type="text" class="form-control" name="dccbindhost" value="<? VAR DCCBindHost ?>"/>
 | 
			
		||||
						<? ENDIF ?>		
 | 
			
		||||
						</div>
 | 
			
		||||
				</div>
 | 
			
		||||
					</div>
 | 
			
		||||
 | 
			
		||||
				<div class="form-group">
 | 
			
		||||
					<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 ?>
 | 
			
		||||
		
 | 
			
		||||
					</div>
 | 
			
		||||
				</div> <!-- IRC Information -->	
 | 
			
		||||
 | 
			
		||||
		<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">
 | 
			
		||||
				<!-- Networks -->
 | 
			
		||||
				<div class="tab-pane fade" id="networkstab">
 | 
			
		||||
				<? 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>
 | 
			
		||||
							<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 ?>
 | 
			
		||||
				</div><!-- Networks -->
 | 
			
		||||
 | 
			
		||||
				<!-- Modules -->
 | 
			
		||||
				<div class="tab-pane fade" id="modulestab">
 | 
			
		||||
				<table class="table table-bordered table-hover table-striped">
 | 
			
		||||
					<thead>
 | 
			
		||||
						<tr>
 | 
			
		||||
							<td>Status</td>
 | 
			
		||||
							<td>Flag Title</td>
 | 
			
		||||
							<td>Name</td>
 | 
			
		||||
							<td>Arguments</td>
 | 
			
		||||
							<td>Description</td>
 | 
			
		||||
							<td>Global</td>
 | 
			
		||||
							<td>Networks</td>
 | 
			
		||||
						</tr>
 | 
			
		||||
					</thead>
 | 
			
		||||
					<tbody>				
 | 
			
		||||
						<? LOOP OptionLoop ?>		
 | 
			
		||||
					<tbody>
 | 
			
		||||
						<? LOOP ModuleLoop ?>
 | 
			
		||||
						<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 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 ?> />
 | 
			
		||||
									<label for="lm_<? VAR Name ?>"></label>
 | 
			
		||||
								</div>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td>
 | 
			
		||||
								<b><? VAR DisplayName ?></b>
 | 
			
		||||
								<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 ?>
 | 
			
		||||
					<? 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>
 | 
			
		||||
				</table>
 | 
			
		||||
				</div> <!-- Modules -->
 | 
			
		||||
			
 | 
			
		||||
				<!-- Default Settings -->
 | 
			
		||||
				<div class="tab-pane fade" id="defaultsettingstab">
 | 
			
		||||
					<div class="form-group">
 | 
			
		||||
					<label for="inputModes" class="col-sm-2 control-label">Channel 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>
 | 
			
		||||
  
 | 
			
		||||
		<? LOOP EmbeddedModuleLoop ?>
 | 
			
		||||
		<? IF Embed ?>
 | 
			
		||||
		<h3>Module <? VAR ModName ?></h3>
 | 
			
		||||
		<hr>
 | 
			
		||||
					<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>
 | 
			
		||||
				</div> <!-- Default Settings -->
 | 
			
		||||
		
 | 
			
		||||
		<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 ?>
 | 
			
		||||
				<!-- 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>Status</td>
 | 
			
		||||
									<td>Flag Title</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>
 | 
			
		||||
		<? ENDIF ?>
 | 
			
		||||
		<? ENDLOOP ?>
 | 
			
		||||
				</div> <!-- Flags -->
 | 
			
		||||
 | 
			
		||||
	<div class="pull-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 ?>Save<? ELSE ?><? IF Clone ?>Clone<? ELSE ?>Create<? ENDIF ?><? ENDIF ?>" />
 | 
			
		||||
 			<input class="btn btn-default" type="submit" name="submit_continue" value="<? IF Edit ?>Save and continue<? ELSE ?><? IF Clone ?>Clone<? ELSE ?>Create<? ENDIF ?><? ENDIF ?>" />
 | 
			
		||||
 		<? ELSE ?>
 | 
			
		||||
 			<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 ?>" />
 | 
			
		||||
		<? ENDIF ?>
 | 
			
		||||
	</div>
 | 
			
		||||
				</form>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
	</div>
 | 
			
		||||
				<!-- ZNC Behavior -->
 | 
			
		||||
				<div class="tab-pane fade" id="zncbehavetab"> 
 | 
			
		||||
				<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="inputmaxQueryBuffers" class="col-sm-2 control-label">Max Query Buffers:</label>
 | 
			
		||||
						<div class="col-sm-10">
 | 
			
		||||
							<input class="form-control" type="number" id="inputmaxQueryBuffers" name="maxquerybuffers" value="<? VAR MaxQueryBuffers ?>" class="third" min="0" placeholder="Maximum number of query buffers. 0 is unlimited."/>
 | 
			
		||||
						</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>
 | 
			
		||||
				</div><!-- ZNC Behavior -->
 | 
			
		||||
		
 | 
			
		||||
				<!-- Other Modules -->
 | 
			
		||||
				<div class="tab-pane fade" id="othermodtab"> 
 | 
			
		||||
				<? 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 ?>
 | 
			
		||||
				</div><!-- Other Modules -->	
 | 
			
		||||
	
 | 
			
		||||
			</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 ?>Save<? ELSE ?><? IF Clone ?>Clone<? ELSE ?>Create<? ENDIF ?><? ENDIF ?>" />
 | 
			
		||||
					<input class="btn btn-default" type="submit" name="submit_continue" value="<? IF Edit ?>Save and continue<? ELSE ?><? IF Clone ?>Clone<? ELSE ?>Create<? ENDIF ?><? ENDIF ?>" />
 | 
			
		||||
				<? ELSE ?>
 | 
			
		||||
					<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 ?>" />
 | 
			
		||||
				<? ENDIF ?>
 | 
			
		||||
				</div>
 | 
			
		||||
	</div>
 | 
			
		||||
 </div>
 | 
			
		||||
 </form>
 | 
			
		||||
<? INC Footer.tmpl ?>
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
<div class="container col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Webadmin</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
<div class="container col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">List of Users</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
@@ -27,7 +27,7 @@
 | 
			
		||||
				<table class="table table-bordered table-hover table-striped table-list-search">
 | 
			
		||||
					<thead>
 | 
			
		||||
						<tr>
 | 
			
		||||
							<td>Action</td>
 | 
			
		||||
							<td><a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>adduser" class="btn btn-default btn-xs">Add</a></td>
 | 
			
		||||
							<td>Username</td>
 | 
			
		||||
							<td>Networks</td>
 | 
			
		||||
							<td>Clients</td>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,245 +1,280 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Settings</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
				<h3>Listen Port(s)</h3>
 | 
			
		||||
				<hr>
 | 
			
		||||
				<table class="table table-bordered table-hover table-striped">
 | 
			
		||||
					<thead>
 | 
			
		||||
<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="#listenporttab" data-toggle="tab">Listen Port(s)</a></li>
 | 
			
		||||
                <li><a href="#settingstab" data-toggle="tab">Settings</a></li>
 | 
			
		||||
                <li><a href="#globalmodtab" data-toggle="tab">Global Modules</a></li>   
 | 
			
		||||
            </ul>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="panel-body">
 | 
			
		||||
            <div class="tab-content">
 | 
			
		||||
				<!--Listen Port -->
 | 
			
		||||
                <div class="tab-pane fade in active" id="listenporttab">
 | 
			
		||||
					<table class="table table-bordered table-hover table-striped">
 | 
			
		||||
						<thead>
 | 
			
		||||
							<tr>
 | 
			
		||||
								<td>Port</td>
 | 
			
		||||
								<td>BindHost</td>
 | 
			
		||||
								<td>SSL</td>
 | 
			
		||||
								<td>IPv4</td>
 | 
			
		||||
								<td>IPv6</td>
 | 
			
		||||
								<td>IRC</td>
 | 
			
		||||
								<td>Web</td>
 | 
			
		||||
								<td>URIPrefix</td>
 | 
			
		||||
							</tr>
 | 
			
		||||
						</thead>
 | 
			
		||||
					<? LOOP ListenLoop ?>
 | 
			
		||||
						<tr>
 | 
			
		||||
						    <td>Port</td>
 | 
			
		||||
						    <td>BindHost</td>
 | 
			
		||||
						    <td>SSL</td>
 | 
			
		||||
						    <td>IPv4</td>
 | 
			
		||||
						    <td>IPv6</td>
 | 
			
		||||
						    <td>IRC</td>
 | 
			
		||||
						    <td>Web</td>
 | 
			
		||||
						    <td>URIPrefix</td>
 | 
			
		||||
							<td><? VAR Port ?></td>
 | 
			
		||||
							<td><? VAR BindHost DEFAULT=** ?></td>
 | 
			
		||||
							<td>
 | 
			
		||||
							<div class="checkboxSwitchMini">
 | 
			
		||||
								<input type="checkbox" disabled="disabled" id="<? VAR IsSSL ?>" <? IF IsSSL ?>checked="checked"<? ENDIF ?>/>
 | 
			
		||||
								<label for="<? VAR IsSSL ?>"></label>
 | 
			
		||||
							</div>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td>
 | 
			
		||||
							<div class="checkboxSwitchMini">
 | 
			
		||||
								<input type="checkbox" disabled="disabled" id="<? VAR IsIPV4 ?>" <? IF IsIPV4 ?>checked="checked"<? ENDIF ?>/>
 | 
			
		||||
								<label for="<? VAR IsIPV4 ?>"></label>
 | 
			
		||||
							</div>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td>
 | 
			
		||||
							<div class="checkboxSwitchMini">
 | 
			
		||||
								<input type="checkbox" id="<? VAR IsIPV6 ?>" disabled="disabled" <? IF IsIPV6 ?>checked="checked"<? ENDIF ?>/>
 | 
			
		||||
								<label for="<? VAR IsIPV6 ?>"></label>
 | 
			
		||||
							</div>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td>
 | 
			
		||||
							<div class="checkboxSwitchMini">
 | 
			
		||||
								<input type="checkbox" id="<? VAR IsIRC ?>" disabled="disabled" <? IF IsIRC ?>checked="checked"<? ENDIF ?>/>
 | 
			
		||||
								<label for="<? VAR IsIRC ?>"></label>
 | 
			
		||||
							</div>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td>
 | 
			
		||||
							<div class="checkboxSwitchMini">
 | 
			
		||||
								<input type="checkbox" id="<? VAR IsWeb ?>" disabled="disabled" <? IF IsWeb ?>checked="checked"<? ENDIF ?>/>
 | 
			
		||||
								<label for="<? VAR IsWeb ?>"></label>
 | 
			
		||||
							</div>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td><? VAR URIPrefix ?></td>
 | 
			
		||||
							<td>
 | 
			
		||||
							<? IF SuggestDeletion ?>
 | 
			
		||||
								<form action="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>del_listener" method="post">
 | 
			
		||||
									<? INC _csrf_check.tmpl ?>
 | 
			
		||||
									<input name="host" type="hidden" value="<? VAR BindHost ?>"/>
 | 
			
		||||
									<input name="port" type="hidden" value="<? VAR Port ?>"/>
 | 
			
		||||
									<input name="ipv4" type="hidden" value="<? VAR IsIPV4 ?>"/>
 | 
			
		||||
									<input name="ipv6" type="hidden" value="<? VAR IsIPV6 ?>"/>
 | 
			
		||||
									<input type="submit" class="btn btn-danger btn-xs" value="Del"/>
 | 
			
		||||
								</form>
 | 
			
		||||
							<? ENDIF ?>
 | 
			
		||||
							</td>
 | 
			
		||||
						</tr>
 | 
			
		||||
					</thead>
 | 
			
		||||
				<? LOOP ListenLoop ?>
 | 
			
		||||
					<tr>
 | 
			
		||||
						<td><? VAR Port ?></td>
 | 
			
		||||
						<td><? VAR BindHost DEFAULT=** ?></td>
 | 
			
		||||
						<td>
 | 
			
		||||
						<div class="checkboxSwitchMini">
 | 
			
		||||
							<input type="checkbox" disabled="disabled" id="<? VAR IsSSL ?>" <? IF IsSSL ?>checked="checked"<? ENDIF ?>/>
 | 
			
		||||
							<label for="<? VAR IsSSL ?>"></label>
 | 
			
		||||
						</div>
 | 
			
		||||
						</td>
 | 
			
		||||
						<td>
 | 
			
		||||
						<div class="checkboxSwitchMini">
 | 
			
		||||
							<input type="checkbox" disabled="disabled" id="<? VAR IsIPV4 ?>" <? IF IsIPV4 ?>checked="checked"<? ENDIF ?>/>
 | 
			
		||||
							<label for="<? VAR IsIPV4 ?>"></label>
 | 
			
		||||
						</div>
 | 
			
		||||
						</td>
 | 
			
		||||
						<td>
 | 
			
		||||
						<div class="checkboxSwitchMini">
 | 
			
		||||
							<input type="checkbox" id="<? VAR IsIPV6 ?>" disabled="disabled" <? IF IsIPV6 ?>checked="checked"<? ENDIF ?>/>
 | 
			
		||||
							<label for="<? VAR IsIPV6 ?>"></label>
 | 
			
		||||
						</div>
 | 
			
		||||
						</td>
 | 
			
		||||
						<td>
 | 
			
		||||
						<div class="checkboxSwitchMini">
 | 
			
		||||
							<input type="checkbox" id="<? VAR IsIRC ?>" disabled="disabled" <? IF IsIRC ?>checked="checked"<? ENDIF ?>/>
 | 
			
		||||
							<label for="<? VAR IsIRC ?>"></label>
 | 
			
		||||
						</div>
 | 
			
		||||
						</td>
 | 
			
		||||
						<td>
 | 
			
		||||
						<div class="checkboxSwitchMini">
 | 
			
		||||
							<input type="checkbox" id="<? VAR IsWeb ?>" disabled="disabled" <? IF IsWeb ?>checked="checked"<? ENDIF ?>/>
 | 
			
		||||
							<label for="<? VAR IsWeb ?>"></label>
 | 
			
		||||
						</div>
 | 
			
		||||
						</td>
 | 
			
		||||
						<td><? VAR URIPrefix ?></td>
 | 
			
		||||
						<td>
 | 
			
		||||
						<? IF SuggestDeletion ?>
 | 
			
		||||
							<form action="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>del_listener" method="post">
 | 
			
		||||
					<? ENDLOOP ?>
 | 
			
		||||
						<tr>
 | 
			
		||||
							<form action="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>add_listener" method="post">
 | 
			
		||||
								<? INC _csrf_check.tmpl ?>
 | 
			
		||||
								<input name="host" type="hidden" value="<? VAR BindHost ?>"/>
 | 
			
		||||
								<input name="port" type="hidden" value="<? VAR Port ?>"/>
 | 
			
		||||
								<input name="ipv4" type="hidden" value="<? VAR IsIPV4 ?>"/>
 | 
			
		||||
								<input name="ipv6" type="hidden" value="<? VAR IsIPV6 ?>"/>
 | 
			
		||||
								<input type="submit" class="btn btn-danger btn-xs" value="Del"/>
 | 
			
		||||
								<td>
 | 
			
		||||
									<input type="number" class="form-control" name="port" min="1" max="65535" class="number" maxlength="5" placeholder="Port 1 to 65535"/>
 | 
			
		||||
								</td>
 | 
			
		||||
								<td>
 | 
			
		||||
									<input type="text" class="form-control" name="host" value="*"/>
 | 
			
		||||
								</td>
 | 
			
		||||
								<td>
 | 
			
		||||
									<div class="checkboxSwitchMini">
 | 
			
		||||
										<input type="checkbox" id="ssl"/>
 | 
			
		||||
										<label for="ssl"></label>
 | 
			
		||||
									</div>
 | 
			
		||||
								</td>
 | 
			
		||||
								<td>
 | 
			
		||||
									<div class="checkboxSwitchMini">
 | 
			
		||||
										<input type="checkbox" id="ipv4" name="ipv4" checked="checked"/>
 | 
			
		||||
										<label for="ipv4"></label>
 | 
			
		||||
									</div>
 | 
			
		||||
								</td>
 | 
			
		||||
								<td>
 | 
			
		||||
									<div class="checkboxSwitchMini">
 | 
			
		||||
										<input type="checkbox" id="ipv6" name="ipv6" checked="checked"/>
 | 
			
		||||
										<label for="ipv6"></label>
 | 
			
		||||
									</div>
 | 
			
		||||
								</td>
 | 
			
		||||
								<td>
 | 
			
		||||
									<div class="checkboxSwitchMini">
 | 
			
		||||
										<input type="checkbox" id="irc" name="irc" checked="checked"/>
 | 
			
		||||
										<label for="irc"></label>
 | 
			
		||||
									</div>
 | 
			
		||||
								</td>
 | 
			
		||||
								<td>
 | 
			
		||||
									<div class="checkboxSwitchMini">
 | 
			
		||||
										<input type="checkbox" id="web" name="web" checked="checked"/>
 | 
			
		||||
										<label for="web"></label>
 | 
			
		||||
									</div>
 | 
			
		||||
								</td>
 | 
			
		||||
								<td><input type="text" class="form-control" name="uriprefix" value="/"></td>
 | 
			
		||||
								<td><input type="submit" class="btn btn-primary btn-xs" value="Add"/></td>
 | 
			
		||||
							</form>
 | 
			
		||||
						<? ENDIF ?>
 | 
			
		||||
						</td>
 | 
			
		||||
					</tr>
 | 
			
		||||
				<? ENDLOOP ?>
 | 
			
		||||
					<tr>
 | 
			
		||||
						<form action="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>add_listener" method="post">
 | 
			
		||||
							<? INC _csrf_check.tmpl ?>
 | 
			
		||||
							<td>
 | 
			
		||||
							<input type="number" class="form-control" name="port" min="1" max="65535" class="number" maxlength="5" placeholder="Port 1 to 65535"/>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td>
 | 
			
		||||
							<input type="text" class="form-control" name="host" value="*"/>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td>
 | 
			
		||||
							<div class="checkboxSwitchMini">
 | 
			
		||||
								<input type="checkbox" id="ssl"/>
 | 
			
		||||
								<label for="ssl"></label>
 | 
			
		||||
						</tr>
 | 
			
		||||
					</table>
 | 
			
		||||
				</div><!--Listen Port -->
 | 
			
		||||
				
 | 
			
		||||
				<!-- Settings -->
 | 
			
		||||
				<div class="tab-pane fade" id="settingstab">
 | 
			
		||||
					<form class="form-horizontal" action="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>settings" method="post">
 | 
			
		||||
					<? INC _csrf_check.tmpl ?>
 | 
			
		||||
					<input type="hidden" name="submitted" value="1" />
 | 
			
		||||
						<div class="form-group">
 | 
			
		||||
						<label for="inputSkins" class="col-sm-2 control-label">Skin(s):</label>
 | 
			
		||||
							<div class="col-sm-10">
 | 
			
		||||
								<select class="form-control" id="inputSkins" 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>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td>
 | 
			
		||||
							<div class="checkboxSwitchMini">
 | 
			
		||||
								<input type="checkbox" id="ipv4" name="ipv4" checked="checked"/>
 | 
			
		||||
								<label for="ipv4"></label>
 | 
			
		||||
							</div>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td>
 | 
			
		||||
							<div class="checkboxSwitchMini">
 | 
			
		||||
								<input type="checkbox" id="ipv6" name="ipv6" checked="checked"/>
 | 
			
		||||
								<label for="ipv6"></label>
 | 
			
		||||
							</div>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td>
 | 
			
		||||
							<div class="checkboxSwitchMini">
 | 
			
		||||
								<input type="checkbox" id="irc" name="irc" checked="checked"/>
 | 
			
		||||
								<label for="irc"></label>
 | 
			
		||||
							</div>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td>
 | 
			
		||||
							<div class="checkboxSwitchMini">
 | 
			
		||||
								<input type="checkbox" id="web" name="web" checked="checked"/>
 | 
			
		||||
								<label for="web"></label>
 | 
			
		||||
							</div>
 | 
			
		||||
							</td>
 | 
			
		||||
							<td><input type="text" class="form-control" name="uriprefix" value="/"></td>
 | 
			
		||||
							<td><input type="submit" class="btn btn-primary btn-xs" value="Add"/></td>
 | 
			
		||||
						</form>
 | 
			
		||||
					</tr>
 | 
			
		||||
				</table>
 | 
			
		||||
 
 | 
			
		||||
	<form class="form-horizontal" action="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>settings" method="post">
 | 
			
		||||
	<? INC _csrf_check.tmpl ?>
 | 
			
		||||
	<input type="hidden" name="submitted" value="1" />
 | 
			
		||||
		<h3>Settings</h3>
 | 
			
		||||
		<hr>
 | 
			
		||||
		<div class="form-group">
 | 
			
		||||
			<label for="inputSkins" class="col-sm-2 control-label">Skin(s):</label>
 | 
			
		||||
				<div class="col-sm-10">
 | 
			
		||||
					<select class="form-control" id="inputSkins" 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>
 | 
			
		||||
  					 
 | 
			
		||||
		<div class="form-group">
 | 
			
		||||
			<label for="inputStatusPrefix" class="col-sm-2 control-label">Status Prefix:</label>
 | 
			
		||||
				<div class="col-sm-10">
 | 
			
		||||
					<input type="text" class="form-control" id="inputStatusPrefix" value="<? VAR StatusPrefix ?>" placeholder="The prefix for the status and module queries."/>
 | 
			
		||||
					<div class="alert alert-info help-block">Default for new users only.</div>
 | 
			
		||||
				</div>
 | 
			
		||||
		</div>
 | 
			
		||||
 | 
			
		||||
		<div class="form-group">
 | 
			
		||||
			<label for="inputmaxBufferSize" class="col-sm-2 control-label">Maximum Buffer Size:</label>
 | 
			
		||||
				<div class="col-sm-10">
 | 
			
		||||
					<input type="number" class="form-control" id="inputmaxBufferSize" name="maxbufsize" value="<? VAR MaxBufferSize ?>" placeholder="Sets the global Max Buffer Size a user can have."/>
 | 
			
		||||
				</div>
 | 
			
		||||
		</div>
 | 
			
		||||
  
 | 
			
		||||
		<div class="form-group">
 | 
			
		||||
			<label for="inputConnectDelay" class="col-sm-2 control-label">Connect Delay:</label>
 | 
			
		||||
				<div class="col-sm-10">
 | 
			
		||||
					<input type="number" class="form-control" id="inputConnectDelay" name="connectdelay" value="<? VAR ConnectDelay ?>" placeholder="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>
 | 
			
		||||
  				 
 | 
			
		||||
		<div class="form-group">
 | 
			
		||||
			<label for="inputServerThrottle" class="col-sm-2 control-label">Server Throttle:</label>
 | 
			
		||||
				<div class="col-sm-10">
 | 
			
		||||
					<input type="number" class="form-control" id="inputServerThrottle" name="serverthrottle" value="<? VAR ServerThrottle ?>" placeholder="The time between two connect attempts to the same hostname." />
 | 
			
		||||
				</div>
 | 
			
		||||
		</div>
 | 
			
		||||
 | 
			
		||||
		<div class="form-group">
 | 
			
		||||
			<label for="inputAnonIPLimit" class="col-sm-2 control-label">Anonymous IP Limit:</label>
 | 
			
		||||
				<div class="col-sm-10">
 | 
			
		||||
					<input type="number" class="form-control" id="inputAnonIPLimit" name="anoniplimit" value="<? VAR AnonIPLimit ?>" placeholder="Limits the number of unidentified connections per IP." />
 | 
			
		||||
				</div>
 | 
			
		||||
		</div>
 | 
			
		||||
 | 
			
		||||
		<div class="form-group">
 | 
			
		||||
			<label for="inputprotectWeb" class="col-sm-2 control-label">Protect Web Sessions:</label>
 | 
			
		||||
				<div class="col-sm-10">
 | 
			
		||||
					<div class="checkboxSwitch">
 | 
			
		||||
						<input type="checkbox" class="form-control" name="protectwebsessions" id="protectwebsessions_checkbox"<? IF ProtectWebSessions ?> checked="checked"<? ENDIF ?> />
 | 
			
		||||
						<label for="protectwebsessions_checkbox"></label>
 | 
			
		||||
						<div class="alert alert-info help-block">Disallow IP changing during each web session</div>
 | 
			
		||||
					</div>
 | 
			
		||||
				</div>
 | 
			
		||||
		</div>
 | 
			
		||||
  
 | 
			
		||||
		<div class="form-group">
 | 
			
		||||
			<label for="inputMOTD" class="col-sm-2 control-label">MOTD:</label>
 | 
			
		||||
				<div class="col-sm-10">
 | 
			
		||||
					<textarea type="text" class="form-control" id="inputMOTD" name="motd" cols="70" rows="5" class="monospace"><? LOOP MOTDLoop ?><? VAR Line ?><? ENDLOOP ?></textarea>
 | 
			
		||||
					<div class="alert alert-info help-block">"Message of the Day", sent to all ZNC users on connect.</div>
 | 
			
		||||
				</div>
 | 
			
		||||
		</div>
 | 
			
		||||
  
 | 
			
		||||
		<div class="form-group">
 | 
			
		||||
			<label for="inputBindHosts" class="col-sm-2 control-label">BindHosts:</label>
 | 
			
		||||
				<div class="col-sm-10">
 | 
			
		||||
					<textarea type="text" class="form-control" id="inputBindHosts" name="bindhosts" rows="5">
 | 
			
		||||
					<? LOOP BindHostLoop ?>
 | 
			
		||||
					<? VAR BindHost ?>
 | 
			
		||||
					<? ENDLOOP ?>
 | 
			
		||||
					</textarea>
 | 
			
		||||
					<div class="alert alert-info help-block">One host name or IP entry per line.</div>
 | 
			
		||||
				</div>
 | 
			
		||||
		</div>
 | 
			
		||||
  
 | 
			
		||||
		<h3>Global 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 class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
 | 
			
		||||
						<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 class="form-group">
 | 
			
		||||
						<label for="inputStatusPrefix" class="col-sm-2 control-label">Status Prefix:</label>
 | 
			
		||||
							<div class="col-sm-10">
 | 
			
		||||
								<input type="text" class="form-control" id="inputStatusPrefix" value="<? VAR StatusPrefix ?>" placeholder="The prefix for the status and module queries."/>
 | 
			
		||||
								<div class="alert alert-info help-block">Default for new users only.</div>
 | 
			
		||||
							</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 class="mod_args">
 | 
			
		||||
							<input type="text" class="form-control" 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 ?> />
 | 
			
		||||
						</td>
 | 
			
		||||
						<td class="mod_descr"><? VAR Description ?></td>
 | 
			
		||||
					</tr>
 | 
			
		||||
					<? ENDLOOP ?>
 | 
			
		||||
				</tbody>
 | 
			
		||||
			</table>
 | 
			
		||||
						</div>
 | 
			
		||||
 | 
			
		||||
	<div class="pull-right">
 | 
			
		||||
		<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
		<input class="btn btn-success" type="submit" value="Save" />
 | 
			
		||||
	</div>
 | 
			
		||||
	 
 | 
			
		||||
	</form>
 | 
			
		||||
						<div class="form-group">
 | 
			
		||||
						<label for="inputmaxBufferSize" class="col-sm-2 control-label">Maximum Buffer Size:</label>
 | 
			
		||||
							<div class="col-sm-10">
 | 
			
		||||
								<input type="number" class="form-control" id="inputmaxBufferSize" name="maxbufsize" value="<? VAR MaxBufferSize ?>" placeholder="Sets the global Max Buffer Size a user can have."/>
 | 
			
		||||
							</div>
 | 
			
		||||
						</div>
 | 
			
		||||
  
 | 
			
		||||
						<div class="form-group">
 | 
			
		||||
						<label for="inputConnectDelay" class="col-sm-2 control-label">Connect Delay:</label>
 | 
			
		||||
							<div class="col-sm-10">
 | 
			
		||||
								<input type="number" class="form-control" id="inputConnectDelay" name="connectdelay" value="<? VAR ConnectDelay ?>" placeholder="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>
 | 
			
		||||
  				 
 | 
			
		||||
						<div class="form-group">
 | 
			
		||||
						<label for="inputServerThrottle" class="col-sm-2 control-label">Server Throttle:</label>
 | 
			
		||||
							<div class="col-sm-10">
 | 
			
		||||
								<input type="number" class="form-control" id="inputServerThrottle" name="serverthrottle" value="<? VAR ServerThrottle ?>" placeholder="The time between two connect attempts to the same hostname." />
 | 
			
		||||
							</div>
 | 
			
		||||
						</div>
 | 
			
		||||
 | 
			
		||||
						<div class="form-group">
 | 
			
		||||
						<label for="inputAnonIPLimit" class="col-sm-2 control-label">Anonymous IP Limit:</label>
 | 
			
		||||
							<div class="col-sm-10">
 | 
			
		||||
								<input type="number" class="form-control" id="inputAnonIPLimit" name="anoniplimit" value="<? VAR AnonIPLimit ?>" placeholder="Limits the number of unidentified connections per IP." />
 | 
			
		||||
							</div>
 | 
			
		||||
						</div>
 | 
			
		||||
 | 
			
		||||
						<div class="form-group">
 | 
			
		||||
						<label for="inputprotectWeb" class="col-sm-2 control-label">Protect Web Sessions:</label>
 | 
			
		||||
							<div class="col-sm-10">
 | 
			
		||||
								<div class="switch">
 | 
			
		||||
									<input type="checkbox" name="protectwebsessions" id="protectwebsessions_checkbox" class="cmn-toggle cmn-toggle-round-flat"<? IF ProtectWebSessions ?> checked="checked"<? ENDIF ?> />
 | 
			
		||||
									<label for="protectwebsessions_checkbox"></label>
 | 
			
		||||
									<div class="alert alert-info help-block">Disallow IP changing during each web session</div>
 | 
			
		||||
								</div>
 | 
			
		||||
							</div>
 | 
			
		||||
						</div>
 | 
			
		||||
  
 | 
			
		||||
						<div class="form-group">
 | 
			
		||||
						<label for="inputMOTD" class="col-sm-2 control-label">MOTD:</label>
 | 
			
		||||
							<div class="col-sm-10">
 | 
			
		||||
								<textarea type="text" class="form-control" id="inputMOTD" name="motd" cols="70" rows="5" class="monospace"><? LOOP MOTDLoop ?><? VAR Line ?><? ENDLOOP ?></textarea>
 | 
			
		||||
								<div class="alert alert-info help-block">"Message of the Day", sent to all ZNC users on connect.</div>
 | 
			
		||||
							</div>
 | 
			
		||||
						</div>
 | 
			
		||||
  
 | 
			
		||||
						<div class="form-group">
 | 
			
		||||
						<label for="inputBindHosts" class="col-sm-2 control-label">BindHosts:</label>
 | 
			
		||||
							<div class="col-sm-10">
 | 
			
		||||
								<textarea type="text" class="form-control" id="inputBindHosts" name="bindhosts" rows="5">
 | 
			
		||||
								<? LOOP BindHostLoop ?>
 | 
			
		||||
								<? VAR BindHost ?>
 | 
			
		||||
								<? ENDLOOP ?>
 | 
			
		||||
								</textarea>
 | 
			
		||||
								<div class="alert alert-info help-block">One host name or IP entry per line.</div>
 | 
			
		||||
							</div>
 | 
			
		||||
						</div>
 | 
			
		||||
				</div><!-- Settings -->
 | 
			
		||||
		
 | 
			
		||||
				<!-- Global Module Settings -->
 | 
			
		||||
				<div class="tab-pane fade" id="globalmodtab"> 
 | 
			
		||||
					<table class="table table-bordered table-hover table-striped">
 | 
			
		||||
						<thead>
 | 
			
		||||
							<tr>
 | 
			
		||||
								<td>Status</td>
 | 
			
		||||
								<td>Name</td>
 | 
			
		||||
								<td>Arguments</td>
 | 
			
		||||
								<td>Description</td>
 | 
			
		||||
								<td>Global</td>
 | 
			
		||||
								<td>Networks</td>
 | 
			
		||||
							</tr>
 | 
			
		||||
						</thead>
 | 
			
		||||
						<tbody>
 | 
			
		||||
							<? LOOP ModuleLoop ?>
 | 
			
		||||
							<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
 | 
			
		||||
								<td>
 | 
			
		||||
									<div class="switch">
 | 
			
		||||
										<input type="checkbox" name="loadmod" id="lm_<? VAR Name ?>" class="cmn-toggle cmn-toggle-round-flat" 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 class="mod_args">
 | 
			
		||||
									<input type="text" class="form-control" 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 ?> />
 | 
			
		||||
								</td>
 | 
			
		||||
								<td class="mod_descr"><? VAR Description ?></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>
 | 
			
		||||
								<td>
 | 
			
		||||
									<? IF CanBeLoadedByUser ?>
 | 
			
		||||
										<div class="checkboxSwitchMini">
 | 
			
		||||
											<input type="checkbox" name="loaded_by_user" id="loaded_by_user_<? VAR Name ?>" value="<? VAR Name ?>"<? IF LoadedByAllNetworks ?> checked="checked"  <? ENDIF ?> class="sr-only" disabled="disabled" />
 | 
			
		||||
											<? ENDIF ?>
 | 
			
		||||
											<label for="loaded_by_user_<? VAR Name ?>"></label>
 | 
			
		||||
										</div>
 | 
			
		||||
									<? IF LoadedBySomeUsers && !LoadedByAllUsers ?>
 | 
			
		||||
										<script type="text/javascript">document.getElementById("loaded_by_user_<? VAR Name ?>").indeterminate = true;</script>								
 | 
			
		||||
									<? ENDIF ?>
 | 
			
		||||
								</td>
 | 
			
		||||
							</tr>
 | 
			
		||||
							<? ENDLOOP ?>
 | 
			
		||||
						</tbody>
 | 
			
		||||
					</table>
 | 
			
		||||
				</div><!-- Global Module Settings -->
 | 
			
		||||
			</div>
 | 
			
		||||
        </div>
 | 
			
		||||
           
 | 
			
		||||
			
 | 
			
		||||
		<div class="panel-footer text-right">	
 | 
			
		||||
			<input class="btn btn-danger" type="reset" value="Reset">
 | 
			
		||||
			<input class="btn btn-success" type="submit" value="Save" />
 | 
			
		||||
		</div>
 | 
			
		||||
	
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
</div>	
 | 
			
		||||
</form> 
 | 
			
		||||
<? INC Footer.tmpl ?>
 | 
			
		||||
@@ -1,9 +1,60 @@
 | 
			
		||||
<? INC Header.tmpl ?>
 | 
			
		||||
 | 
			
		||||
<div class="container">
 | 
			
		||||
<div class="container col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="panel panel-default">
 | 
			
		||||
		<div class="panel-heading">Information</div>
 | 
			
		||||
		<div class="panel-heading">Traffic Information</div>
 | 
			
		||||
			<div class="panel-body">
 | 
			
		||||
				<div class="row">
 | 
			
		||||
					<div class="col-md-6"><div id="totalstats"></div></div>
 | 
			
		||||
					<div class="col-md-6"><div id="usertraffic"></div></div>
 | 
			
		||||
				</div>
 | 
			
		||||
			
 | 
			
		||||
			
 | 
			
		||||
			<script type="text/javascript" src="//www.google.com/jsapi"></script>
 | 
			
		||||
			<script>
 | 
			
		||||
				google.load('visualization', '1.0', {'packages':['corechart']});
 | 
			
		||||
				google.setOnLoadCallback(drawChart);
 | 
			
		||||
					function drawChart() {
 | 
			
		||||
						var data = google.visualization.arrayToDataTable([
 | 
			
		||||
							['Task', 'ZNC Stats'],
 | 
			
		||||
							['Users', <? VAR TotalUsers ?>],
 | 
			
		||||
							['Networks', <? VAR TotalNetworks ?>]
 | 
			
		||||
						]);
 | 
			
		||||
						var options = {
 | 
			
		||||
							width: 503,
 | 
			
		||||
							pieHole: 0.3,
 | 
			
		||||
							colors: ['#428bca', '#5bc0de'],
 | 
			
		||||
							backgroundColor: 'transparent',
 | 
			
		||||
							legend: {textStyle: {color: 'gray'}}
 | 
			
		||||
						};
 | 
			
		||||
						var chart = new google.visualization.PieChart(document.getElementById('totalstats'));
 | 
			
		||||
						chart.draw(data, options);
 | 
			
		||||
					}
 | 
			
		||||
				</script>
 | 
			
		||||
				<script>
 | 
			
		||||
					google.load('visualization', '1.0', {'packages':['corechart']});
 | 
			
		||||
					google.setOnLoadCallback(drawChart2);
 | 
			
		||||
					function drawChart2() {
 | 
			
		||||
						var data2 = google.visualization.arrayToDataTable([
 | 
			
		||||
							['Task', 'User Traffic'],
 | 
			
		||||
							['Attached Networks', <? VAR AttachedNetworks ?>],
 | 
			
		||||
							['Client Connections', <? VAR TotalCConnections ?>],
 | 
			
		||||
							['IRC Connections', <? VAR TotalIRCConnections ?>]
 | 
			
		||||
						]);
 | 
			
		||||
						var options2 = {
 | 
			
		||||
							width: 503,
 | 
			
		||||
							pieHole: 0.3,
 | 
			
		||||
							colors: ['#5cb85c', '#f0ad4e', '#d9534f'],
 | 
			
		||||
							backgroundColor: 'transparent',
 | 
			
		||||
							legend: {textStyle: {color: 'gray'}}
 | 
			
		||||
						};
 | 
			
		||||
						var chart2 = new google.visualization.PieChart(document.getElementById('usertraffic'));
 | 
			
		||||
						chart2.draw(data2, options2);
 | 
			
		||||
					}
 | 
			
		||||
			</script>
 | 
			
		||||
 
 | 
			
		||||
			
 | 
			
		||||
			
 | 
			
		||||
				<table class="table table-bordered table-hover">
 | 
			
		||||
					<tbody>
 | 
			
		||||
						<tr>
 | 
			
		||||
@@ -72,10 +123,9 @@
 | 
			
		||||
						<? ENDIF ?>
 | 
			
		||||
					</tbody>
 | 
			
		||||
				</table>
 | 
			
		||||
				
 | 
			
		||||
						
 | 
			
		||||
<? IF IsAdmin && TrafficLoop ?>
 | 
			
		||||
	<h3>Traffic</h3>
 | 
			
		||||
	<hr>
 | 
			
		||||
	<br />
 | 
			
		||||
	<div class="row">
 | 
			
		||||
		<div class="col-md-4 col-md-offset-8"> 
 | 
			
		||||
            <div class="input-group custom-search-form" style=".custom-search-form{margin-top:5px;}">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user