mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-14 18:04:52 +08:00
+ Default Domain (AdminPanel/Login Screen) + Use short login form (AdminPanel/Domain) + Add unminified css file (app.css) * update jquery (1.10.3) * update jquery-ui (1.10.1) * update Lazy Load plugin (1.9.0) * update mousewheel plugin (3.1.4) - remove headjs
23 lines
No EOL
606 B
PHP
23 lines
No EOL
606 B
PHP
<?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');
|
|
}
|
|
} |