2017-05-26 23:02:04 +02:00
|
|
|
|
<?php
|
|
|
|
|
if (!isset($_SESSION['mailcow_cc_role'])) {
|
|
|
|
|
header('Location: /');
|
|
|
|
|
exit();
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<!-- add sync job modal -->
|
|
|
|
|
<div class="modal fade" id="addSyncJobModal" tabindex="-1" role="dialog" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog modal-lg">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
|
|
|
|
|
<h3 class="modal-title"><?=$lang['add']['syncjob'];?></h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<p><?=$lang['add']['syncjob_hint'];?></p>
|
2017-12-09 13:17:15 +01:00
|
|
|
|
<form class="form-horizontal" data-cached-form="true" role="form" data-id="add_syncjob">
|
2017-05-26 23:02:04 +02:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="host1"><?=$lang['add']['hostname'];?></label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="text" class="form-control" name="host1" id="host1" required>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="port1"><?=$lang['add']['port'];?></label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="number" class="form-control" name="port1" id="port1" min="1" max="65535" value="143" required>
|
2017-11-08 11:07:32 +01:00
|
|
|
|
<small class="help-block">1-65535</small>
|
2017-05-26 23:02:04 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="user1"><?=$lang['add']['username'];?></label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="text" class="form-control" name="user1" id="user1" required>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="password1"><?=$lang['add']['password'];?></label>
|
|
|
|
|
<div class="col-sm-10">
|
2017-06-19 11:20:56 +02:00
|
|
|
|
<input type="password" class="form-control" name="password1" id="password1" required>
|
2017-05-26 23:02:04 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="enc1"><?=$lang['add']['enc_method'];?></label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<select name="enc1" id="enc1" title="<?=$lang['add']['select'];?>" required>
|
|
|
|
|
<option selected>TLS</option>
|
|
|
|
|
<option>SSL</option>
|
|
|
|
|
<option>PLAIN</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="mins_interval"><?=$lang['add']['mins_interval'];?></label>
|
|
|
|
|
<div class="col-sm-10">
|
2018-01-15 19:53:09 +01:00
|
|
|
|
<input type="number" class="form-control" name="mins_interval" min="1" max="3600" value="20" required>
|
2017-11-08 11:07:32 +01:00
|
|
|
|
<small class="help-block">10-3600</small>
|
2017-05-26 23:02:04 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="subfolder2"><?=$lang['edit']['subfolder2'];?></label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="text" class="form-control" name="subfolder2" id="subfolder2" value="External">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="maxage"><?=$lang['edit']['maxage'];?></label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="number" class="form-control" name="maxage" id="maxage" min="0" max="32000" value="0">
|
2017-11-08 11:07:32 +01:00
|
|
|
|
<small class="help-block">0-32000</small>
|
2017-05-26 23:02:04 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="exclude"><?=$lang['add']['exclude'];?></label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<input type="text" class="form-control" name="exclude" id="exclude" value="(?i)spam|(?i)junk">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
|
<div class="checkbox">
|
|
|
|
|
<label><input type="checkbox" value="1" name="delete2duplicates" checked> <?=$lang['add']['delete2duplicates'];?></label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
|
<div class="checkbox">
|
|
|
|
|
<label><input type="checkbox" value="1" name="delete1"> <?=$lang['add']['delete1'];?></label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-08-31 10:36:10 +02:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
|
<div class="checkbox">
|
|
|
|
|
<label><input type="checkbox" value="1" name="delete2"> <?=$lang['add']['delete2'];?></label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-05-26 23:02:04 +02:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
|
<div class="checkbox">
|
|
|
|
|
<label><input type="checkbox" value="1" name="active" checked> <?=$lang['add']['active'];?></label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
|
<button class="btn btn-default" id="add_item" data-id="add_syncjob" data-api-url='add/syncjob' data-api-attr='{}' href="#"><?=$lang['admin']['add'];?></button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!-- add sync job modal -->
|
2017-07-29 10:32:17 +02:00
|
|
|
|
<!-- log modal -->
|
2017-11-03 20:37:24 +01:00
|
|
|
|
<div class="modal fade" id="syncjobLogModal" tabindex="-1" role="dialog" aria-labelledby="syncjobLogModalLabel">
|
|
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
2017-07-29 10:32:17 +02:00
|
|
|
|
<div class="modal-content">
|
2017-11-03 20:37:24 +01:00
|
|
|
|
<div class="modal-header"><h4 class="modal-title">Log</h4></div>
|
2017-07-29 10:32:17 +02:00
|
|
|
|
<div class="modal-body">
|
2017-11-05 12:20:05 +01:00
|
|
|
|
<textarea class="form-control" rows="20" id="logText" spellcheck="false"></textarea>
|
2017-07-29 10:32:17 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!-- log modal -->
|
|
|
|
|
<!-- pw change modal -->
|
|
|
|
|
<div class="modal fade" id="pwChangeModal" tabindex="-1" role="dialog" aria-labelledby="pwChangeModalLabel">
|
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-body">
|
2017-12-09 13:17:15 +01:00
|
|
|
|
<form class="form-horizontal" data-cached-form="true" data-id="pwchange" role="form" method="post" autocomplete="off">
|
2017-07-29 10:32:17 +02:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-3" for="user_new_pass"><?=$lang['user']['new_password'];?></label>
|
|
|
|
|
<div class="col-sm-5">
|
|
|
|
|
<input type="password" class="form-control" name="user_new_pass" id="user_new_pass" autocomplete="off" required>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-3" for="user_new_pass2"><?=$lang['user']['new_password_repeat'];?></label>
|
|
|
|
|
<div class="col-sm-5">
|
|
|
|
|
<input type="password" class="form-control" name="user_new_pass2" id="user_new_pass2" autocomplete="off" required>
|
|
|
|
|
<p class="help-block"><?=$lang['user']['new_password_description'];?></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<hr>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-3" for="user_old_pass"><?=$lang['user']['password_now'];?></label>
|
|
|
|
|
<div class="col-sm-5">
|
|
|
|
|
<input type="password" class="form-control" name="user_old_pass" id="user_old_pass" autocomplete="off" required>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="col-sm-offset-3 col-sm-9">
|
|
|
|
|
<button class="btn btn-default" id="edit_selected" data-id="pwchange" data-item="null" data-api-url='edit/self' data-api-attr='{}' href="#"><?=$lang['user']['change_password'];?></button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-11-03 20:37:24 +01:00
|
|
|
|
</div><!-- pw change modal -->
|
|
|
|
|
<!-- sieve filter modal -->
|
|
|
|
|
<div class="modal fade" id="userFilterModal" tabindex="-1" role="dialog" aria-labelledby="pwChangeModalLabel">
|
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
|
|
|
|
|
<h3 class="modal-title"><?=$lang['user']['active_sieve'];?></h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<pre id="user_sieve_filter"></pre>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!-- sieve filter modal -->
|