mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Release fixes
This commit is contained in:
parent
5b6c90aea9
commit
f91f74fe7c
21 changed files with 398 additions and 83 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue