Release fixes

This commit is contained in:
RainLoop Team 2015-05-12 20:33:02 +04:00
parent 5b6c90aea9
commit f91f74fe7c
21 changed files with 398 additions and 83 deletions

View file

@ -13,6 +13,25 @@ class Utils
{
}
/**
* @param string $sFileName
* @param string $sSignature
*
* @return bool
*/
static public function PgpVerifyFile($sFileName, $sSignature)
{
$sKeyFile = APP_VERSION_ROOT_PATH.'app/resources/RainLoop.asc';
if (\file_exists($sKeyFile) && \file_exists($sFileName) && !empty($sSignature))
{
$sKeyFile = @\file_get_contents($sKeyFile);
return !empty($sKeyFile); // TODO
}
return false;
}
/**
* @param string $sString
* @param string $sKey