Removed default-checked yet quite useless and annoying "[add ]your current ip" checkbox from webadmin's edit user page. The new default skin never had it, this completely removes it from the other skins and from the module.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1722 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
cflakes
2010-01-25 21:54:55 +00:00
parent cb0cc03e2e
commit f06d68a77c
4 changed files with 0 additions and 25 deletions

View File

@@ -830,14 +830,6 @@ bool CWebAdminSock::UserPage(CString& sPageRet, CUser* pUser) {
l["CTCP"] = it2->first + " " + it2->second;
}
if (pUser == CZNC::Get().FindUser(GetUser())) {
CString sIP = GetRemoteIP();
if (!sIP.empty()) {
m_Template["OwnIP"] = sIP.Token(0, false, ".") + "." + sIP.Token(1, false, ".") + "." + sIP.Token(2, false, ".") + ".*";
}
}
const vector<CChan*>& Channels = pUser->GetChans();
for (unsigned int c = 0; c < Channels.size(); c++) {
CChan* pChan = Channels[c];
@@ -1060,10 +1052,6 @@ CUser* CWebAdminSock::GetNewUser(CString& sPageRet, CUser* pUser) {
pNewUser->AddAllowedHost("*");
}
if (HasParam("ownip")) {
pNewUser->AddAllowedHost(GetParam("ownip"));
}
GetRawParam("ctcpreplies").Split("\n", vsArgs);
for (a = 0; a < vsArgs.size(); a++) {
CString sReply = vsArgs[a].TrimRight_n("\r");

View File

@@ -52,10 +52,6 @@
<textarea style="width: 100%;" name="allowedips" cols="40" rows="5"><? LOOP AllowedHostLoop ?><? VAR Host ESC=HTML ?>
<? ENDLOOP ?>
</textarea>
<? IF OwnIP ?>
<br><br><input type="checkbox" id="ownip" name="ownip" value="<? VAR OwnIP ESC=HTML ?>" checked="checked"><label for="ownip"> <? VAR OwnIP ESC=HTML ?> (your current ip)</label>
<? ENDIF ?>
</td>
</tr>
</table>

View File

@@ -52,10 +52,6 @@
<textarea style="width: 100%;" name="allowedips" cols="40" rows="5"><? LOOP AllowedHostLoop ?><? VAR Host ESC=HTML ?>
<? ENDLOOP ?>
</textarea>
<? IF OwnIP ?>
<br><br><input type="checkbox" id="ownip" name="ownip" value="<? VAR OwnIP ESC=HTML ?>" checked="checked"><label for="ownip"> <? VAR OwnIP ESC=HTML ?> (your current ip)</label>
<? ENDIF ?>
</td>
</tr>
</table>

View File

@@ -28,11 +28,6 @@
<textarea name="allowedips" class="half"><? LOOP AllowedHostLoop ?><? VAR Host ESC=HTML ?>
<? ENDLOOP ?>
</textarea>
<? IF OwnIP ?>
<div class="subsection">
<span style="white-space: nowrap;"><input type="checkbox" name="ownip" id="ownip" value="<? VAR OwnIP ESC=HTML ?>" checked="checked" /><label for="ownip"> <? VAR OwnIP ESC=HTML ?> (your current ip)</label></span>&nbsp;&nbsp;
</div>
<? ENDIF ?>
</div>
<div style="clear: both;"></div>
</div>