mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
109 lines
3.5 KiB
Cheetah
109 lines
3.5 KiB
Cheetah
<? INC Header.tmpl ?>
|
|
|
|
<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 ?>
|
|
|
|
<h3>Network Info</h3>
|
|
<div class="sectionbg">
|
|
<div class="sectionbody">
|
|
<div class="subsection half">
|
|
<div class="inputlabel">Servers:</div>
|
|
<div><textarea name="servers" cols="70" rows="5"><? LOOP ServerLoop ?><? VAR Server ?>
|
|
<? ENDLOOP ?>
|
|
</textarea></div>
|
|
<br /><span class="info">One server per line, host [[+]port] [password]</span>
|
|
</div>
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<h3>Channels</h3>
|
|
<? IF !Edit ?>
|
|
<span class="info">You will be able to add + modify channels here after you created the network.</span><br />
|
|
<? ELSE ?>
|
|
<div class="sectionbg">
|
|
<div class="sectionbody">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td>[<a href="addchan?user=<? VAR Username ESC=URL ?>&network=<? VAR Name ESC=URL ?>">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 class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
|
<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 ?>">Edit</a>] [<a href="delchan?user=<? VAR Username ESC=URL ?>&network=<? VAR Network ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Del</a>]
|
|
</td>
|
|
<td><input type="checkbox" name="save_<? VAR Name ?>"<? IF InConfig ?> checked="checked"<? ENDIF ?> /></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>
|
|
</div>
|
|
</div>
|
|
<? ENDIF ?>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<h3>Modules</h3>
|
|
<div class="sectionbg">
|
|
<div class="sectionbody">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Arguments</td>
|
|
<td>Description</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<? LOOP ModuleLoop ?>
|
|
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
|
<td class="mod_name">
|
|
<input type="checkbox" name="loadmod" id="lm_<? VAR Name ?>" value="<? VAR Name ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ?>"> <? IF Wiki ?><a href="http://wiki.znc.in/<? VAR Wiki ?>"><? VAR Name ?></a> <? ELSE ?> <? VAR Name ?> <? ENDIF ?></label>
|
|
</td>
|
|
<td class="mod_args">
|
|
<? IF Disabled ?><? VAR Args ?><? ELSE ?><input class="third" type="text" name="modargs_<? VAR Name ?>" value="<? VAR Args ?>" /><? ENDIF ?>
|
|
</td>
|
|
<td class="mod_descr"><? VAR Description ?></td>
|
|
</tr>
|
|
<? ENDLOOP ?>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="submitline">
|
|
<input type="submit" value="<? IF Edit ?>Save<? ELSE ?>Add Network<? ENDIF ?>" />
|
|
</div>
|
|
</form>
|
|
|
|
<? INC Footer.tmpl ?>
|