mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Show a list of users in the send_raw web interface
This commit is contained in:
@@ -52,6 +52,12 @@ public:
|
||||
WebSock.GetSession()->AddSuccess("Line sent");
|
||||
}
|
||||
|
||||
const map<CString,CUser*>& msUsers = CZNC::Get().GetUserMap();
|
||||
for (map<CString,CUser*>::const_iterator it = msUsers.begin(); it != msUsers.end(); ++it) {
|
||||
CTemplate& l = Tmpl.AddRow("UserLoop");
|
||||
l["Username"] = (*it->second).GetUserName();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,11 @@
|
||||
<div class="sectionbody">
|
||||
<div class="subsection third">
|
||||
<div class="inputlabel">User:</div>
|
||||
<div><input type="text" name="user" value="<? VAR user ?>" /></div>
|
||||
<div><select name="user">
|
||||
<? LOOP UserLoop?>
|
||||
<option value="<? VAR Username ESC=HTML ?>"><? VAR Username ESC=HTML ?></option>
|
||||
<? ENDLOOP ?>
|
||||
</select></div>
|
||||
</div>
|
||||
|
||||
<div class="subsection third">
|
||||
|
||||
Reference in New Issue
Block a user