コード例 #1
0
                return include RAINLOOP_APP_LIBRARIES_PATH . \strtr($sClassName, '\\', '/') . '.php';
            }
        }
        return false;
    }
    \spl_autoload_register('rainLoopSplAutoloadRegisterFunction', false);
}
if (\class_exists('RainLoop\\Api')) {
    if (!\class_exists('MailSo\\Version', false)) {
        include APP_VERSION_ROOT_PATH . 'app/libraries/MailSo/MailSo.php';
    }
    if (\class_exists('MailSo\\Version')) {
        if (RAINLOOP_INCLUDE_AS_API_DEF) {
            if (!\defined('APP_API_STARTED')) {
                \define('APP_API_STARTED', true);
                \RainLoop\Api::Handle();
            }
        } else {
            if (!\defined('APP_STARTED')) {
                \define('APP_STARTED', true);
                \RainLoop\Api::Handle();
                \RainLoop\Service::Handle();
                \RainLoop\Api::ExitOnEnd();
            }
        }
    }
} else {
    if (\function_exists('rainLoopSplAutoloadRegisterFunction')) {
        \spl_autoload_unregister('rainLoopSplAutoloadRegisterFunction');
    }
}
コード例 #2
0
                            include_once RAINLOOP_APP_LIBRARIES_PATH . 'RainLoop/Common/MbStringFix.php';
                        }
                        return include RAINLOOP_APP_LIBRARIES_PATH . 'Sabre/' . \str_replace('\\', '/', \substr($sClassName, 6)) . '.php';
                    }
                }
            }
        }
        return false;
    });
}
if (\class_exists('RainLoop\\Service')) {
    $oException = null;
    if (!\class_exists('MailSo\\Version')) {
        try {
            include APP_VERSION_ROOT_PATH . 'app/libraries/MailSo/MailSo.php';
        } catch (\Exception $oException) {
        }
    }
    if (!$oException) {
        if (isset($_ENV['RAINLOOP_INCLUDE_AS_API']) && $_ENV['RAINLOOP_INCLUDE_AS_API']) {
            $_ENV['RAINLOOP_INCLUDE_AS_API'] = false;
            \RainLoop\Api::Handle();
        } else {
            if (!\defined('APP_STARTED')) {
                \define('APP_STARTED', true);
                \RainLoop\Service::NewInstance()->Handle();
            }
        }
    }
}
return '';