mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Uploading and preparing the repository to the dev version.
Original unminified source code (dev folder - js, css, less) (fixes #6) Grunt build system Multiple identities correction (fixes #9) Compose html editor (fixes #12) New general settings - Loading Description New warning about default admin password Split general and login screen settings
This commit is contained in:
parent
afad45137e
commit
4cc2207513
846 changed files with 99453 additions and 2123 deletions
23
rainloop/v/0.0.0/app/libraries/MailSo/MailSo.php
Normal file
23
rainloop/v/0.0.0/app/libraries/MailSo/MailSo.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
namespace MailSo;
|
||||
|
||||
if (!\defined('MAILSO_LIBRARY_ROOT_PATH'))
|
||||
{
|
||||
\define('MAILSO_LIBRARY_ROOT_PATH', \defined('MAILSO_LIBRARY_USE_PHAR')
|
||||
? 'phar://mailso.phar/' : \rtrim(\realpath(__DIR__), '\\/').'/');
|
||||
|
||||
\spl_autoload_register(function ($sClassName) {
|
||||
return (0 === \strpos($sClassName, 'MailSo') && false !== \strpos($sClassName, '\\')) ?
|
||||
include MAILSO_LIBRARY_ROOT_PATH.\str_replace('\\', '/', \substr($sClassName, 7)).'.php' : false;
|
||||
});
|
||||
|
||||
if (\class_exists('MailSo\Base\Loader'))
|
||||
{
|
||||
\MailSo\Base\Loader::Init();
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new \Exception('MailSo initialisation error');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue