snappymail/rainloop/v/0.0.0/app/libraries/MailSo/Version.php

60 lines
893 B
PHP
Raw Normal View History

2013-09-25 03:04:44 +08:00
<?php
2014-10-17 18:15:19 +08:00
/*
* This file is part of MailSo.
*
2016-05-24 05:56:48 +08:00
* (c) 2016 Usenko Timur
2014-10-17 18:15:19 +08:00
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2013-09-25 03:04:44 +08:00
namespace MailSo;
/**
* @category MailSo
*/
final class Version
{
/**
* @var string
*/
2016-05-24 05:56:48 +08:00
const APP_VERSION = '2.0.1';
2013-09-25 03:04:44 +08:00
/**
* @var string
*/
const MIME_X_MAILER = 'MailSo';
/**
* @return string
*/
public static function AppVersion()
{
return \MailSo\Version::APP_VERSION;
}
/**
* @return string
*/
public static function XMailer()
{
return \MailSo\Version::MIME_X_MAILER.'/'.\MailSo\Version::APP_VERSION;
}
/**
* @return string
*/
public static function Signature()
{
2014-02-18 05:25:19 +08:00
$sSignature = '';
if (\defined('MAILSO_LIBRARY_USE_PHAR'))
{
$oPhar = new \Phar('mailso.phar');
$sSignature = $oPhar->getSignature();
}
2014-11-01 01:25:02 +08:00
2014-02-18 05:25:19 +08:00
return $sSignature;
2013-09-25 03:04:44 +08:00
}
}