Deleted obsolete modules/webadmin dir, copied CSS files for ice & default to
webskins dir, made default the _default_ skin, moved dark-clouds to dark-clouds, added /skinfiles/ feature to base skins on each other (and not only on default). Next up: re-adding help texts that got lost during webadmin->webmods transition, making skins look nice again. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1868 726aef4b-f618-498e-8847-2d620e286838
@@ -555,6 +555,23 @@ CWebSock::EPageReqResult CWebSock::OnPageRequestInternal(const CString& sURI, CS
|
||||
return PrintTemplate("login", sPageRet);
|
||||
} else if (sURI.Left(5) == "/pub/") {
|
||||
return PrintStaticFile(sURI, sPageRet);
|
||||
} else if (sURI.Left(11) == "/skinfiles/") {
|
||||
CString sSkinName = sURI.substr(11);
|
||||
CString::size_type uPathStart = sSkinName.find("/");
|
||||
if (uPathStart != CString::npos) {
|
||||
CString sFilePath = sSkinName.substr(uPathStart + 1);
|
||||
sSkinName.erase(uPathStart);
|
||||
|
||||
m_Template.ClearPaths();
|
||||
m_Template.AppendPath(GetSkinPath(sSkinName) + "pub");
|
||||
|
||||
if (PrintFile(m_Template.ExpandFile(sFilePath))) {
|
||||
return PAGE_DONE;
|
||||
} else {
|
||||
return PAGE_NOTFOUND;
|
||||
}
|
||||
}
|
||||
return PAGE_NOTFOUND;
|
||||
} else if (sURI.Left(6) == "/mods/" || sURI.Left(10) == "/modfiles/") {
|
||||
ParsePath();
|
||||
// Make sure modules are treated as directories
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form action="<? IF Edit ?>editchan<? ELSE ?>addchan<? ENDIF ?>" method="post">
|
||||
<input type="hidden" name="submitted" value="1">
|
||||
<input type="hidden" name="user" value="<? VAR User ESC=HTML ?>">
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle">Channel Info</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Channel Name:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<? IF Edit ?>
|
||||
<input type="hidden" name="name" value="<? VAR ChanName ESC=HTML ?>">
|
||||
<? VAR ChanName ESC=HTML ?>
|
||||
<? ELSE ?>
|
||||
<div><input style="width: 100%;" type="text" name="name" value="" size="32"></div>
|
||||
<? ENDIF ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Buffer Count:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="buffercount" value="<? VAR BufferCount ESC=HTML ?>" size="8" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Default Modes:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="defmodes" value="<? VAR DefModes ESC=HTML ?>" size="16" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Save:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input type="checkbox" name="save" id="save" value="true"<? IF InConfig ?> checked="checked"<? ENDIF ?> /><label for="save"> Save to config</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Options:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<? LOOP OptionLoop ?>
|
||||
<input type="checkbox" name="<? VAR Name ESC=HTML ?>" id="opt_<? VAR Name ESC=HTML ?>" value="true"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="opt_<? VAR Name ESC=HTML ?>"> <? VAR DisplayName ESC=HTML ?></label><br>
|
||||
<? ENDLOOP ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br><br><input type="submit" value="<? IF Edit ?>Save<? ELSE ?>Add Channel<? ENDIF ?>" />
|
||||
</form>
|
||||
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,3 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
<h3><?VAR Error ESC=HTML?></h3>
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,17 +0,0 @@
|
||||
</td>
|
||||
<!-- / Main -->
|
||||
</tr>
|
||||
<!-- / Main -->
|
||||
|
||||
<!-- Cbar -->
|
||||
<tr>
|
||||
<td colspan="2" class="cbar">
|
||||
<i>ZNC WebAdmin style "dark-clouds" by <a href="mailto:davidp@preshweb.co.uk">David Precious</a></i>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- / Cbar -->
|
||||
|
||||
</table>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,62 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<title>ZNC - Webadmin module - <?VAR Title ESC=HTML?></title>
|
||||
<link rel="stylesheet" type="text/css" href="<?VAR Skin ESC=URL?>/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<center>
|
||||
<table width="800" cellpadding="0" cellspacing="0">
|
||||
<!-- Header -->
|
||||
<tr>
|
||||
<td colspan="2" class="header"><?VAR Tag ESC=HTML ?></td>
|
||||
</tr>
|
||||
<!-- / Header -->
|
||||
|
||||
<!-- Loginbar -->
|
||||
<tr>
|
||||
<td colspan="2" class="loginbar">
|
||||
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="padding-left: 5px;"><b>Logged in as:</b> <?VAR SessionUser ESC=HTML?> <i>(from: <?VAR SessionIP ESC=HTML?>)</i></td>
|
||||
<td class="switchuser"><a href="switchuser">Logout</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- / Loginbar -->
|
||||
|
||||
<!-- Main -->
|
||||
<tr>
|
||||
<!-- Menu -->
|
||||
<td class="menu">
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "home" ?>in<? ENDIF ?>active"><a href="home">Home</a></td>
|
||||
</tr>
|
||||
|
||||
<? IF IsAdmin ?>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "settings" ?>in<? ENDIF ?>active"><a href="settings">Settings</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "adduser" ?>in<? ENDIF ?>active"><a href="adduser">Add User</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "listusers" && Action != "edituser" ?>in<? ENDIF ?>active"><a href="listusers">List Users</a></td>
|
||||
</tr>
|
||||
<? ELSE ?>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "edituser" ?>in<? ENDIF ?>active"><a href="edituser">My Settings</a></td>
|
||||
</tr>
|
||||
<? ENDIF ?>
|
||||
</table>
|
||||
</td>
|
||||
<!-- / Menu -->
|
||||
|
||||
<!-- Main -->
|
||||
<td class="main">
|
||||
<div style="padding-bottom: 6px; margin-bottom: 13px; border-bottom: 1px solid #000">ZNC Webadmin <b>» <?VAR Title ESC=HTML?></b></div>
|
||||
@@ -1,33 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<?IF !UserLoop?>
|
||||
There are no users defined.<br>
|
||||
Click <a href="adduser">here</a>, if you would like to add one.
|
||||
<?ELSE?>
|
||||
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
<tr>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Action</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Username</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Clients</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Current Server</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000;">IRC Nick</td>
|
||||
</tr>
|
||||
|
||||
<?LOOP UserLoop?>
|
||||
<tr class="<?IF __EVEN__?>evenrow<?ELSE?>oddrow<?ENDIF?>">
|
||||
<td>
|
||||
<span class="nowrap">
|
||||
[<a href="edituser?user=<?VAR Username ESC=URL?>">Edit</a>]
|
||||
<? IF !IsSelf ?>[<a href="deluser?user=<?VAR Username ESC=URL?>" onClick="return confirm('Do you really wish to remove this user?');">Delete</a>]<? ENDIF ?>
|
||||
</span>
|
||||
</td>
|
||||
<td><b><? VAR Username ESC=HTML ?></b></td>
|
||||
<td><? VAR Clients ESC=HTML ?></td>
|
||||
<td><? VAR Server ESC=HTML DEFAULT="-N/A-" ?></td>
|
||||
<td style="border-right: 0px;"><? VAR IRCNick ESC=HTML ?></td>
|
||||
</tr>
|
||||
<?ENDLOOP?>
|
||||
</table>
|
||||
<?ENDIF?>
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,3 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
Welcome to the ZNC webadmin module.
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,139 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form action="settings" method="POST">
|
||||
<input type="hidden" name="submitted" value="1">
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="maintitle">Listen Port(s)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainalone">
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
<tr>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Port</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">BindHost</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">SSL</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000;">IPv6</td>
|
||||
</tr>
|
||||
|
||||
<? LOOP ListenLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td><? VAR Port ESC=HTML ?></td>
|
||||
<td><? VAR BindHost ESC=HTML DEFAULT=** ?></td>
|
||||
<td><? IF IsSSL ?>True<? ELSE ?>False<? ENDIF ?></td>
|
||||
<td style="border-right: 0px;"><? IF IsIPV6 ?>True<? ELSE ?>False<? ENDIF ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle">Settings</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Skin:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<select name="skin">
|
||||
<? LOOP SkinLoop ?>
|
||||
<option value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR Name ESC=HTML ?></option>
|
||||
<? ENDLOOP ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Status prefix:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input type="text" name="statusprefix" value="<? VAR StatusPrefix ESC=HTML ?>" size="32" maxlength="128">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
ISpoofFile:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input type="text" name="ispooffile" value="<? VAR ISpoofFile ESC=HTML ?>" size="32" maxlength="128">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
ISpoofFormat:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input type="text" name="ispoofformat" value="<? VAR ISpoofFormat ESC=HTML ?>" size="32" maxlength="128">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
MOTD:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<textarea name="motd" cols="10" style="width: 99%;" rows="5"><? LOOP MOTDLoop ?><? VAR Line ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
VHosts:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<textarea name="vhosts" cols="10" style="width: 99%;" rows="5"><? LOOP VHostLoop ?><? VAR VHost ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
|
||||
<tr>
|
||||
<td class="maintitle">Global Module(s)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainalone">
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
<tr>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Name</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Arguments</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000;">Description</td>
|
||||
</tr>
|
||||
|
||||
<? LOOP ModuleLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td><span style="white-space: nowrap;"><input type="checkbox" name="loadmod" id="lm_<? VAR Name ESC=HTML ?>" value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ESC=HTML ?>"> <? VAR Name ESC=HTML ?></label></span></td>
|
||||
<td><input type="text" name="modargs_<? VAR Name ESC=HTML ?>" value="<? VAR Args ESC=HTML ?>" /></td>
|
||||
<td style="border-right: 0px;"><? VAR Description ESC=HTML ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br><br>
|
||||
<input type="submit" value="Save settings" />
|
||||
</form>
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,320 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form action="<? IF Edit ?>edituser<? ELSE ?>adduser<? ENDIF ?>" method="post">
|
||||
<input type="hidden" name="submitted" value="1">
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle">Authentication</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Username:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<? IF Edit ?>
|
||||
<input type="hidden" name="user" style="width: 100%;" value="<? VAR Username ESC=HTML ?>">
|
||||
<input type="text" name="newuser" style="width: 100%;" value="<? VAR Username ESC=HTML ?>" size="32" maxlength="128" disabled="disabled">
|
||||
<? ELSE ?>
|
||||
<input type="text" name="user" style="width: 100%;" value="<? VAR Username ESC=HTML ?>" size="32" maxlength="128">
|
||||
<? ENDIF ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Password:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input type="password" style="width: 100%;" name="password" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Confirm password:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input type="password" style="width: 100%;" name="password2" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Allowed IPs:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<textarea style="width: 100%;" name="allowedips" cols="40" rows="5"><? LOOP AllowedHostLoop ?><? VAR Host ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle">IRC Information</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Nickname:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="nick" value="<? VAR Nick ESC=HTML ?>" size="22" maxlength="128">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Alt. Nickname:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="altnick" value="<? VAR AltNick ESC=HTML ?>" size="22" maxlength="128">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Status Prefix:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="statusprefix" value="<? VAR StatusPrefix ESC=HTML ?>" size="16" maxlength="5">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Ident:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="ident" value="<? VAR Ident ESC=HTML ?>" size="22" maxlength="128">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Realname:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="realname" value="<? VAR RealName ESC=HTML ?>" size="68" maxlength="256">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
VHost:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<select name="vhost" style="width: 100%;">
|
||||
<option value="">- Default -</option>
|
||||
<? LOOP VHostLoop ?><option value="<? VAR VHost ESC=HTML ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR VHost ESC=HTML ?></option><? ENDLOOP ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Quit-MSG:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="quitmsg" value="<? VAR QuitMsg ESC=HTML ?>" size="68" maxlength="256">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Servers:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<textarea style="width: 100%;" name="servers" cols="40" rows="5"><? LOOP ServerLoop ?><? VAR Server ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
|
||||
<tr>
|
||||
<td class="maintitle">Module(s)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainalone">
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
<tr>
|
||||
<td width="100" class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Name</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Arguments</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000;">Description</td>
|
||||
</tr>
|
||||
|
||||
<? LOOP ModuleLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td>
|
||||
<input type="checkbox" name="loadmod" id="lm_<? VAR Name ESC=HTML ?>" value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ESC=HTML ?>"> <? VAR Name ESC=HTML ?></label>
|
||||
</td>
|
||||
<td>
|
||||
<? IF Disabled ?><? VAR Args ESC=HTML ?><? ELSE ?><input type="text" name="modargs_<? VAR Name ESC=HTML ?>" value="<? VAR Args ESC=HTML ?>" /><? ENDIF ?>
|
||||
</td>
|
||||
<td style="border-right: 0px;"><? VAR Description ESC=HTML ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle">Channel(s)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Default Modes:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="chanmodes" value="<? VAR DefaultChanModes ESC=HTML ?>" size="32" maxlength="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" class="mainalone">
|
||||
<? IF Edit ?>
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
<tr>
|
||||
<td width="100" class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">[<a href="addchan?user=<? VAR Username ESC=URL ?>">Add</a>]</td>
|
||||
<? IF ChannelLoop ?>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Save</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Name</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">CurModes</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">DefModes</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">BufferCount</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000;">Options</td>
|
||||
<? ELSE ?>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000;">- Add a channel (opens in same page)</td>
|
||||
<? ENDIF ?>
|
||||
</tr>
|
||||
|
||||
<? LOOP ChannelLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td>
|
||||
<input type="hidden" name="channel" value="<? VAR Name ESC=HTML ?>" />
|
||||
[<a href="editchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="delchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Del</a>]
|
||||
</td>
|
||||
<td><input type="checkbox" name="save_<? VAR Name ESC=HTML ?>"<? IF InConfig ?> checked="checked"<? ENDIF ?> /></td>
|
||||
<td><? VAR Name ESC=HTML ?></td>
|
||||
<td><? VAR CurModes ESC=HTML ?></td>
|
||||
<td><? VAR DefModes ESC=HTML ?></td>
|
||||
<td><? VAR BufferCount ESC=HTML ?></td>
|
||||
<td style="border-right: 0px;"><? VAR Options ESC=HTML ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</table>
|
||||
<? ENDIF ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle">ZNC Behavior</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Playback Buffer Size:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="bufsize" value="<? VAR BufferCount ESC=HTML ?>" size="32" maxlength="9">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Timestamp Format:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="timestampformat" value="<? VAR TimestampFormat ESC=HTML ?>" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Timezone offset:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="timezoneoffset" value="<? VAR TimezoneOffset ESC=HTML ?>" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Join Tries:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="jointries" value="<? VAR JoinTries ESC=HTML ?>" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Max Joins:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="maxjoins" value="<? VAR MaxJoins ESC=HTML ?>" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Options:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<? LOOP OptionLoop ?>
|
||||
<input type="checkbox" name="<? VAR Name ESC=HTML?>" id="opt_<? VAR Name ESC=HTML ?>" value="1"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="opt_<? VAR Name ESC=HTML ?>"><? VAR DisplayName ESC=HTML ?></label><br>
|
||||
<? ENDLOOP ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
CTCP Replies:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<textarea style="width: 100%;" name="ctcpreplies" cols="40" rows="5"><? LOOP CTCPLoop ?><? VAR CTCP ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<br><br><input type="submit" value="<? IF Edit ?>Save User<? ELSE ?>Add User<? ENDIF ?>">
|
||||
</form>
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,221 +0,0 @@
|
||||
body {
|
||||
background: #555;
|
||||
margin-top: 10px;
|
||||
background: #444;
|
||||
}
|
||||
|
||||
td {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
input, select, textarea {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
border: 1px solid #000000;
|
||||
background-color: #999;
|
||||
}
|
||||
|
||||
a:link, a:active, a:visited {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #E9630A;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #E9A640;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.header {
|
||||
background-image: url('clouds-header.jpg');
|
||||
padding: 10px;
|
||||
border: 1px solid #000000;
|
||||
height: 100px;
|
||||
width: 800px;
|
||||
vertical-align: bottom;
|
||||
text-align: right;
|
||||
font-weight: bold;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.loginbar {
|
||||
border-left: 1px solid #000000;
|
||||
border-bottom: 1px solid #000000;
|
||||
border-right: 1px solid #000000;
|
||||
background-color: #444;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.switchuser {
|
||||
border-left: 1px solid #000000;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.switchuser a:link, .switchuser a:active, .switchuser a:visited {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.switchuser a:hover {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: white;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.menu {
|
||||
width: 160px;
|
||||
background-color: #333;
|
||||
border-left: 1px solid #000000;
|
||||
vertical-align: top;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.menuactive {
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
height: 30px;
|
||||
background-color: #D49712;
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #000000;
|
||||
}
|
||||
|
||||
.menuinactive {
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
height: 30px;
|
||||
background-color: #777;
|
||||
border-right: 1px solid #000000;
|
||||
border-bottom: 1px solid #000000;
|
||||
}
|
||||
|
||||
.menuactive a:link, .menuactive a:active, .menuactive a:visited {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.menuactive a:hover {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #3B98F5;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.menuinactive a:link, .menuinactive a:active, .menuinactive a:visited {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.menuinactive a:hover {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #FFFFFF;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.main {
|
||||
width: 640px;
|
||||
vertical-align: top;
|
||||
padding: 15px;
|
||||
background-color: #444;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
|
||||
.cbar {
|
||||
border: 1px solid #000000;
|
||||
background-color: #D49712;
|
||||
height: 20px;
|
||||
text-align: right;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.cbar a:link, .cbar a:active, .cbar a:visited {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.cbar a:hover {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #FFFFFF;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.maintitle {
|
||||
height: 20px;
|
||||
background-color: #D49712;
|
||||
color: #000000;
|
||||
font-weight: bold;
|
||||
padding-left: 5px;
|
||||
border: 1px solid #000000;
|
||||
}
|
||||
|
||||
.mainalone {
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid #000000;
|
||||
border-left: 1px solid #000000;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
|
||||
.mainleft {
|
||||
height: 30px;
|
||||
padding: 5px;
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #000000;
|
||||
border-left: 1px solid #000000;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
|
||||
.mainright {
|
||||
padding: 5px;
|
||||
border-bottom: 1px solid #000000;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
|
||||
.mainrow {
|
||||
padding: 5px;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
|
||||
.main2title {
|
||||
height: 20px;
|
||||
background-color: #EC8E00;
|
||||
color: #000000;
|
||||
font-weight: bold;
|
||||
padding-left: 2px;
|
||||
}
|
||||
|
||||
.oddrow {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.oddrow td {
|
||||
padding: 2px;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
|
||||
.evenrow {
|
||||
height: 20px;
|
||||
background-color: #777;
|
||||
}
|
||||
|
||||
.evenrow td {
|
||||
padding: 2px;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form action="<? IF Edit ?>editchan<? ELSE ?>addchan<? ENDIF ?>" method="post">
|
||||
<div class="section">
|
||||
<input type="hidden" name="submitted" value="1" />
|
||||
<input type="hidden" name="user" value="<? VAR User ESC=HTML ?>" />
|
||||
<? IF Edit ?><input type="hidden" name="name" value="<? VAR ChanName ESC=HTML ?>" /><? ENDIF ?>
|
||||
|
||||
<h3>Channel Info</h3>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<? IF !Edit ?>
|
||||
<div class="subsection half">
|
||||
<div class="inputlabel">Channel Name:</div>
|
||||
<div><input type="text" name="name" value="" /></div>
|
||||
<br /><span class="info">If the channel has a key and you want to save the key, type: #CHAN KEY</span>
|
||||
</div>
|
||||
<? ENDIF ?>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Buffer Count:</div>
|
||||
<div><input type="text" name="buffercount" value="<? VAR BufferCount ESC=HTML ?>" size="10" /></div>
|
||||
</div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Default Modes:</div>
|
||||
<div><input type="text" name="defmodes" value="<? VAR DefModes ESC=HTML ?>" size="10" /></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h3>Flags</h3>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody lotsofcheckboxes">
|
||||
<span class="checkboxandlabel">
|
||||
<input type="checkbox" name="save" id="save" value="true"<? IF InConfig ?> checked="checked"<? ENDIF ?> />
|
||||
<label for="save">Save to config</label>
|
||||
</span>
|
||||
<? LOOP OptionLoop ?>
|
||||
<span class="checkboxandlabel">
|
||||
<input type="checkbox" name="<? VAR Name ESC=HTML ?>" id="opt_<? VAR Name ESC=HTML ?>" value="true"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> />
|
||||
<label for="opt_<? VAR Name ESC=HTML ?>"><? VAR DisplayName ESC=HTML ?></label>
|
||||
</span>
|
||||
<? ENDLOOP ?>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="submitline">
|
||||
<input type="submit" value="<? IF Edit ?>Save<? ELSE ?>Add Channel<? ENDIF ?>" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,3 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
<h2><?VAR Error ESC=HTML?></h2>
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,5 +0,0 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="tag"><?VAR Tag ESC=HTML ?></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<title>ZNC - <?VAR Title ESC=HTML?></title>
|
||||
<link rel="stylesheet" type="text/css" href="<?VAR Skin ESC=URL?>/main.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="navbar">
|
||||
<h1>ZNC</h1>
|
||||
<ul class="nav">
|
||||
<li><a href="home">Home</a></li>
|
||||
<? IF IsAdmin ?>
|
||||
<li><a href="settings">Settings</a></li>
|
||||
<li><a href="adduser">Add User</a></li>
|
||||
<li><a href="listusers">Edit Users</a></li>
|
||||
<? ELSE ?>
|
||||
<li><a href="edituser">My Settings</a></li>
|
||||
<? ENDIF ?>
|
||||
<li><a href="switchuser">Switch User</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="ident"><?VAR SessionUser ESC=HTML?> (from: <?VAR SessionIP ESC=HTML?>)</div>
|
||||
|
||||
<div id="main">
|
||||
<h2><?VAR Title ESC=HTML?></h2>
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
<?IF !UserLoop?>
|
||||
There are no users defined. Click <a href="adduser">here</a> if you would like to add one.
|
||||
<?ELSE?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Action</td>
|
||||
<td>Username</td>
|
||||
<td>Clients</td>
|
||||
<td>Current Server</td>
|
||||
<td>IRC Nick</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?LOOP UserLoop?>
|
||||
<tr class="<?IF __EVEN__?>evenrow<?ELSE?>oddrow<?ENDIF?>">
|
||||
<td>
|
||||
<span class="nowrap">
|
||||
[<a href="edituser?user=<?VAR Username ESC=URL?>">Edit</a>]
|
||||
<? IF !IsSelf ?>[<a href="deluser?user=<?VAR Username ESC=URL?>" onClick="return confirm('Do you really wish to remove this user?');">Delete</a>]<? ENDIF ?>
|
||||
</span>
|
||||
</td>
|
||||
<td><? VAR Username ESC=HTML ?></td>
|
||||
<td><? VAR Clients ESC=HTML ?></td>
|
||||
<td><? VAR Server ESC=HTML DEFAULT="-N/A-" ?></td>
|
||||
<td><? VAR IRCNick ESC=HTML ?></td>
|
||||
</tr>
|
||||
<?ENDLOOP?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?ENDIF?>
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,3 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
Welcome to the ZNC webadmin module.
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,125 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form action="settings" method="post">
|
||||
<div class="section">
|
||||
<input type="hidden" name="submitted" value="1" />
|
||||
|
||||
<h3>Listen Port(s)</h3>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Port</td>
|
||||
<td>BindHost</td>
|
||||
<td>SSL</td>
|
||||
<td>IPv6</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<? LOOP ListenLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td><? VAR Port ESC=HTML ?></td>
|
||||
<td><? VAR BindHost ESC=HTML DEFAULT=** ?></td>
|
||||
<td><? IF IsSSL ?>Yes<? ELSE ?>No<? ENDIF ?></td>
|
||||
<td><? IF IsIPV6 ?>Yes<? ELSE ?>No<? ENDIF ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h3>Settings</h3>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Skin:</div>
|
||||
<div>
|
||||
<select name="skin">
|
||||
<? LOOP SkinLoop ?>
|
||||
<option value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR Name ESC=HTML ?></option>
|
||||
<? ENDLOOP ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection third">
|
||||
<div class="inputlabel">Status Prefix:</div>
|
||||
<div><input type="text" name="statusprefix" value="<? VAR StatusPrefix ESC=HTML ?>" /></div>
|
||||
<br /><span class="info">Default for new users only.</span>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection half">
|
||||
<div class="inputlabel">ISpoofFile:</div>
|
||||
<div><input type="text" name="ispooffile" value="<? VAR ISpoofFile ESC=HTML ?>" /></div>
|
||||
<br /><span class="info">Example: ~/.oidentd.conf</span>
|
||||
</div>
|
||||
|
||||
<div class="subsection half">
|
||||
<div class="inputlabel">ISpoofFormat:</div>
|
||||
<div><input type="text" name="ispoofformat" value="<? VAR ISpoofFormat ESC=HTML ?>" /></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection twothird">
|
||||
<div class="inputlabel">MOTD:</div>
|
||||
<div><textarea name="motd" cols="70" rows="5"><? LOOP MOTDLoop ?><? VAR Line ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea></div>
|
||||
<br /><span class="info">"Message of the Day", sent to all ZNC users on connect.</span>
|
||||
</div>
|
||||
|
||||
<div class="subsection twothird">
|
||||
<div class="inputlabel">VHosts:</div>
|
||||
<div><textarea name="vhosts" cols="70" rows="8"><? LOOP VHostLoop ?><? VAR VHost ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea></div>
|
||||
<br /><span class="info">One host name or IP entry per line.</span>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h3>Global 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 ESC=HTML ?>" value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ESC=HTML ?>"> <? VAR Name ESC=HTML ?></label></td>
|
||||
<td class="mod_args"><input type="text" name="modargs_<? VAR Name ESC=HTML ?>" value="<? VAR Args ESC=HTML ?>" /></td>
|
||||
<td class="mod_descr"><? VAR Description ESC=HTML ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="submitline">
|
||||
<input type="submit" value="Save" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,251 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form action="<? IF Edit ?>edituser<? ELSE ?>adduser<? ENDIF ?>" method="post">
|
||||
<div class="section">
|
||||
<input type="hidden" name="submitted" value="1" />
|
||||
|
||||
<h3>Authentication</h3>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Username:</div>
|
||||
<div>
|
||||
<? IF Edit ?>
|
||||
<input type="hidden" name="user" value="<? VAR Username ESC=HTML ?>" />
|
||||
<input type="text" name="newuser" value="<? VAR Username ESC=HTML ?>" class="half" maxlength="128" disabled="disabled" />
|
||||
<? ELSE ?>
|
||||
<input type="text" name="user" value="<? VAR Username ESC=HTML ?>" class="half" maxlength="128" />
|
||||
<? ENDIF ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Password:</div>
|
||||
<div><input type="password" name="password" class="half" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Confirm Password:</div>
|
||||
<div><input type="password" name="password2" class="half" /></div>
|
||||
</div>
|
||||
<div class="subsection half">
|
||||
<div class="inputlabel">Allowed IPs:</div>
|
||||
<textarea name="allowedips" cols="70" rows="5"><? LOOP AllowedHostLoop ?><? VAR Host ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea>
|
||||
<br /><span class="info">Leave empty to allow connections from all IPs.<br />
|
||||
Otherwise, one entry per line, wildcards * and ? are available.</span>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h3>IRC Information</h3>
|
||||
<? IF !Edit ?>
|
||||
<span class="info">Nick, AltNick, Ident, RealName and QuitMsg can be left empty to use default values.</span>
|
||||
<? ENDIF ?>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Nick:</div>
|
||||
<div><input type="text" name="nick" value="<? VAR Nick ESC=HTML ?>" class="half" maxlength="128" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">AltNick:</div>
|
||||
<div><input type="text" name="altnick" value="<? VAR AltNick ESC=HTML ?>" class="half" maxlength="128" /></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Ident:</div>
|
||||
<div><input type="text" name="ident" value="<? VAR Ident ESC=HTML ?>" class="half" maxlength="128" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">StatusPrefix:</div>
|
||||
<div><input type="text" name="statusprefix" value="<? VAR StatusPrefix ESC=HTML ?>" class="half" maxlength="5" /></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">RealName:</div>
|
||||
<div><input type="text" name="realname" value="<? VAR RealName ESC=HTML ?>" class="full" maxlength="256" /></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection">
|
||||
<? IF VHostLoop ?>
|
||||
<div class="inputlabel">VHost:</div>
|
||||
<select name="vhost">
|
||||
<option value="">- Default -</option>
|
||||
<? LOOP VHostLoop ?><option value="<? VAR VHost ESC=HTML ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR VHost ESC=HTML ?></option><? ENDLOOP ?>
|
||||
</select>
|
||||
<? ENDIF ?>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">QuitMsg:</div>
|
||||
<div><input type="text" name="quitmsg" value="<? VAR QuitMsg ESC=HTML ?>" class="full" maxlength="256" /></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection half">
|
||||
<div class="inputlabel">Servers:</div>
|
||||
<div><textarea name="servers" cols="70" rows="5"><? LOOP ServerLoop ?><? VAR Server ESC=HTML ?>
|
||||
<? 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>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 ESC=HTML ?>" value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ESC=HTML ?>"> <? VAR Name ESC=HTML ?></label>
|
||||
</td>
|
||||
<td class="mod_args">
|
||||
<? IF Disabled ?><? VAR Args ESC=HTML ?><? ELSE ?><input class="third" type="text" name="modargs_<? VAR Name ESC=HTML ?>" value="<? VAR Args ESC=HTML ?>" /><? ENDIF ?>
|
||||
</td>
|
||||
<td class="mod_descr"><? VAR Description ESC=HTML ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</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 user.</span><br />
|
||||
<? ELSE ?>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>[<a href="addchan?user=<? VAR Username 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 ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td>
|
||||
<input type="hidden" name="channel" value="<? VAR Name ESC=HTML ?>" />
|
||||
[<a href="editchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="delchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Del</a>]
|
||||
</td>
|
||||
<td><input type="checkbox" name="save_<? VAR Name ESC=HTML ?>"<? IF InConfig ?> checked="checked"<? ENDIF ?> /></td>
|
||||
<td><? VAR Name ESC=HTML ?></td>
|
||||
<td><? VAR CurModes ESC=HTML ?></td>
|
||||
<td><? VAR DefModes ESC=HTML ?></td>
|
||||
<td><? VAR BufferCount ESC=HTML ?></td>
|
||||
<td><? VAR Options ESC=HTML ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<? ENDIF ?>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h3>Default Channel Settings</h3>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection third">
|
||||
<div class="inputlabel">Modes:</div>
|
||||
<div><input type="text" name="chanmodes" value="<? VAR DefaultChanModes ESC=HTML ?>" maxlength="32" /></div>
|
||||
<br /><span class="info">Empty = use standard value</span>
|
||||
</div>
|
||||
<div class="subsection third">
|
||||
<div class="inputlabel">Buffer Size:</div>
|
||||
<div><input type="text" name="bufsize" value="<? VAR BufferCount ESC=HTML ?>" maxlength="9" /></div>
|
||||
<br /><span class="info">Empty = use standard value</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h3>Flags</h3>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody lotsofcheckboxes">
|
||||
<? LOOP OptionLoop ?>
|
||||
<span class="checkboxandlabel">
|
||||
<input type="checkbox" name="<? VAR Name ESC=HTML?>" id="opt_<? VAR Name ESC=HTML ?>" value="1"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> />
|
||||
<label for="opt_<? VAR Name ESC=HTML ?>"><? VAR DisplayName ESC=HTML ?></label>
|
||||
</span>
|
||||
<? ENDLOOP ?>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h3>ZNC Behavior</h3>
|
||||
<span class="info">Any of the following text boxes can be left empty to use their default value.</span>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Timestamp Format:</div>
|
||||
<div><input type="text" name="timestampformat" value="<? VAR TimestampFormat ESC=HTML ?>" class="half" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Timezone Offset:</div>
|
||||
<div><input type="text" name="timezoneoffset" value="<? VAR TimezoneOffset ESC=HTML ?>" class="third" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Join Tries:</div>
|
||||
<div><input type="text" name="jointries" value="<? VAR JoinTries ESC=HTML ?>" class="third" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Max Joins:</div>
|
||||
<div><input type="text" name="maxjoins" value="<? VAR MaxJoins ESC=HTML ?>" class="third" /></div>
|
||||
</div>
|
||||
<div class="subsection half">
|
||||
<div class="inputlabel">CTCP Replies:</div>
|
||||
<div><textarea name="ctcpreplies" cols="70" rows="3"><? LOOP CTCPLoop ?><? VAR CTCP ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea></div>
|
||||
<br /><span class="info">One reply per line. Example: TIME Buy a watch!</span>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="submitline">
|
||||
<input type="submit" value="<? IF Edit ?>Save<? ELSE ?>Create<? ENDIF ?>" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
|
Before Width: | Height: | Size: 3.6 KiB |
@@ -1,249 +0,0 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
font-family: Tahoma, sans-serif;
|
||||
}
|
||||
|
||||
a, a:link, a:active, a:visited, a:focus {
|
||||
color: #00008B;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#main a:visited {
|
||||
color: #99008B;
|
||||
}
|
||||
|
||||
#container {
|
||||
background-color: #eee;
|
||||
min-height: 80%;
|
||||
overflow: hidden;
|
||||
margin: 0 auto;
|
||||
width: 800px;
|
||||
|
||||
border: 1px solid #ccc;
|
||||
border-top: none;
|
||||
-moz-box-shadow: 0 0 1em #666;
|
||||
-webkit-box-shadow: 0 0 1em #666;
|
||||
}
|
||||
|
||||
#tag {
|
||||
height: 4em;
|
||||
line-height: 4em;
|
||||
text-align: center;
|
||||
font-size: 70%;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
#navbar {
|
||||
display: block;
|
||||
height: 45px;
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
#navbar h1 {
|
||||
float: left;
|
||||
line-height: 45px;
|
||||
padding: 0 0.9em 0 0.6em;
|
||||
font-style: italic;
|
||||
background-color: #aaa;
|
||||
font-size: 100%;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
ul.nav {
|
||||
float: left;
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
ul.nav li {
|
||||
list-style: none;
|
||||
float: left;
|
||||
margin-right: 55px;
|
||||
}
|
||||
|
||||
ul.nav li a {
|
||||
line-height: 45px;
|
||||
height: 45px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#ident {
|
||||
text-align: right;
|
||||
padding: 4px;
|
||||
font-size: 70%;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
ul.nav li:before {
|
||||
content: "» ";
|
||||
}
|
||||
|
||||
#main {
|
||||
clear: both;
|
||||
padding: 0 20px 20px 20px;
|
||||
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-top: 1.2em;
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
|
||||
.section {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.sectionbody {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.sectionbody input, textarea, select {
|
||||
border: 2px solid #ccc;
|
||||
font-family: Tahoma, sans-serif;
|
||||
padding: 3px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
input:focus, textarea:focus, select:focus {
|
||||
-moz-box-shadow: 0 0 0.4em #aaa;
|
||||
-webkit-box-shadow: 0 0 0.4em #aaa;
|
||||
}
|
||||
|
||||
textarea {
|
||||
height: 90px;
|
||||
}
|
||||
|
||||
.submitline input {
|
||||
width: 200px;
|
||||
height: 2.2em;
|
||||
}
|
||||
|
||||
input.full, textarea.full,
|
||||
.full input, .full textarea {
|
||||
width: 600px;
|
||||
}
|
||||
|
||||
input.twothird, textarea.twothird,
|
||||
.twothird input, .twothird textarea {
|
||||
width: 450px;
|
||||
}
|
||||
|
||||
input.half, textarea.half,
|
||||
.half input, .half textarea {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
input.third, textarea.third,
|
||||
.third input, .third textarea {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
table {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 5px 10px;
|
||||
min-width: 80px;
|
||||
}
|
||||
|
||||
thead td {
|
||||
background-color: #a0a0a0;
|
||||
}
|
||||
|
||||
tbody td {
|
||||
background-color: #cecece;
|
||||
}
|
||||
|
||||
tr.evenrow td {
|
||||
background-color: #dadada;
|
||||
}
|
||||
|
||||
div.submitline {
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
.info {
|
||||
font-style: italic;
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
.subsection {
|
||||
clear: both;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.subsection div {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.subsection .inputlabel {
|
||||
width: 120px;
|
||||
text-align: right;
|
||||
padding: 10px 5px 0 0;
|
||||
}
|
||||
|
||||
.subsection input, .subsection select, .subsection textarea {
|
||||
margin: 5px 0 5px 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.section .info {
|
||||
margin-bottom: 5px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.subsection .info {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.half .info {
|
||||
width: 435px;
|
||||
}
|
||||
|
||||
.third .info {
|
||||
width: 285px;
|
||||
}
|
||||
|
||||
.twothird .info {
|
||||
width: 585px;
|
||||
}
|
||||
|
||||
td.mod_descr,
|
||||
td.mod_name,
|
||||
td.mod_args input {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
.checkboxandlabel {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.lotsofcheckboxes .checkboxandlabel {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 200px;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
@@ -1,74 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form action="<? IF Edit ?>editchan<? ELSE ?>addchan<? ENDIF ?>" method="post">
|
||||
<input type="hidden" name="submitted" value="1">
|
||||
<input type="hidden" name="user" value="<? VAR User ESC=HTML ?>">
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle">Channel Info</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Channel Name:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<? IF Edit ?>
|
||||
<input type="hidden" name="name" value="<? VAR ChanName ESC=HTML ?>">
|
||||
<? VAR ChanName ESC=HTML ?>
|
||||
<? ELSE ?>
|
||||
<div><input style="width: 100%;" type="text" name="name" value="" size="32"></div>
|
||||
<? ENDIF ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Buffer Count:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="buffercount" value="<? VAR BufferCount ESC=HTML ?>" size="8" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Default Modes:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="defmodes" value="<? VAR DefModes ESC=HTML ?>" size="16" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Save:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input type="checkbox" name="save" id="save" value="true"<? IF InConfig ?> checked="checked"<? ENDIF ?> /><label for="save"> Save to config</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Options:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<? LOOP OptionLoop ?>
|
||||
<input type="checkbox" name="<? VAR Name ESC=HTML ?>" id="opt_<? VAR Name ESC=HTML ?>" value="true"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="opt_<? VAR Name ESC=HTML ?>"> <? VAR DisplayName ESC=HTML ?></label><br>
|
||||
<? ENDLOOP ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br><br><input type="submit" value="<? IF Edit ?>Save<? ELSE ?>Add Channel<? ENDIF ?>" />
|
||||
</form>
|
||||
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,3 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
<h3><?VAR Error ESC=HTML?></h3>
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,17 +0,0 @@
|
||||
</td>
|
||||
<!-- / Main -->
|
||||
</tr>
|
||||
<!-- / Main -->
|
||||
|
||||
<!-- Cbar -->
|
||||
<tr>
|
||||
<td colspan="2" class="cbar">
|
||||
<i>ZNC WebAdmin style "graphiX" by <a href="mailto:daniel@danielschmitz.de">d4n13L</a></i>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- / Cbar -->
|
||||
|
||||
</table>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,62 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<title>ZNC - Webadmin module - <?VAR Title ESC=HTML?></title>
|
||||
<link rel="stylesheet" type="text/css" href="<?VAR Skin ESC=URL?>/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<center>
|
||||
<table width="800" cellpadding="0" cellspacing="0">
|
||||
<!-- Header -->
|
||||
<tr>
|
||||
<td colspan="2" class="header"><?VAR Tag ESC=HTML ?></td>
|
||||
</tr>
|
||||
<!-- / Header -->
|
||||
|
||||
<!-- Loginbar -->
|
||||
<tr>
|
||||
<td colspan="2" class="loginbar">
|
||||
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="padding-left: 5px;"><b>Logged in as:</b> <?VAR SessionUser ESC=HTML?> <i>(from: <?VAR SessionIP ESC=HTML?>)</i></td>
|
||||
<td class="switchuser"><a href="switchuser">Logout</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- / Loginbar -->
|
||||
|
||||
<!-- Main -->
|
||||
<tr>
|
||||
<!-- Menu -->
|
||||
<td class="menu">
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "home" ?>in<? ENDIF ?>active"><a href="home">Home</a></td>
|
||||
</tr>
|
||||
|
||||
<? IF IsAdmin ?>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "settings" ?>in<? ENDIF ?>active"><a href="settings">Settings</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "adduser" ?>in<? ENDIF ?>active"><a href="adduser">Add User</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "listusers" && Action != "edituser" ?>in<? ENDIF ?>active"><a href="listusers">List Users</a></td>
|
||||
</tr>
|
||||
<? ELSE ?>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "edituser" ?>in<? ENDIF ?>active"><a href="edituser">My Settings</a></td>
|
||||
</tr>
|
||||
<? ENDIF ?>
|
||||
</table>
|
||||
</td>
|
||||
<!-- / Menu -->
|
||||
|
||||
<!-- Main -->
|
||||
<td class="main">
|
||||
<div style="padding-bottom: 6px; margin-bottom: 13px; border-bottom: 1px solid #000">ZNC Webadmin <b>» <?VAR Title ESC=HTML?></b></div>
|
||||
@@ -1,33 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<?IF !UserLoop?>
|
||||
There are no users defined.<br>
|
||||
Click <a href="adduser">here</a>, if you would like to add one.
|
||||
<?ELSE?>
|
||||
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
<tr>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Action</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Username</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Clients</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Current Server</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000;">IRC Nick</td>
|
||||
</tr>
|
||||
|
||||
<?LOOP UserLoop?>
|
||||
<tr class="<?IF __EVEN__?>evenrow<?ELSE?>oddrow<?ENDIF?>">
|
||||
<td>
|
||||
<span class="nowrap">
|
||||
[<a href="edituser?user=<?VAR Username ESC=URL?>">Edit</a>]
|
||||
<? IF !IsSelf ?>[<a href="deluser?user=<?VAR Username ESC=URL?>" onClick="return confirm('Do you really wish to remove this user?');">Delete</a>]<? ENDIF ?>
|
||||
</span>
|
||||
</td>
|
||||
<td><b><? VAR Username ESC=HTML ?></b></td>
|
||||
<td><? VAR Clients ESC=HTML ?></td>
|
||||
<td><? VAR Server ESC=HTML DEFAULT="-N/A-" ?></td>
|
||||
<td style="border-right: 0px;"><? VAR IRCNick ESC=HTML ?></td>
|
||||
</tr>
|
||||
<?ENDLOOP?>
|
||||
</table>
|
||||
<?ENDIF?>
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,3 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
Welcome to the ZNC webadmin module.
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,139 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form action="settings" method="POST">
|
||||
<input type="hidden" name="submitted" value="1">
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="maintitle">Listen Port(s)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainalone">
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
<tr>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Port</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">BindHost</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">SSL</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000;">IPv6</td>
|
||||
</tr>
|
||||
|
||||
<? LOOP ListenLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td><? VAR Port ESC=HTML ?></td>
|
||||
<td><? VAR BindHost ESC=HTML DEFAULT=** ?></td>
|
||||
<td><? IF IsSSL ?>True<? ELSE ?>False<? ENDIF ?></td>
|
||||
<td style="border-right: 0px;"><? IF IsIPV6 ?>True<? ELSE ?>False<? ENDIF ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle">Settings</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Skin:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<select name="skin">
|
||||
<? LOOP SkinLoop ?>
|
||||
<option value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR Name ESC=HTML ?></option>
|
||||
<? ENDLOOP ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Status prefix:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input type="text" name="statusprefix" value="<? VAR StatusPrefix ESC=HTML ?>" size="32" maxlength="128">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
ISpoofFile:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input type="text" name="ispooffile" value="<? VAR ISpoofFile ESC=HTML ?>" size="32" maxlength="128">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
ISpoofFormat:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input type="text" name="ispoofformat" value="<? VAR ISpoofFormat ESC=HTML ?>" size="32" maxlength="128">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
MOTD:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<textarea name="motd" cols="10" style="width: 99%;" rows="5"><? LOOP MOTDLoop ?><? VAR Line ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
VHosts:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<textarea name="vhosts" cols="10" style="width: 99%;" rows="5"><? LOOP VHostLoop ?><? VAR VHost ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
|
||||
<tr>
|
||||
<td class="maintitle">Global Module(s)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainalone">
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
<tr>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Name</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Arguments</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000;">Description</td>
|
||||
</tr>
|
||||
|
||||
<? LOOP ModuleLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td><span style="white-space: nowrap;"><input type="checkbox" name="loadmod" id="lm_<? VAR Name ESC=HTML ?>" value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ESC=HTML ?>"> <? VAR Name ESC=HTML ?></label></span></td>
|
||||
<td><input type="text" name="modargs_<? VAR Name ESC=HTML ?>" value="<? VAR Args ESC=HTML ?>" /></td>
|
||||
<td style="border-right: 0px;"><? VAR Description ESC=HTML ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br><br>
|
||||
<input type="submit" value="Save settings" />
|
||||
</form>
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,320 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form action="<? IF Edit ?>edituser<? ELSE ?>adduser<? ENDIF ?>" method="post">
|
||||
<input type="hidden" name="submitted" value="1">
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle">Authentication</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Username:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<? IF Edit ?>
|
||||
<input type="hidden" name="user" style="width: 100%;" value="<? VAR Username ESC=HTML ?>">
|
||||
<input type="text" name="newuser" style="width: 100%;" value="<? VAR Username ESC=HTML ?>" size="32" maxlength="128" disabled="disabled">
|
||||
<? ELSE ?>
|
||||
<input type="text" name="user" style="width: 100%;" value="<? VAR Username ESC=HTML ?>" size="32" maxlength="128">
|
||||
<? ENDIF ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Password:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input type="password" style="width: 100%;" name="password" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Confirm password:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input type="password" style="width: 100%;" name="password2" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Allowed IPs:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<textarea style="width: 100%;" name="allowedips" cols="40" rows="5"><? LOOP AllowedHostLoop ?><? VAR Host ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle">IRC Information</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Nickname:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="nick" value="<? VAR Nick ESC=HTML ?>" size="22" maxlength="128">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Alt. Nickname:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="altnick" value="<? VAR AltNick ESC=HTML ?>" size="22" maxlength="128">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Status Prefix:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="statusprefix" value="<? VAR StatusPrefix ESC=HTML ?>" size="16" maxlength="5">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Ident:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="ident" value="<? VAR Ident ESC=HTML ?>" size="22" maxlength="128">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Realname:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="realname" value="<? VAR RealName ESC=HTML ?>" size="68" maxlength="256">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
VHost:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<select name="vhost" style="width: 100%;">
|
||||
<option value="">- Default -</option>
|
||||
<? LOOP VHostLoop ?><option value="<? VAR VHost ESC=HTML ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR VHost ESC=HTML ?></option><? ENDLOOP ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Quit-MSG:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="quitmsg" value="<? VAR QuitMsg ESC=HTML ?>" size="68" maxlength="256">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Servers:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<textarea style="width: 100%;" name="servers" cols="40" rows="5"><? LOOP ServerLoop ?><? VAR Server ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
|
||||
<tr>
|
||||
<td class="maintitle">Module(s)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainalone">
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
<tr>
|
||||
<td width="100" class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Name</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Arguments</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000;">Description</td>
|
||||
</tr>
|
||||
|
||||
<? LOOP ModuleLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td>
|
||||
<input type="checkbox" name="loadmod" id="lm_<? VAR Name ESC=HTML ?>" value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ESC=HTML ?>"> <? VAR Name ESC=HTML ?></label>
|
||||
</td>
|
||||
<td>
|
||||
<? IF Disabled ?><? VAR Args ESC=HTML ?><? ELSE ?><input type="text" name="modargs_<? VAR Name ESC=HTML ?>" value="<? VAR Args ESC=HTML ?>" /><? ENDIF ?>
|
||||
</td>
|
||||
<td style="border-right: 0px;"><? VAR Description ESC=HTML ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle">Channel(s)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Default Modes:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="chanmodes" value="<? VAR DefaultChanModes ESC=HTML ?>" size="32" maxlength="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" class="mainalone">
|
||||
<? IF Edit ?>
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
<tr>
|
||||
<td width="100" class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">[<a href="addchan?user=<? VAR Username ESC=URL ?>">Add</a>]</td>
|
||||
<? IF ChannelLoop ?>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Save</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Name</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">CurModes</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">DefModes</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">BufferCount</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000;">Options</td>
|
||||
<? ELSE ?>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000;">- Add a channel (opens in same page)</td>
|
||||
<? ENDIF ?>
|
||||
</tr>
|
||||
|
||||
<? LOOP ChannelLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td>
|
||||
<input type="hidden" name="channel" value="<? VAR Name ESC=HTML ?>" />
|
||||
[<a href="editchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="delchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Del</a>]
|
||||
</td>
|
||||
<td><input type="checkbox" name="save_<? VAR Name ESC=HTML ?>"<? IF InConfig ?> checked="checked"<? ENDIF ?> /></td>
|
||||
<td><? VAR Name ESC=HTML ?></td>
|
||||
<td><? VAR CurModes ESC=HTML ?></td>
|
||||
<td><? VAR DefModes ESC=HTML ?></td>
|
||||
<td><? VAR BufferCount ESC=HTML ?></td>
|
||||
<td style="border-right: 0px;"><? VAR Options ESC=HTML ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</table>
|
||||
<? ENDIF ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table width="95%" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
|
||||
<tr>
|
||||
<td colspan="2" class="maintitle">ZNC Behavior</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Playback Buffer Size:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="bufsize" value="<? VAR BufferCount ESC=HTML ?>" size="32" maxlength="9">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Timestamp Format:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="timestampformat" value="<? VAR TimestampFormat ESC=HTML ?>" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Timezone offset:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="timezoneoffset" value="<? VAR TimezoneOffset ESC=HTML ?>" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Join Tries:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="jointries" value="<? VAR JoinTries ESC=HTML ?>" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Max Joins:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<input style="width: 100%;" type="text" name="maxjoins" value="<? VAR MaxJoins ESC=HTML ?>" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
Options:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<? LOOP OptionLoop ?>
|
||||
<input type="checkbox" name="<? VAR Name ESC=HTML?>" id="opt_<? VAR Name ESC=HTML ?>" value="1"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="opt_<? VAR Name ESC=HTML ?>"><? VAR DisplayName ESC=HTML ?></label><br>
|
||||
<? ENDLOOP ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="mainleft">
|
||||
CTCP Replies:
|
||||
</td>
|
||||
|
||||
<td class="mainright">
|
||||
<textarea style="width: 100%;" name="ctcpreplies" cols="40" rows="5"><? LOOP CTCPLoop ?><? VAR CTCP ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<br><br><input type="submit" value="<? IF Edit ?>Save User<? ELSE ?>Add User<? ENDIF ?>">
|
||||
</form>
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 69 KiB |
@@ -1,220 +0,0 @@
|
||||
body {
|
||||
background-image: url('graphix_bg.jpg');
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
td {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
input, select, textarea {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
border: 1px solid #000000;
|
||||
background-color: #C8EAFC;
|
||||
}
|
||||
|
||||
a:link, a:active, a:visited {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.header {
|
||||
background-image: url('graphix_header.jpg');
|
||||
padding: 10px;
|
||||
border: 1px solid #000000;
|
||||
height: 100px;
|
||||
width: 800px;
|
||||
vertical-align: bottom;
|
||||
text-align: right;
|
||||
font-weight: bold;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.loginbar {
|
||||
border-left: 1px solid #000000;
|
||||
border-bottom: 1px solid #000000;
|
||||
border-right: 1px solid #000000;
|
||||
background-color: #3B98F5;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.switchuser {
|
||||
border-left: 1px solid #000000;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.switchuser a:link, .switchuser a:active, .switchuser a:visited {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.switchuser a:hover {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #FFFFFF;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.menu {
|
||||
width: 160px;
|
||||
background-color: #B4D8FC;
|
||||
border-left: 1px solid #000000;
|
||||
vertical-align: top;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.menuactive {
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
height: 30px;
|
||||
background-color: #FFFFFF;
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #000000;
|
||||
}
|
||||
|
||||
.menuinactive {
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
height: 30px;
|
||||
background-color: #3B98F5;
|
||||
border-right: 1px solid #000000;
|
||||
border-bottom: 1px solid #000000;
|
||||
}
|
||||
|
||||
.menuactive a:link, .menuactive a:active, .menuactive a:visited {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.menuactive a:hover {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #3B98F5;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.menuinactive a:link, .menuinactive a:active, .menuinactive a:visited {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.menuinactive a:hover {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #FFFFFF;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.main {
|
||||
width: 640px;
|
||||
vertical-align: top;
|
||||
padding: 15px;
|
||||
background-color: #FFFFFF;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
|
||||
.cbar {
|
||||
border: 1px solid #000000;
|
||||
background-color: #3B98F5;
|
||||
height: 20px;
|
||||
text-align: right;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.cbar a:link, .cbar a:active, .cbar a:visited {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.cbar a:hover {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #FFFFFF;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.maintitle {
|
||||
height: 20px;
|
||||
background-color: #3B98F5;
|
||||
color: #000000;
|
||||
font-weight: bold;
|
||||
padding-left: 5px;
|
||||
border: 1px solid #000000;
|
||||
}
|
||||
|
||||
.mainalone {
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid #000000;
|
||||
border-left: 1px solid #000000;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
|
||||
.mainleft {
|
||||
height: 30px;
|
||||
padding: 5px;
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #000000;
|
||||
border-left: 1px solid #000000;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
|
||||
.mainright {
|
||||
padding: 5px;
|
||||
border-bottom: 1px solid #000000;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
|
||||
.mainrow {
|
||||
padding: 5px;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
|
||||
.main2title {
|
||||
height: 20px;
|
||||
background-color: #3B98F5;
|
||||
color: #000000;
|
||||
font-weight: bold;
|
||||
padding-left: 2px;
|
||||
}
|
||||
|
||||
.oddrow {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.oddrow td {
|
||||
padding: 2px;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
|
||||
.evenrow {
|
||||
height: 20px;
|
||||
background-color: #C8EAFC;
|
||||
}
|
||||
|
||||
.evenrow td {
|
||||
padding: 2px;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form action="<? IF Edit ?>editchan<? ELSE ?>addchan<? ENDIF ?>" method="post">
|
||||
<div class="section">
|
||||
<input type="hidden" name="submitted" value="1" />
|
||||
<input type="hidden" name="user" value="<? VAR User ESC=HTML ?>" />
|
||||
|
||||
<div class="sectiontitle">Channel Info</div>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Channel Name:</div>
|
||||
<? IF Edit ?>
|
||||
<input type="hidden" name="name" value="<? VAR ChanName ESC=HTML ?>" />
|
||||
<? VAR ChanName ESC=HTML ?>
|
||||
<? ELSE ?>
|
||||
<div><input type="text" name="name" value="" size="32" /></div>
|
||||
<? ENDIF ?>
|
||||
</div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Buffer Count:</div>
|
||||
<div><input type="text" name="buffercount" value="<? VAR BufferCount ESC=HTML ?>" size="8" /></div>
|
||||
</div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Default Modes:</div>
|
||||
<div><input type="text" name="defmodes" value="<? VAR DefModes ESC=HTML ?>" size="16" /></div>
|
||||
</div>
|
||||
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Save:</div>
|
||||
<div><input type="checkbox" name="save" id="save" value="true"<? IF InConfig ?> checked="checked"<? ENDIF ?> /><label for="save"> Save to config</label></div>
|
||||
</div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Options:</div>
|
||||
<? LOOP OptionLoop ?>
|
||||
<input type="checkbox" name="<? VAR Name ESC=HTML ?>" id="opt_<? VAR Name ESC=HTML ?>" value="true"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="opt_<? VAR Name ESC=HTML ?>"> <? VAR DisplayName ESC=HTML ?></label>
|
||||
<? ENDLOOP ?>
|
||||
</div>
|
||||
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="submit" value="<? IF Edit ?>Save<? ELSE ?>Add Channel<? ENDIF ?>" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,3 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
<h2><?VAR Error ESC=HTML?></h2>
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,5 +0,0 @@
|
||||
<div id="tag"><?VAR Tag ESC=HTML ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,32 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<title>ZNC - <?VAR Title ESC=HTML?></title>
|
||||
<link rel="stylesheet" type="text/css" href="<?VAR Skin ESC=URL?>/main.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<div id="banner">
|
||||
<h2><?VAR Title ESC=HTML?></h2>
|
||||
<div id="ident"><?VAR SessionUser ESC=HTML?> (from: <?VAR SessionIP ESC=HTML?>)</div>
|
||||
</div>
|
||||
|
||||
<div id="gnav">
|
||||
<div id="nav">
|
||||
<ul id="menu">
|
||||
<li<? IF Action == "home" ?> class="on"<? ENDIF ?>><a href="home">Home</a></li>
|
||||
<? IF IsAdmin ?>
|
||||
<li<? IF Action == "settings" ?> class="on"<? ENDIF ?>><a href="settings">Settings</a></li>
|
||||
<li<? IF Action == "adduser" ?> class="on"<? ENDIF ?>><a href="adduser">Add User</a></li>
|
||||
<li<? IF Action == "listusers" || Action == "edituser" ?> class="on"<? ENDIF ?>><a href="listusers">Edit Users</a></li>
|
||||
<? ELSE ?>
|
||||
<li<? IF Action == "edituser" ?> class="on"<? ENDIF ?>><a href="edituser">My Settings</a></li>
|
||||
<? ENDIF ?>
|
||||
<li<? IF Action == "switchuser" ?> class="on"<? ENDIF ?>><a href="switchuser">Switch User</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="main">
|
||||
@@ -1,32 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
<?IF !UserLoop?>
|
||||
There are no users defined. Click <a href="adduser">here</a> if you would like to add one.
|
||||
<?ELSE?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Action</td>
|
||||
<td>Username</td>
|
||||
<td>Clients</td>
|
||||
<td>Current Server</td>
|
||||
<td>IRC Nick</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?LOOP UserLoop?>
|
||||
<tr class="<?IF __EVEN__?>evenrow<?ELSE?>oddrow<?ENDIF?>">
|
||||
<td>
|
||||
<span class="nowrap">
|
||||
[<a href="edituser?user=<?VAR Username ESC=URL?>">Edit</a>]
|
||||
<? IF !IsSelf ?>[<a href="deluser?user=<?VAR Username ESC=URL?>" onClick="return confirm('Do you really wish to remove this user?');">Delete</a>]<? ENDIF ?>
|
||||
</span>
|
||||
</td>
|
||||
<td><? VAR Username ESC=HTML ?></td>
|
||||
<td><? VAR Clients ESC=HTML ?></td>
|
||||
<td><? VAR Server ESC=HTML DEFAULT="-N/A-" ?></td>
|
||||
<td><? VAR IRCNick ESC=HTML ?></td>
|
||||
</tr>
|
||||
<?ENDLOOP?>
|
||||
</table>
|
||||
<?ENDIF?>
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,3 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
Welcome to the ZNC webadmin module.
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,112 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form action="settings" method="post">
|
||||
<div class="section">
|
||||
<input type="hidden" name="submitted" value="1" />
|
||||
|
||||
<div class="sectiontitle">Listen Port(s)</div>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Port</td>
|
||||
<td>BindHost</td>
|
||||
<td>SSL</td>
|
||||
<td>IPv6</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<? LOOP ListenLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td><? VAR Port ESC=HTML ?></td>
|
||||
<td><? VAR BindHost ESC=HTML DEFAULT=** ?></td>
|
||||
<td><? IF IsSSL ?>True<? ENDIF ?></td>
|
||||
<td><? IF IsIPV6 ?>True<? ENDIF ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<div class="sectiontitle">Settings</div>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Skin:</div>
|
||||
<div>
|
||||
<select name="skin">
|
||||
<? LOOP SkinLoop ?>
|
||||
<option value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR Name ESC=HTML ?></option>
|
||||
<? ENDLOOP ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Status Prefix:</div>
|
||||
<div><input type="text" name="statusprefix" value="<? VAR StatusPrefix ESC=HTML ?>" size="32" maxlength="128" /></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">ISpoofFile:</div>
|
||||
<div><input type="text" name="ispooffile" value="<? VAR ISpoofFile ESC=HTML ?>" size="32" maxlength="128" /></div>
|
||||
</div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">ISpoofFormat:</div>
|
||||
<div><input type="text" name="ispoofformat" value="<? VAR ISpoofFormat ESC=HTML ?>" size="32" maxlength="128" /></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">MOTD:</div>
|
||||
<div><textarea name="motd" cols="70" rows="5"><? LOOP MOTDLoop ?><? VAR Line ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">VHosts:</div>
|
||||
<div><textarea name="vhosts" cols="70" rows="8"><? LOOP VHostLoop ?><? VAR VHost ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<div class="sectiontitle">Global Modules</div>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Arguments</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<? LOOP ModuleLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td><span style="white-space: nowrap;"><input type="checkbox" name="loadmod" id="lm_<? VAR Name ESC=HTML ?>" value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ESC=HTML ?>"> <? VAR Name ESC=HTML ?></label></span></td>
|
||||
<td><input type="text" name="modargs_<? VAR Name ESC=HTML ?>" value="<? VAR Args ESC=HTML ?>" /></td>
|
||||
<td><? VAR Description ESC=HTML ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="submit" value="Submit" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
@@ -1,220 +0,0 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form action="<? IF Edit ?>edituser<? ELSE ?>adduser<? ENDIF ?>" method="post">
|
||||
<div class="section">
|
||||
<input type="hidden" name="submitted" value="1" />
|
||||
|
||||
<div class="sectiontitle">Authentication</div>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Username:</div>
|
||||
<div>
|
||||
<? IF Edit ?>
|
||||
<input type="hidden" name="user" value="<? VAR Username ESC=HTML ?>" />
|
||||
<input type="text" name="newuser" value="<? VAR Username ESC=HTML ?>" class="half" maxlength="128" disabled="disabled" />
|
||||
<? ELSE ?>
|
||||
<input type="text" name="user" value="<? VAR Username ESC=HTML ?>" class="half" maxlength="128" />
|
||||
<? ENDIF ?>
|
||||
</div>
|
||||
|
||||
<div class="inputlabel">Password:</div>
|
||||
<div><input type="password" name="password" class="half" /></div>
|
||||
<div class="inputlabel">Confirm Password:</div>
|
||||
<div><input type="password" name="password2" class="half" /></div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="inputlabel">Allowed IPs:</div>
|
||||
<textarea name="allowedips" class="half"><? LOOP AllowedHostLoop ?><? VAR Host ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<div class="sectiontitle">IRC Information</div>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Nick:</div>
|
||||
<div><input type="text" name="nick" value="<? VAR Nick ESC=HTML ?>" class="half" maxlength="128" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">AltNick:</div>
|
||||
<div><input type="text" name="altnick" value="<? VAR AltNick ESC=HTML ?>" class="half" maxlength="128" /></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Ident:</div>
|
||||
<div><input type="text" name="ident" value="<? VAR Ident ESC=HTML ?>" class="half" maxlength="128" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">StatusPrefix:</div>
|
||||
<div><input type="text" name="statusprefix" value="<? VAR StatusPrefix ESC=HTML ?>" class="half" maxlength="5" /></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">RealName:</div>
|
||||
<div><input type="text" name="realname" value="<? VAR RealName ESC=HTML ?>" class="full" maxlength="256" /></div>
|
||||
</div>
|
||||
|
||||
<div class="subsection">
|
||||
<? IF VHostLoop ?>
|
||||
<div class="inputlabel">VHost:</div>
|
||||
<select name="vhost">
|
||||
<option value="">- Default -</option>
|
||||
<? LOOP VHostLoop ?><option value="<? VAR VHost ESC=HTML ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR VHost ESC=HTML ?></option><? ENDLOOP ?>
|
||||
</select>
|
||||
<? ENDIF ?>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">QuitMsg:</div>
|
||||
<div><input type="text" name="quitmsg" value="<? VAR QuitMsg ESC=HTML ?>" class="full" maxlength="256" /></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Servers:</div>
|
||||
<div><textarea name="servers" class="half"><? LOOP ServerLoop ?><? VAR Server ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<div class="sectiontitle">Modules</div>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Arguments</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<? LOOP ModuleLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td>
|
||||
<input type="checkbox" name="loadmod" id="lm_<? VAR Name ESC=HTML ?>" value="<? VAR Name ESC=HTML ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ESC=HTML ?>"> <? VAR Name ESC=HTML ?></label>
|
||||
</td>
|
||||
<td>
|
||||
<? IF Disabled ?><? VAR Args ESC=HTML ?><? ELSE ?><input class="third" type="text" name="modargs_<? VAR Name ESC=HTML ?>" value="<? VAR Args ESC=HTML ?>" /><? ENDIF ?>
|
||||
</td>
|
||||
<td><? VAR Description ESC=HTML ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<div class="sectiontitle">Channels</div>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Default Modes:</div>
|
||||
<div><input type="text" name="chanmodes" value="<? VAR DefaultChanModes ESC=HTML ?>" class="third" maxlength="32" /></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<? IF Edit ?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>[<a href="addchan?user=<? VAR Username 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>
|
||||
|
||||
<? LOOP ChannelLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td>
|
||||
<input type="hidden" name="channel" value="<? VAR Name ESC=HTML ?>" />
|
||||
[<a href="editchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="delchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Del</a>]
|
||||
</td>
|
||||
<td><input type="checkbox" name="save_<? VAR Name ESC=HTML ?>"<? IF InConfig ?> checked="checked"<? ENDIF ?> /></td>
|
||||
<td><? VAR Name ESC=HTML ?></td>
|
||||
<td><? VAR CurModes ESC=HTML ?></td>
|
||||
<td><? VAR DefModes ESC=HTML ?></td>
|
||||
<td><? VAR BufferCount ESC=HTML ?></td>
|
||||
<td><? VAR Options ESC=HTML ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</table>
|
||||
<? ENDIF ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<div class="sectiontitle">ZNC Behavior</div>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Playback Buffer Size:</div>
|
||||
<div><input type="text" name="bufsize" value="<? VAR BufferCount ESC=HTML ?>" class="third" maxlength="9" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Timestamp Format:</div>
|
||||
<div><input type="text" name="timestampformat" value="<? VAR TimestampFormat ESC=HTML ?>" class="half" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Timezone offset:</div>
|
||||
<div><input type="text" name="timezoneoffset" value="<? VAR TimezoneOffset ESC=HTML ?>" class="third" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Join Tries:</div>
|
||||
<div><input type="text" name="jointries" value="<? VAR JoinTries ESC=HTML ?>" class="third" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Max Joins:</div>
|
||||
<div><input type="text" name="maxjoins" value="<? VAR MaxJoins ESC=HTML ?>" class="third" /></div>
|
||||
</div>
|
||||
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Options:</div>
|
||||
<? LOOP OptionLoop ?>
|
||||
<span style="white-space: nowrap;"><input type="checkbox" name="<? VAR Name ESC=HTML?>" id="opt_<? VAR Name ESC=HTML ?>" value="1"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="opt_<? VAR Name ESC=HTML ?>"><? VAR DisplayName ESC=HTML ?></label></span>
|
||||
<? ENDLOOP ?>
|
||||
</div>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">CTCP Replies:</div>
|
||||
<div><textarea name="ctcpreplies" class="half"><? LOOP CTCPLoop ?><? VAR CTCP ESC=HTML ?>
|
||||
<? ENDLOOP ?>
|
||||
</textarea></div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input type="submit" value="Submit" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
|
Before Width: | Height: | Size: 3.6 KiB |
@@ -24,9 +24,9 @@
|
||||
<tr class="<? IF __EVEN__ ?>altrow<? ENDIF ?>">
|
||||
<td><? VAR Port ?></td>
|
||||
<td><? VAR BindHost DEFAULT=** ?></td>
|
||||
<td><? IF IsSSL ?>True<? ELSE ?>False<? ENDIF ?></td>
|
||||
<td><? IF IsIPV4 ?>True<? ELSE ?>False<? ENDIF ?></td>
|
||||
<td><? IF IsIPV6 ?>True<? ELSE ?>False<? ENDIF ?></td>
|
||||
<td><? IF IsSSL ?>Yes<? ELSE ?>No<? ENDIF ?></td>
|
||||
<td><? IF IsIPV4 ?>Yes<? ELSE ?>No<? ENDIF ?></td>
|
||||
<td><? IF IsIPV6 ?>Yes<? ELSE ?>No<? ENDIF ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</tbody>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 3.6 KiB |
@@ -1,10 +1,9 @@
|
||||
<? INC DocType.tmpl ?>
|
||||
<? INC Options.tmpl ?>
|
||||
<html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<title>ZNC - <? VAR Title DEFAULT="Web Frontend" ?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/pub/main.css" />
|
||||
<? LOOP CSSLoop ?>
|
||||
<?IF HREF?><link rel="stylesheet" type="text/css" href="<? VAR HREF ?>" /><?ENDIF?>
|
||||
<?ENDLOOP?>
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
@@ -1 +0,0 @@
|
||||
<i>ZNC Web Skin "dark-clouds" by <a href="mailto:davidp@preshweb.co.uk">David Precious</a></i>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<? ADDROW CSSLoop HREF=/pub/_default_.css ?>
|
||||
<? INC BaseHeader.tmpl ?>
|
||||
<? REM ?>
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
263
webskins/dark-clouds/pub/dark-clouds.css
Normal file
@@ -0,0 +1,263 @@
|
||||
html,
|
||||
body {
|
||||
background: #555;
|
||||
padding: 0;
|
||||
margin: 10px 0;
|
||||
background: #444;
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* TABLES */
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
table.section,
|
||||
table.data {
|
||||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
border: 1px solid #f00;
|
||||
}
|
||||
|
||||
table.section td,
|
||||
table.data td {
|
||||
height: 20px;
|
||||
border: 1px solid #000;
|
||||
padding: 2px 3px;
|
||||
}
|
||||
|
||||
table.section thead td,
|
||||
table.data thead td {
|
||||
background-color: #D49712;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.data thead td {
|
||||
background-color: #EC8E00;
|
||||
}
|
||||
|
||||
table.data tbody .altrow td {
|
||||
background-color: #777;
|
||||
}
|
||||
|
||||
table.section table.data {
|
||||
width: 95%;
|
||||
margin: 10 auto;
|
||||
}
|
||||
|
||||
table td.tdbottom {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* !TABLES */
|
||||
|
||||
/* FORMS */
|
||||
|
||||
input, select, textarea {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
border: 1px solid #000000;
|
||||
background-color: #999;
|
||||
}
|
||||
|
||||
table.section textarea,
|
||||
table.section select,
|
||||
table.section input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
table.section input.checkbox {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* !FORMS */
|
||||
|
||||
.nowrap {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* LINKS */
|
||||
|
||||
a:link,
|
||||
a:active,
|
||||
a:visited,
|
||||
a:hover {
|
||||
font-family: verdana;
|
||||
font-size: 12px;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* !LINKS */
|
||||
|
||||
#wrapper {
|
||||
width: 800px;
|
||||
border: 1px solid #000;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
#banner {
|
||||
background-image: url('clouds-header.jpg');
|
||||
padding: 0;
|
||||
border-bottom: 1px solid #000000;
|
||||
height: 100px;
|
||||
width: 800px;
|
||||
text-align: right;
|
||||
font-weight: bold;
|
||||
font-size: 13px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#banner p {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
#infobar {
|
||||
width: 800px;
|
||||
height: 20px;
|
||||
border-bottom: 1px solid #000;
|
||||
border-right: 1px solid #000;
|
||||
}
|
||||
|
||||
.successbar,
|
||||
.errorbar {
|
||||
width: 790px;
|
||||
height: 20px;
|
||||
border-bottom: 1px solid #000;
|
||||
border-right: 1px solid #000;
|
||||
background: #900;
|
||||
padding: 2px 5px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.successbar {
|
||||
background: #070;
|
||||
}
|
||||
|
||||
|
||||
#infobar span {
|
||||
float: left;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
#infobar span.loginbox,
|
||||
#infobar span.logoutbox {
|
||||
text-align: right;
|
||||
padding-right: 5px;
|
||||
border-left: 1px solid #000000;
|
||||
height: 100%;
|
||||
width: 250px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
#infobar span.logoutbox {
|
||||
text-align: center;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
#infobar span.loginbox input {
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
#infobar span.loginbox input.submit {
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
#subpage {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#content {
|
||||
float: right;
|
||||
width: 640px;
|
||||
padding: 0;
|
||||
background-color: #444;
|
||||
}
|
||||
|
||||
/* MENU */
|
||||
|
||||
#menu {
|
||||
float: left;
|
||||
background-color: #333;
|
||||
width: 160px;
|
||||
margin: 0;
|
||||
margin-bottom: 20px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
#menu .title,
|
||||
#menu .item,
|
||||
#menu .subitem {
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
padding: 8px 5px;
|
||||
background-color: #777;
|
||||
border-bottom: 1px solid #000;
|
||||
border-right: 1px solid #000;
|
||||
}
|
||||
|
||||
#menu .title {
|
||||
text-align: left;
|
||||
padding-left: 3px;
|
||||
background-color: #333;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#menu .item.active {
|
||||
background-color: #D49712;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#menu .subitem {
|
||||
text-align: left;
|
||||
padding: 3px 5px 3px 10px;
|
||||
background-color: #999;
|
||||
}
|
||||
|
||||
#menu .subitem.active {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#menu .subitem.active a:hover {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#menu a {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* !MENU */
|
||||
|
||||
#footerbar {
|
||||
clear: both;
|
||||
background-color: #D49712;
|
||||
border-top: 1px solid #000000;
|
||||
height: 20px;
|
||||
text-align: right;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#breadcrumb {
|
||||
padding: 5px 10px;
|
||||
border-bottom: 1px solid #000;
|
||||
}
|
||||
BIN
webskins/dark-clouds/pub/favicon.ico
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
1
webskins/dark-clouds/tmpl/FooterTag.tmpl
Normal file
@@ -0,0 +1 @@
|
||||
<i>ZNC Web Skin "dark-clouds" by <a href="mailto:davidp@preshweb.co.uk">David Precious</a></i>
|
||||
2
webskins/dark-clouds/tmpl/Header.tmpl
Normal file
@@ -0,0 +1,2 @@
|
||||
<? ADDROW CSSLoop HREF=/pub/dark-clouds.css ?>
|
||||
<? INC BaseHeader.tmpl ?>
|
||||
@@ -1,2 +1,3 @@
|
||||
<? ADDROW CSSLoop HREF=/skinfiles/dark-clouds/dark-clouds.css ?>
|
||||
<? ADDROW CSSLoop HREF=/pub/forest.css ?>
|
||||
<? INC BaseHeader.tmpl ?>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 683 B After Width: | Height: | Size: 683 B |
|
Before Width: | Height: | Size: 1001 B After Width: | Height: | Size: 1001 B |
0
webskins/ice/tmpl/FooterTag.tmpl
Normal file
2
webskins/ice/tmpl/Header.tmpl
Normal file
@@ -0,0 +1,2 @@
|
||||
<? ADDROW CSSLoop HREF=/pub/ice.css ?>
|
||||
<? INC BaseHeader.tmpl ?>
|
||||