mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Update ownCloud package
This commit is contained in:
parent
1d39879765
commit
ba1f0403f7
6 changed files with 142 additions and 139 deletions
|
|
@ -22,5 +22,5 @@ INSTALL:
|
||||||
CONFIGURATION:
|
CONFIGURATION:
|
||||||
- ownCloud:
|
- ownCloud:
|
||||||
1) In the Apps > Enable 'RainLoop' plugin
|
1) In the Apps > Enable 'RainLoop' plugin
|
||||||
2) In the Settings > Admin > Enter "RainLoop Webmail URL" and "Absolute file path to RainLoop Webmail installation"
|
2) In the Settings > Admin > Enter "RainLoop Webmail URL" and "Absolute (full) path to RainLoop Webmail installation"
|
||||||
3) In the Settings > Personal > Type your mail server email (login) and password
|
3) In the Settings > Personal > Type your mail server email (login) and password
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 478 B |
|
|
@ -16,12 +16,11 @@ class OC_RainLoop_Helper
|
||||||
$sPath = rtrim(trim($sPath), '\\/').'/index.php';
|
$sPath = rtrim(trim($sPath), '\\/').'/index.php';
|
||||||
if (file_exists($sPath))
|
if (file_exists($sPath))
|
||||||
{
|
{
|
||||||
$_ENV['RAINLOOP_INCLUDE_AS_API'] = false;
|
$_ENV['RAINLOOP_INCLUDE_AS_API'] = true;
|
||||||
include $sPath;
|
include $sPath;
|
||||||
|
|
||||||
if (class_exists($sPath))
|
if (class_exists('\\RainLoop\\Api'))
|
||||||
{
|
{
|
||||||
|
|
||||||
$SsoHash = \RainLoop\Api::GetUserSsoHash($sEmail, $sPassword);
|
$SsoHash = \RainLoop\Api::GetUserSsoHash($sEmail, $sPassword);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -36,8 +35,8 @@ class OC_RainLoop_Helper
|
||||||
*/
|
*/
|
||||||
public static function normalizeUrl($sUrl)
|
public static function normalizeUrl($sUrl)
|
||||||
{
|
{
|
||||||
$sUrl = \rtrim($sUrl, '/\\');
|
$sUrl = \rtrim(\trim($sUrl), '/\\');
|
||||||
if ('.php' !== \strtolower(\substr($sUrl), -4))
|
if ('.php' !== \strtolower(\substr($sUrl, -4)))
|
||||||
{
|
{
|
||||||
$sUrl .= '/';
|
$sUrl .= '/';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
<div class="section">
|
||||||
<form id="mail-rainloop-admin-form" action="#" method="post">
|
<form id="mail-rainloop-admin-form" action="#" method="post">
|
||||||
<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
|
<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
|
||||||
<input type="hidden" name="appname" value="rainloop">
|
<input type="hidden" name="appname" value="rainloop">
|
||||||
|
|
@ -11,7 +12,7 @@
|
||||||
<input type="text" style="width:300px;" id="rainloop-url" name="rainloop-url" value="<?php echo $_['rainloop-url']; ?>" placeholder="https://" />
|
<input type="text" style="width:300px;" id="rainloop-url" name="rainloop-url" value="<?php echo $_['rainloop-url']; ?>" placeholder="https://" />
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<?php p($l->t('Absolute file path to RainLoop Webmail installation')); ?>:
|
<?php p($l->t('Absolute (full) path to RainLoop Webmail installation')); ?>:
|
||||||
<br />
|
<br />
|
||||||
<input type="text" style="width:300px;" id="rainloop-path" name="rainloop-path" value="<?php echo $_['rainloop-path']; ?>" />
|
<input type="text" style="width:300px;" id="rainloop-path" name="rainloop-path" value="<?php echo $_['rainloop-path']; ?>" />
|
||||||
<br />
|
<br />
|
||||||
|
|
@ -21,3 +22,4 @@
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
<div class="section">
|
||||||
<form id="mail-rainloop-personal-form" action="#" method="post">
|
<form id="mail-rainloop-personal-form" action="#" method="post">
|
||||||
<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
|
<input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
|
||||||
<input type="hidden" name="appname" value="rainloop">
|
<input type="hidden" name="appname" value="rainloop">
|
||||||
|
|
@ -16,3 +17,4 @@
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
"plugins"
|
"plugins"
|
||||||
],
|
],
|
||||||
"readmeFilename": "README.md",
|
"readmeFilename": "README.md",
|
||||||
"ownCloudPackageVersion": "1.6",
|
"ownCloudPackageVersion": "2.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.10.0"
|
"node": ">= 0.10.0"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue