mirror of
https://github.com/znc/znc.git
synced 2026-07-05 01:11:53 +02:00
Show list of timezones in webadmin.
This commit is contained in:
@@ -213,11 +213,18 @@
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Timestamp Format:</div>
|
||||
<div><input type="text" name="timestampformat" value="<? VAR TimestampFormat ?>" class="half" /></div>
|
||||
<div><input type="text" name="timestampformat" value="<? VAR TimestampFormat ?>" class="full" /></div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Timezone:</div>
|
||||
<div><input type="text" name="timezone" value="<? VAR Timezone ?>" class="half" /></div>
|
||||
<div>
|
||||
<input type="text" name="timezone" value="<? VAR Timezone ?>" class="half" list="timezone_list" />
|
||||
<datalist id="timezone_list">
|
||||
<? LOOP TZLoop ?>
|
||||
<option value="<? VAR TZ ?>"/>
|
||||
<? ENDLOOP ?>
|
||||
</datalist>
|
||||
</div>
|
||||
</div>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Join Tries:</div>
|
||||
|
||||
@@ -945,6 +945,12 @@ public:
|
||||
Tmpl["StatusPrefix"] = "*";
|
||||
}
|
||||
|
||||
SCString ssTimezones = CUtils::GetTimezones();
|
||||
for (SCString::iterator i = ssTimezones.begin(); i != ssTimezones.end(); ++i) {
|
||||
CTemplate& l = Tmpl.AddRow("TZLoop");
|
||||
l["TZ"] = *i;
|
||||
}
|
||||
|
||||
// To change BindHosts be admin or don't have DenySetBindHost
|
||||
if (spSession->IsAdmin() || !spSession->GetUser()->DenySetBindHost()) {
|
||||
const VCString& vsBindHosts = CZNC::Get().GetBindHosts();
|
||||
|
||||
Reference in New Issue
Block a user