mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 02:48:49 +03:00
Added NextCloud
Taken from https://github.com/pierre-alain-b/snappymail-nextcloud
This commit is contained in:
parent
2dde6c59eb
commit
65200af210
32 changed files with 1713 additions and 1 deletions
45
integrations/nextcloud/snappymail/templates/admin-local.php
Executable file
45
integrations/nextcloud/snappymail/templates/admin-local.php
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
<?php script('snappymail', 'admin') ?>
|
||||
|
||||
<div class="section">
|
||||
<form id="mail-snappymail-admin-form" action="#" method="post">
|
||||
<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
|
||||
<input type="hidden" name="appname" value="snappymail">
|
||||
|
||||
<fieldset class="personalblock">
|
||||
<h2><?php echo($l->t('SnappyMail Webmail')); ?></h2>
|
||||
<br />
|
||||
<?php if ($_['snappymail-admin-panel-link']): ?>
|
||||
<p>
|
||||
<a href="<?php echo $_['snappymail-admin-panel-link'] ?>" target="_blank" style="text-decoration: underline">
|
||||
<?php echo($l->t('Go to SnappyMail Webmail admin panel')); ?>
|
||||
</a>
|
||||
</p>
|
||||
<br />
|
||||
<?php endif; ?>
|
||||
<p>
|
||||
<div style="display: flex;">
|
||||
<input type="radio" id="snappymail-noautologin" name="snappymail-autologin" value="0" <?php if (!$_['snappymail-autologin']&&!$_['snappymail-autologin-with-email']): ?>checked="checked"<?php endif; ?> />
|
||||
<label style="margin: auto 5px;" for="snappymail-noautologin">
|
||||
<?php echo($l->t('Users will login manually, or define credentials in their personal settings for automatic logins.')); ?>
|
||||
</label>
|
||||
</div>
|
||||
<div style="display: flex;">
|
||||
<input type="radio" id="snappymail-autologin" name="snappymail-autologin" value="1" <?php if ($_['snappymail-autologin']): ?>checked="checked"<?php endif; ?> />
|
||||
<label style="margin: auto 5px;" for="snappymail-autologin">
|
||||
<?php echo($l->t('Attempt to automatically login users with their Nextcloud username and password, or user-defined credentials, if set.')); ?>
|
||||
</label>
|
||||
</div>
|
||||
<div style="display: flex;">
|
||||
<input type="radio" id="snappymail-autologin-with-email" name="snappymail-autologin" value="2" <?php if ($_['snappymail-autologin-with-email']): ?>checked="checked"<?php endif; ?> />
|
||||
<label style="margin: auto 5px;" for="snappymail-autologin-with-email">
|
||||
<?php echo($l->t('Attempt to automatically login users with their Nextcloud email and password, or user-defined credentials, if set.')); ?>
|
||||
</label>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
<input type="button" id="snappymail-save-button" name="snappymail-save-button" value="<?php echo($l->t('Save')); ?>" />
|
||||
<span class="snappymail-result-desc"></span>
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
1
integrations/nextcloud/snappymail/templates/empty.php
Executable file
1
integrations/nextcloud/snappymail/templates/empty.php
Executable file
|
|
@ -0,0 +1 @@
|
|||
<!-- empty -->
|
||||
3
integrations/nextcloud/snappymail/templates/index-empty.php
Executable file
3
integrations/nextcloud/snappymail/templates/index-empty.php
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
<div style="margin: 20px">
|
||||
<?php p($l->t('SnappyMail Webmail is not configured yet.')); ?>
|
||||
</div>
|
||||
1
integrations/nextcloud/snappymail/templates/index.php
Executable file
1
integrations/nextcloud/snappymail/templates/index.php
Executable file
|
|
@ -0,0 +1 @@
|
|||
<iframe id="rliframe" style="border: none; width: 100%; height: 100%; position: relative;" tabindex="-1" frameborder="0" src="<?php echo $_['snappymail-iframe-url']; ?>"></iframe><?php OCP\Util::addScript('snappymail', 'resize');
|
||||
8
integrations/nextcloud/snappymail/templates/personal.php
Executable file
8
integrations/nextcloud/snappymail/templates/personal.php
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
use OCA\SnappyMail\Settings\PersonalSettings;
|
||||
|
||||
$app = new \OCA\SnappyMail\AppInfo\Application();
|
||||
$controller = $app->getContainer()->query(PersonalSettings::class);
|
||||
return $controller->getForm()->render();
|
||||
|
||||
32
integrations/nextcloud/snappymail/templates/personal_settings.php
Executable file
32
integrations/nextcloud/snappymail/templates/personal_settings.php
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
<?php script('snappymail', 'personal');
|
||||
|
||||
$textLink1 = $l->t('may have some');
|
||||
$textLink2 = $l->t('security considerations');
|
||||
$links = [
|
||||
"<a href=\"https://github.com/pierre-alain-b/rainloop-nextcloud/issues/87\" style=\"text-decoration:underline\" target=\"_blank\">{$textLink1}</a>",
|
||||
"<a href=\"https://github.com/RainLoop/rainloop-webmail/issues/1082\" style=\"text-decoration:underline\" target=\"_blank\">{$textLink2}</a>"
|
||||
]; ?>
|
||||
|
||||
<div class="section">
|
||||
<form id="mail-snappymail-personal-form" action="#" method="post">
|
||||
<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
|
||||
<input type="hidden" name="appname" value="snappymail">
|
||||
|
||||
<fieldset class="personalblock">
|
||||
<h2><?php echo($l->t('SnappyMail Webmail')); ?></h2>
|
||||
<p>
|
||||
<?php echo($l->t('Enter an email and password to auto-login to SnappyMail. <b>Please note</b> that this feature %s %s.', $links)); ?>
|
||||
</p>
|
||||
<p>
|
||||
<input type="text" id="snappymail-email" name="snappymail-email"
|
||||
value="<?php echo $_['snappymail-email']; ?>" placeholder="<?php echo($l->t('Email')); ?>" />
|
||||
|
||||
<input type="password" id="snappymail-password" name="snappymail-password"
|
||||
value="<?php echo $_['snappymail-password']; ?>" placeholder="<?php echo($l->t('Password')); ?>" />
|
||||
|
||||
<input type="button" id="snappymail-save-button" name="snappymail-save-button" value="<?php echo($l->t('Save')); ?>" />
|
||||
<span class="snappymail-result-desc"></span>
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue