support for password change added

support for spam options added
This commit is contained in:
lars 2006-01-29 17:54:38 +00:00
parent 56be2f41f5
commit 385f0cc3ad
6 changed files with 380 additions and 51 deletions

View file

@ -3,28 +3,75 @@
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.Filter) ?> </legend>
<legend><?cs var:html_escape(Lang.Legend.FilterAction) ?> </legend>
<form method="post" action="<?cs var:Config.ScriptName ?>" enctype="application/x-www-form-urlencoded">
<ul>
<li><input type="radio" name="filter_type" id="filter_none" value="none" <?cs
if:(!(Data.isSpamMove || Data.isSpamMark)) ?>checked="checked"<?cs /if ?>/>
<label for="filter_none"><?cs var:Lang.Misc.Filter_None ?></label>
if:(!(Data.isSpamMove || Data.isSpamMark))
?>checked="checked"<?cs /if ?>/>
<label for="filter_none"><?cs var:Lang.Misc.SpamAction.None
?></label>
</li>
<li><input type="radio" name="filter_type" id="filter_mark" value="mark" <?cs
if:Data.isSpamMark ?>checked="checked"<?cs /if ?>/>
<label for="filter_mark"><?cs var:Lang.Misc.Filter_Mark ?></label>
<label for="filter_mark"><?cs var:Lang.Misc.SpamAction.Mark
?></label>
</li>
<li><input type="radio" name="filter_type" id="filter_move" value="move" <?cs
if:Data.isSpamMove ?>checked="checked"<?cs /if ?>/>
<label for="filter_move"><?cs var:Lang.Misc.Filter_Move ?></label>
<label for="filter_move"><?cs var:Lang.Misc.SpamAction.Move
?></label>
</li>
<li><label for="pw"><?cs var:html_escape(Lang.Misc.Password) ?>:</label>
<input type="password" name="pw" id="pw" size="20"></li>
<input type="password" name="pw" id="pw" size="20" /></li>
</ul>
<input type="hidden" name="action" value="filter_action_update" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.Filter) ?></button>
</form>
</fieldset>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.FilterOptions) ?> </legend>
<form method="post" action="<?cs var:Config.ScriptName ?>" enctype="application/x-www-form-urlencoded">
<ul>
<li><label for="spam_score"><?cs
var:html_escape(Lang.Misc.SpamOptions.Score) ?>: </label>
<select name="spam_score" id="spam_score">
<?cs loop:i = #1, #20, #1 ?><?cs set:val='' + i + '.0'
?><option <?cs
if:(Data.Filter.Score == val) ?>selected="selected"<?cs
/if ?>><?cs var:val ?></option>
<?cs /loop ?>
</select></li>
<li><input type="checkbox" name="spam_attach_text" id="spam_attach_text" <?cs
if:(Data.Filter.AttachText == 1) ?>checked="checked"<?cs /if ?> />
<label for="spam_attach_text"><?cs
var:html_escape(Lang.Misc.SpamOptions.AttachText) ?></label>
</li>
<li><input type="checkbox" name="spam_bayes" id="spam_bayes" <?cs
if:(Data.Filter.Bayes == 1) ?>checked="checked"<?cs /if ?> />
<label for="spam_bayes"><?cs
var:html_escape(Lang.Misc.SpamOptions.Bayes) ?></label>
</li>
<li><label for="spam_subject"><?cs var:Lang.Misc.SpamOptions.Subject
?>: </label>
<input type="text" id="spam_subject" name="spam_subject" size="20"
value="<?cs var:html_escape(Data.Filter.Subject) ?>" />
</li>
<li><label for="spam_whitelist"><?cs
var:html_escape(Lang.Misc.SpamOptions.WhiteList) ?></label>
<ul><li><textarea name="spam_whitelist" id="spam_whitelist"
cols="60" rows="4"><?cs
var:html_escape(Data.Filter.WhiteList) ?></textarea>
</li></ul></li>
<li><label for="pw2"><?cs var:html_escape(Lang.Misc.Password) ?>:</label>
<input type="password" name="pw" id="pw2" size="20" /></li>
</ul>
<input type="hidden" name="action" value="filter_update" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.Filter) ?></button>
<input type="hidden" name="action" value="filter_options_update" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.Filter) ?></button>
</form>
</fieldset>

View file

@ -15,9 +15,9 @@
<fieldset>
<legend><?cs var:html_escape(Lang.Legend.StatusFilter) ?> </legend>
<p><?cs if:Data.isSpamMove ?><?cs var:Lang.Misc.StatusSpamMove ?><?cs
elif:Data.isSpamMark ?><?cs var:Lang.Misc.StatusSpamMark ?><?cs
else ?><?cs var:Lang.Misc.StatusSpamNone ?><?cs /if ?>
<p><?cs if:Data.isSpamMove ?><?cs var:Lang.Misc.SpamAction.Move ?><?cs
elif:Data.isSpamMark ?><?cs var:Lang.Misc.SpamAction.Mark ?><?cs
else ?><?cs var:Lang.Misc.SpamAction.None ?><?cs /if ?>
</p>
</fieldset>

View file

@ -7,13 +7,32 @@
<form method="post" action="<?cs var:Config.ScriptName ?>" enctype="application/x-www-form-urlencoded">
<ul>
<li>noch nicht implementiert</li>
<li><label for="oldpw"><?cs var:html_escape(Lang.Misc.OldPassword) ?>:</label>
<input type="password" name="oldpassword" id="oldpw" size="20"></li>
<li><?cs if:subcount(Data.Password.Types) > 1 ?>
<label for="pw_type"><?cs var:html_escape(Lang.Misc.PasswordType)
?>:</label>
<select id="pw_type" name="pw_type">
<?cs each:pw_type = Data.Password.Types ?>
<option><?cs var:pw_type ?></option>
<?cs /each ?>
<option selected="selected" value="all"><?cs
var:html_escape(Lang.Misc.AllPasswords)
?></option>
</select>
<?cs else ?>
<!-- the "each" statement will only retrieve the one pw_type -->
<?cs each:pw_type = Data.Password.Types ?>
<input type="hidden" name="pw_type"
value="<?cs var:pw_type ?>" />
<?cs /each ?>
<?cs /if ?></li>
<li><label for="newpw"><?cs var:html_escape(Lang.Misc.NewPassword) ?>:</label>
<input type="password" id="newpw" name="newpassword" size="20"></li>
<li><label for="newpw2"><?cs var:html_escape(Lang.Misc.NewPasswordAgain) ?>:</label>
<input type="password" id="newpw2" name="newpassword2" size="20"></li>
<input type="password" id="newpw" name="newpassword" size="20" /></li>
<li><label for="newpw2"><?cs var:html_escape(Lang.Misc.NewPasswordAgain)
?>:</label>
<input type="password" id="newpw2" name="newpassword2"
size="20" /></li>
<li><label for="oldpw"><?cs var:html_escape(Lang.Misc.OldPassword) ?>:</label>
<input type="password" name="oldpassword" id="oldpw" size="20" /></li>
</ul>