diff --git a/.gitignore b/.gitignore
index dac9fcceb..7b69a62d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,9 @@
/.idea
+/error.log
/nbproject
/npm-debug.log
+/rainloop.sublime-project
+/rainloop.sublime-workspace
/rainloop/v/0.0.0/static/css/*.css
/rainloop/v/0.0.0/static/js/*.js
/rainloop/v/0.0.0/static/js/**/*.js
diff --git a/README.md b/README.md
index 4ce2b542d..0d358d727 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
RainLoop Webmail
==================
-## About
+[](https://gitter.im/RainLoop/rainloop-webmail?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Simple, modern & fast web-based email client.
@@ -21,4 +21,4 @@ It's not recommended to use in production environment.
**Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)**
http://creativecommons.org/licenses/by-nc-sa/3.0/
-Copyright (c) 2014 Rainloop Team
\ No newline at end of file
+Copyright (c) 2015 Rainloop Team
diff --git a/build/langs.php b/build/langs.php
new file mode 100644
index 000000000..9d6248989
--- /dev/null
+++ b/build/langs.php
@@ -0,0 +1,76 @@
+ $aSectionValue)
+ {
+ foreach (\array_keys($aSectionValue) as $sParamKey)
+ {
+ if (isset($aFromLang[$sSectionKey][$sParamKey]))
+ {
+ $aEngLang[$sSectionKey][$sParamKey] = $aFromLang[$sSectionKey][$sParamKey];
+ }
+ else
+ {
+ echo $sSectionKey.'/'.$sParamKey.','."\n";
+ $iCount++;
+ }
+ }
+ }
+
+ return $aEngLang;
+}
+
+function saveLangStructure($sLangFile, $aLang)
+{
+ $aResultLines = array();
+// $aResultLines[] = '; '.$sLangFile;
+
+ foreach ($aLang as $sSectionKey => $aSectionValue)
+ {
+ $aResultLines[] = '';
+ $aResultLines[] = '['.$sSectionKey.']';
+
+ foreach ($aSectionValue as $sParamKey => $sParamValue)
+ {
+ $aResultLines[] = $sParamKey.' = "'.
+ \str_replace(array('\\', '"'), array('\\\\', '\\"'), \trim($sParamValue)).'"';
+ }
+ }
+
+ \file_put_contents(LANGS_PATH.'/'.$sLangFile, implode("\n", $aResultLines));
+}
+
+$sNL = "\n";
+$aEngLang = \getLangStructure('en.ini');
+
+$aFiles = \glob(LANGS_PATH.'/*.ini');
+foreach ($aFiles as $sFile)
+{
+ $iCount = 0;
+ $sFileName = \basename($sFile);
+
+ $aNextLang = \getLangStructure($sFileName);
+ $aNewLang = \mergeLangStructure($aNextLang, $aEngLang, $iCount);
+
+ if (0 === $iCount)
+ {
+ echo $sFileName.': ok'.$sNL;
+ }
+ else
+ {
+ echo $sFileName.': changed ('.$iCount.')'.$sNL;
+ }
+
+// \saveLangStructure($sFileName, $aNewLang);
+}
\ No newline at end of file
diff --git a/build/owncloud/rainloop-app/INSTALL b/build/owncloud/rainloop-app/INSTALL
index 8a8662368..314f5babe 100755
--- a/build/owncloud/rainloop-app/INSTALL
+++ b/build/owncloud/rainloop-app/INSTALL
@@ -1,26 +1,23 @@
-************************************************************************
-*
-* ownCloud - RainLoop Webmail mail plugin
-*
-* @author RainLoop Team
-* @copyright 2014 RainLoop Team
-*
-* https://github.com/RainLoop/rainloop-webmail/tree/master/build/owncloud
-*
-************************************************************************
-
-REQUIREMENTS:
-- Installed and configured RainLoop Webmail (standalone)
-- ownCloud version 6 or higher
-- Both apps (RainLoop & ownCloud) running on the same domain
-
-
-INSTALL:
-- Unpack the RainLoop Webmail application package in the apps directory of your OwnCloud instance
-
-
-CONFIGURATION:
-- ownCloud:
- 1) In the Apps > Enable 'RainLoop' plugin
- 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
+************************************************************************
+*
+* ownCloud - RainLoop Webmail package
+*
+* @author RainLoop Team
+* @copyright 2015 RainLoop Team
+*
+* https://github.com/RainLoop/rainloop-webmail/tree/master/build/owncloud
+*
+************************************************************************
+
+REQUIREMENTS:
+- ownCloud version 6 or higher
+
+
+INSTALL:
+- Unpack the RainLoop Webmail application package in the apps directory of your OwnCloud instance
+
+
+CONFIGURATION:
+- ownCloud:
+ 1) In the Apps > Enable 'RainLoop' plugin
+ 2) In the Settings > Personal > Type your mail server email (login) and password
diff --git a/build/owncloud/rainloop-app/admin.php b/build/owncloud/rainloop-app/admin.php
index ba8913669..3f7a6bf3f 100644
--- a/build/owncloud/rainloop-app/admin.php
+++ b/build/owncloud/rainloop-app/admin.php
@@ -1,20 +1,19 @@
-assign('rainloop-url', OCP\Config::getAppValue('rainloop', 'rainloop-url', ''));
-$oTemplate->assign('rainloop-path', OCP\Config::getAppValue('rainloop', 'rainloop-path', ''));
-$oTemplate->assign('rainloop-autologin', OCP\Config::getAppValue('rainloop', 'rainloop-autologin', false));
-return $oTemplate->fetchPage();
+assign('rainloop-admin-panel-link', OC_RainLoop_Helper::getAppUrl().'?admin');
+$oTemplate->assign('rainloop-autologin', OCP\Config::getAppValue('rainloop', 'rainloop-autologin', false));
+return $oTemplate->fetchPage();
diff --git a/build/owncloud/rainloop-app/ajax/admin.php b/build/owncloud/rainloop-app/ajax/admin.php
index fd35d61f4..29fe17eab 100644
--- a/build/owncloud/rainloop-app/ajax/admin.php
+++ b/build/owncloud/rainloop-app/ajax/admin.php
@@ -4,7 +4,7 @@
* ownCloud - RainLoop mail plugin
*
* @author RainLoop Team
- * @copyright 2014 RainLoop Team
+ * @copyright 2015 RainLoop Team
*
* https://github.com/RainLoop/rainloop-webmail/tree/master/build/owncloud
*/
@@ -17,22 +17,20 @@ $sUrl = '';
$sPath = '';
$bAutologin = false;
-if (isset($_POST['appname'], $_POST['rainloop-url'], $_POST['rainloop-path']) && 'rainloop' === $_POST['appname'])
+if (isset($_POST['appname']) && 'rainloop' === $_POST['appname'])
{
- OCP\Config::setAppValue('rainloop', 'rainloop-url', $_POST['rainloop-url']);
- OCP\Config::setAppValue('rainloop', 'rainloop-path', $_POST['rainloop-path']);
OCP\Config::setAppValue('rainloop', 'rainloop-autologin', isset($_POST['rainloop-autologin']) ?
'1' === $_POST['rainloop-autologin'] : false);
- $sUrl = OCP\Config::getAppValue('rainloop', 'rainloop-url', '');
- $sPath = OCP\Config::getAppValue('rainloop', 'rainloop-path', '');
$bAutologin = OCP\Config::getAppValue('rainloop', 'rainloop-autologin', false);
}
else
{
- OC_JSON::error(array('Message' => 'Invalid Argument(s)', 'Url' => $sUrl, 'Path' => $sPath));
+ sleep(1);
+ OC_JSON::error(array('Message' => 'Invalid Argument(s)'));
return false;
}
-OCP\JSON::success(array('Message' => 'Saved successfully', 'Url' => $sUrl, 'Path' => $sPath));
+sleep(1);
+OCP\JSON::success(array('Message' => 'Saved successfully'));
return true;
diff --git a/build/owncloud/rainloop-app/ajax/personal.php b/build/owncloud/rainloop-app/ajax/personal.php
index 3fcf22fb7..4ea738417 100644
--- a/build/owncloud/rainloop-app/ajax/personal.php
+++ b/build/owncloud/rainloop-app/ajax/personal.php
@@ -4,7 +4,7 @@
* ownCloud - RainLoop mail plugin
*
* @author RainLoop Team
- * @copyright 2014 RainLoop Team
+ * @copyright 2015 RainLoop Team
*
* https://github.com/RainLoop/rainloop-webmail/tree/master/build/owncloud
*/
@@ -37,9 +37,11 @@ if (isset($_POST['appname'], $_POST['rainloop-password'], $_POST['rainloop-email
}
else
{
+ sleep(1);
OC_JSON::error(array('Message' => 'Invalid argument(s)', 'Email' => $sEmail));
return false;
}
+sleep(1);
OCP\JSON::success(array('Message' => 'Saved successfully', 'Email' => $sEmail));
return true;
diff --git a/build/owncloud/rainloop-app/app.php b/build/owncloud/rainloop-app/app.php
new file mode 100644
index 000000000..802dc1a68
--- /dev/null
+++ b/build/owncloud/rainloop-app/app.php
@@ -0,0 +1,34 @@
+ 'rainloop_index',
+ 'order' => 10,
+ 'href' => OCP\Util::linkToRoute('rainloop_index'),
+ 'icon' => OCP\Util::imagePath('rainloop', 'mail.png'),
+ 'name' => 'Email'
+));
- OCP\App::addNavigationEntry(array(
- 'id' => 'rainloop_index',
- 'order' => 10,
- 'href' => OCP\Util::linkTo('rainloop', 'index.php'),
- 'icon' => OCP\Util::imagePath('rainloop', 'mail.png'),
- 'name' => 'Email'
- ));
-}
diff --git a/build/owncloud/rainloop-app/appinfo/info.xml b/build/owncloud/rainloop-app/appinfo/info.xml
index c261b5b93..7ec7dbdd9 100644
--- a/build/owncloud/rainloop-app/appinfo/info.xml
+++ b/build/owncloud/rainloop-app/appinfo/info.xml
@@ -2,9 +2,12 @@
rainloop
RainLoop
- RainLoop Webmail
+ Simple, modern and fast web-based email client.
0.0
CC BY-NC-SA 3.0
RainLoop Team
6.0
+
+
+
\ No newline at end of file
diff --git a/build/owncloud/rainloop-app/appinfo/routes.php b/build/owncloud/rainloop-app/appinfo/routes.php
new file mode 100644
index 000000000..7716e0a74
--- /dev/null
+++ b/build/owncloud/rainloop-app/appinfo/routes.php
@@ -0,0 +1,13 @@
+create('rainloop_index', '/')
+ ->actionInclude('rainloop/index.php');
+
+$this->create('rainloop_app', '/app/')
+ ->actionInclude('rainloop/app.php');
+
+$this->create('rainloop_ajax_personal', 'ajax/personal.php')
+ ->actionInclude('rainloop/ajax/personal.php');
+
+$this->create('rainloop_ajax_admin', 'ajax/admin.php')
+ ->actionInclude('rainloop/ajax/admin.php');
diff --git a/build/owncloud/rainloop-app/css/style.css b/build/owncloud/rainloop-app/css/style.css
new file mode 100644
index 000000000..462226253
--- /dev/null
+++ b/build/owncloud/rainloop-app/css/style.css
@@ -0,0 +1,6 @@
+/*
+Empty style sheet!
+Only needed to give you the opportunity to theme the owncloud part
+of the rainloop app with the theming system integrated in ownCoud
+if the rainloop app is activated.
+*/
\ No newline at end of file
diff --git a/build/owncloud/rainloop-app/index.php b/build/owncloud/rainloop-app/index.php
index a958d631a..931ecf153 100644
--- a/build/owncloud/rainloop-app/index.php
+++ b/build/owncloud/rainloop-app/index.php
@@ -4,7 +4,7 @@
* ownCloud - RainLoop mail plugin
*
* @author RainLoop Team
- * @copyright 2014 RainLoop Team
+ * @copyright 2015 RainLoop Team
*
* https://github.com/RainLoop/rainloop-webmail/tree/master/build/owncloud
*/
@@ -13,41 +13,15 @@ OCP\User::checkLoggedIn();
OCP\App::checkAppEnabled('rainloop');
OCP\App::setActiveNavigationEntry('rainloop_index');
-$sUrl = trim(OCP\Config::getAppValue('rainloop', 'rainloop-url', ''));
-$sPath = trim(OCP\Config::getAppValue('rainloop', 'rainloop-path', ''));
-$bAutologin = OCP\Config::getAppValue('rainloop', 'rainloop-autologin', false);
+// Load the empty file ../css/style.css, that's needed to allow theming of
+// the ownCloud header and navigation if rainloop is the active app.
+OCP\Util::addStyle('rainloop', 'style');
-if ('' === $sUrl || '' === $sPath)
-{
- $oTemplate = new OCP\Template('rainloop', 'index-empty', 'user');
-}
-else
-{
- include_once OC_App::getAppPath('rainloop').'/lib/RainLoopHelper.php';
+include_once OC_App::getAppPath('rainloop').'/lib/RainLoopHelper.php';
- OC_Config::setValue('xframe_restriction', false);
+$sUrl = OC_RainLoop_Helper::normalizeUrl(OC_RainLoop_Helper::getAppUrl());
- $sUser = OCP\User::getUser();
-
- if ($bAutologin)
- {
- $sEmail = $sUser;
- $sEncodedPassword = OCP\Config::getUserValue($sUser, 'rainloop', 'rainloop-autologin-password', '');
- }
- else
- {
- $sEmail = OCP\Config::getUserValue($sUser, 'rainloop', 'rainloop-email', '');
- $sEncodedPassword = OCP\Config::getUserValue($sUser, 'rainloop', 'rainloop-password', '');
- }
-
- $sDecodedPassword = OC_RainLoop_Helper::decodePassword($sEncodedPassword, md5($sEmail));
- $sSsoHash = OC_RainLoop_Helper::getSsoHash($sPath, $sEmail, $sDecodedPassword);
-
- $sUrl = OC_RainLoop_Helper::normalizeUrl($sUrl);
- $sResultUrl = empty($sSsoHash) ? $sUrl.'?sso' : $sUrl.'?sso&hash='.$sSsoHash;
-
- $oTemplate = new OCP\Template('rainloop', 'index', 'user');
- $oTemplate->assign('rainloop-url', $sResultUrl);
-}
+$oTemplate = new OCP\Template('rainloop', 'index', 'user');
+$oTemplate->assign('rainloop-iframe-url', OC_RainLoop_Helper::normalizeUrl($sUrl).'?OwnCloudAuth');
$oTemplate->printpage();
diff --git a/build/owncloud/rainloop-app/js/admin.js b/build/owncloud/rainloop-app/js/admin.js
index c47ed8b2c..a7a2bc4be 100755
--- a/build/owncloud/rainloop-app/js/admin.js
+++ b/build/owncloud/rainloop-app/js/admin.js
@@ -1,13 +1,13 @@
-
-/**
- * ownCloud - RainLoop mail plugin
- *
- * @author RainLoop Team
- * @copyright 2014 RainLoop Team
- *
- * https://github.com/RainLoop/rainloop-webmail/tree/master/build/owncloud
- */
-
-$(function() {
- RainLoopFormHelper('#mail-rainloop-admin-form', 'admin.php');
-});
+
+/**
+ * ownCloud - RainLoop mail plugin
+ *
+ * @author RainLoop Team
+ * @copyright 2015 RainLoop Team
+ *
+ * https://github.com/RainLoop/rainloop-webmail/tree/master/build/owncloud
+ */
+
+$(function() {
+ RainLoopFormHelper('#mail-rainloop-admin-form', 'admin.php');
+});
diff --git a/build/owncloud/rainloop-app/js/personal.js b/build/owncloud/rainloop-app/js/personal.js
index 008bf41b4..ab65be751 100755
--- a/build/owncloud/rainloop-app/js/personal.js
+++ b/build/owncloud/rainloop-app/js/personal.js
@@ -1,13 +1,13 @@
-
-/**
- * ownCloud - RainLoop mail plugin
- *
- * @author RainLoop Team
- * @copyright 2014 RainLoop Team
- *
- * https://github.com/RainLoop/rainloop-webmail/tree/master/build/owncloud
- */
-
-$(function() {
- RainLoopFormHelper('#mail-rainloop-personal-form', 'personal.php');
-});
+
+/**
+ * ownCloud - RainLoop mail plugin
+ *
+ * @author RainLoop Team
+ * @copyright 2015 RainLoop Team
+ *
+ * https://github.com/RainLoop/rainloop-webmail/tree/master/build/owncloud
+ */
+
+$(function() {
+ RainLoopFormHelper('#mail-rainloop-personal-form', 'personal.php');
+});
diff --git a/build/owncloud/rainloop-app/lib/RainLoopHelper.php b/build/owncloud/rainloop-app/lib/RainLoopHelper.php
index cc67e8c3d..729caf397 100644
--- a/build/owncloud/rainloop-app/lib/RainLoopHelper.php
+++ b/build/owncloud/rainloop-app/lib/RainLoopHelper.php
@@ -2,6 +2,23 @@
class OC_RainLoop_Helper
{
+ /**
+ * @return string
+ */
+ public static function getAppUrl()
+ {
+ if (class_exists('\\OCP\\Util'))
+ {
+ return OCP\Util::linkToRoute('rainloop_app');
+ }
+
+ $sRequestUri = empty($_SERVER['REQUEST_URI']) ? '': trim($_SERVER['REQUEST_URI']);
+ $sRequestUri = preg_replace('/index.php\/.+$/', 'index.php/', $sRequestUri);
+ $sRequestUri = $sRequestUri.'apps/rainloop/app/';
+
+ return '/'.ltrim($sRequestUri, '/\\');
+ }
+
/**
* @param string $sPath
* @param string $sEmail
@@ -16,6 +33,8 @@ class OC_RainLoop_Helper
$sPath = rtrim(trim($sPath), '\\/').'/index.php';
if (file_exists($sPath))
{
+ self::regRainLoopDataFunction();
+
$_ENV['RAINLOOP_INCLUDE_AS_API'] = true;
include $sPath;
@@ -82,14 +101,8 @@ class OC_RainLoop_Helper
$sEmail = $sUser;
$sPassword = $aParams['password'];
- $sUrl = trim(OCP\Config::getAppValue('rainloop', 'rainloop-url', ''));
- $sPath = trim(OCP\Config::getAppValue('rainloop', 'rainloop-path', ''));
-
- if ('' !== $sUrl && '' !== $sPath)
- {
- $sPassword = self::encodePassword($sPassword, md5($sEmail));
- return OCP\Config::setUserValue($sUser, 'rainloop', 'rainloop-autologin-password', $sPassword);
- }
+ return OCP\Config::setUserValue($sUser, 'rainloop', 'rainloop-autologin-password',
+ self::encodePassword($sPassword, md5($sEmail)));
}
return false;
@@ -97,8 +110,24 @@ class OC_RainLoop_Helper
public static function logout()
{
- return OCP\Config::setUserValue(
+ OCP\Config::setUserValue(
OCP\User::getUser(), 'rainloop', 'rainloop-autologin-password', '');
+
+ $sApiPath = __DIR__.'/../app/index.php';
+ if (file_exists($sApiPath))
+ {
+ self::regRainLoopDataFunction();
+
+ $_ENV['RAINLOOP_INCLUDE_AS_API'] = true;
+ include $sApiPath;
+
+ if (class_exists('\\RainLoop\\Api'))
+ {
+ \RainLoop\Api::LogoutCurrentLogginedUser();
+ }
+ }
+
+ return true;
}
public static function changePassword($aParams)
@@ -110,18 +139,115 @@ class OC_RainLoop_Helper
$sEmail = $sUser;
$sPassword = $aParams['password'];
- $sUrl = trim(OCP\Config::getAppValue('rainloop', 'rainloop-url', ''));
- $sPath = trim(OCP\Config::getAppValue('rainloop', 'rainloop-path', ''));
+ OCP\Util::writeLog('rainloop', 'rainloop|login: Setting new RainLoop password for '.$sEmail, OCP\Util::DEBUG);
- if ('' !== $sUrl && '' !== $sPath)
- {
- OCP\Util::writeLog('rainloop', 'rainloop|login: Setting new RainLoop password for '.$sEmail, OCP\Util::DEBUG);
+ OCP\Config::setUserValue($sUser, 'rainloop', 'rainloop-autologin-password',
+ self::encodePassword($sPassword, md5($sEmail)));
- $sPassword = self::encodePassword($sPassword, md5($sEmail));
- return OCP\Config::setUserValue($sUser, 'rainloop', 'rainloop-password', $sPassword);
- }
+ OCP\Config::setUserValue($sUser, 'rainloop', 'rainloop-password',
+ self::encodePassword($sPassword, md5($sEmail)));
+
+ return true;
}
return false;
}
+
+ public static function regRainLoopDataFunction()
+ {
+ if (!@function_exists('__get_custom_data_full_path'))
+ {
+ $_ENV['RAINLOOP_OWNCLOUD'] = true;
+
+ function __get_custom_data_full_path()
+ {
+ $sData = __DIR__.'/../../data/';
+ if (class_exists('OC_Config'))
+ {
+ $sData = rtrim(trim(OC_Config::getValue('datadirectory', '')), '\\/').'/';
+ }
+
+ return @is_dir($sData) ? $sData.'rainloop-storage' : '';
+ }
+ }
+ }
+
+ public static function mimeContentType($filename) {
+
+ $mime_types = array(
+
+ 'woff' => 'application/font-woff',
+
+ 'txt' => 'text/plain',
+ 'htm' => 'text/html',
+ 'html' => 'text/html',
+ 'php' => 'text/html',
+ 'css' => 'text/css',
+ 'js' => 'application/javascript',
+ 'json' => 'application/json',
+ 'xml' => 'application/xml',
+ 'swf' => 'application/x-shockwave-flash',
+ 'flv' => 'video/x-flv',
+
+ // images
+ 'png' => 'image/png',
+ 'jpe' => 'image/jpeg',
+ 'jpeg' => 'image/jpeg',
+ 'jpg' => 'image/jpeg',
+ 'gif' => 'image/gif',
+ 'bmp' => 'image/bmp',
+ 'ico' => 'image/vnd.microsoft.icon',
+ 'tiff' => 'image/tiff',
+ 'tif' => 'image/tiff',
+ 'svg' => 'image/svg+xml',
+ 'svgz' => 'image/svg+xml',
+
+ // archives
+ 'zip' => 'application/zip',
+ 'rar' => 'application/x-rar-compressed',
+ 'exe' => 'application/x-msdownload',
+ 'msi' => 'application/x-msdownload',
+ 'cab' => 'application/vnd.ms-cab-compressed',
+
+ // audio/video
+ 'mp3' => 'audio/mpeg',
+ 'qt' => 'video/quicktime',
+ 'mov' => 'video/quicktime',
+
+ // adobe
+ 'pdf' => 'application/pdf',
+ 'psd' => 'image/vnd.adobe.photoshop',
+ 'ai' => 'application/postscript',
+ 'eps' => 'application/postscript',
+ 'ps' => 'application/postscript',
+
+ // ms office
+ 'doc' => 'application/msword',
+ 'rtf' => 'application/rtf',
+ 'xls' => 'application/vnd.ms-excel',
+ 'ppt' => 'application/vnd.ms-powerpoint',
+
+ // open office
+ 'odt' => 'application/vnd.oasis.opendocument.text',
+ 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
+ );
+
+ if (0 < strpos($filename, '.'))
+ {
+ $ext = strtolower(array_pop(explode('.',$filename)));
+ if (array_key_exists($ext, $mime_types))
+ {
+ return $mime_types[$ext];
+ }
+ else if (function_exists('finfo_open'))
+ {
+ $finfo = finfo_open(FILEINFO_MIME);
+ $mimetype = finfo_file($finfo, $filename);
+ finfo_close($finfo);
+ return $mimetype;
+ }
+ }
+
+ return 'application/octet-stream';
+ }
}
diff --git a/build/owncloud/rainloop-app/personal.php b/build/owncloud/rainloop-app/personal.php
index 31ca9c409..92b1ee659 100644
--- a/build/owncloud/rainloop-app/personal.php
+++ b/build/owncloud/rainloop-app/personal.php
@@ -4,7 +4,7 @@
* ownCloud - RainLoop mail plugin
*
* @author RainLoop Team
- * @copyright 2014 RainLoop Team
+ * @copyright 2015 RainLoop Team
*
* https://github.com/RainLoop/rainloop-webmail/tree/master/build/owncloud
*/
@@ -14,11 +14,7 @@ OCP\App::checkAppEnabled('rainloop');
OCP\Util::addScript('rainloop', 'personal');
-$sUrl = trim(OCP\Config::getAppValue('rainloop', 'rainloop-url', ''));
-$sPath = trim(OCP\Config::getAppValue('rainloop', 'rainloop-path', ''));
-$bAutologin = OCP\Config::getAppValue('rainloop', 'rainloop-autologin', false);
-
-if ($bAutologin || '' === $sUrl || '' === $sPath)
+if (OCP\Config::getAppValue('rainloop', 'rainloop-autologin', false))
{
$oTemplate = new OCP\Template('rainloop', 'empty');
}
diff --git a/build/owncloud/rainloop-app/templates/admin.php b/build/owncloud/rainloop-app/templates/admin-local.php
similarity index 65%
rename from build/owncloud/rainloop-app/templates/admin.php
rename to build/owncloud/rainloop-app/templates/admin-local.php
index d2dca468c..27a90acf2 100644
--- a/build/owncloud/rainloop-app/templates/admin.php
+++ b/build/owncloud/rainloop-app/templates/admin-local.php
@@ -6,17 +6,15 @@