mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59:21 +03:00
v1.2.7.415
This commit is contained in:
parent
5c1e7bc676
commit
54e2645fcf
436 changed files with 407 additions and 347 deletions
39
rainloop/v/1.2.7.415/app/handle.php
Normal file
39
rainloop/v/1.2.7.415/app/handle.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
namespace RainLoop;
|
||||
|
||||
if (!\defined('RAINLOOP_APP_ROOT_PATH'))
|
||||
{
|
||||
\define('RAINLOOP_APP_LIBRARIES_PATH', \rtrim(\realpath(__DIR__), '\\/').'/libraries/');
|
||||
|
||||
\spl_autoload_register(function ($sClassName) {
|
||||
|
||||
if (false !== \strpos($sClassName, '\\'))
|
||||
{
|
||||
foreach (array('RainLoop', 'Buzz', 'KeenIO') as $sName)
|
||||
{
|
||||
if (0 === \strpos($sClassName, $sName))
|
||||
{
|
||||
return include RAINLOOP_APP_LIBRARIES_PATH.$sName.'/'.\str_replace('\\', '/', \substr($sClassName, \strlen($sName) + 1)).'.php';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
if (\class_exists('RainLoop\Service'))
|
||||
{
|
||||
$oException = null;
|
||||
try
|
||||
{
|
||||
include APP_VERSION_ROOT_PATH.'app/libraries/MailSo/MailSo.php';
|
||||
}
|
||||
catch (\Exception $oException) {}
|
||||
|
||||
if (!$oException)
|
||||
{
|
||||
\RainLoop\Service::NewInstance()->Handle();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue