mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-10 01:47:03 +03:00
v1.2.12.435
This commit is contained in:
parent
513936e5f7
commit
93e620e3de
399 changed files with 765 additions and 687 deletions
|
|
@ -1,23 +0,0 @@
|
|||
<?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