mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 03:29:20 +03:00
Privacy/GDPR friendly version (removed: Social, Gravatar, Facebook, Google, Twitter, DropBox, OwnCloud)
Also removed: POP3, OAuth2 and update feature Added: admin password_hash/password_verify Requires: PHP 7.3+ Replaced: CRLF with LF Replaced: pclZip with ZipArchive
This commit is contained in:
parent
15ceddc202
commit
2cada68f41
293 changed files with 23728 additions and 85420 deletions
|
|
@ -4,140 +4,57 @@ namespace RainLoop;
|
|||
|
||||
class KeyPathHelper
|
||||
{
|
||||
/**
|
||||
* @param string $sHash
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function PublicFile($sHash)
|
||||
static public function PublicFile(string $sHash) : string
|
||||
{
|
||||
return '/Public/Files/'.sha1($sHash).'/Data/';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sSsoHash
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function SsoCacherKey($sSsoHash)
|
||||
static public function SsoCacherKey(string $sSsoHash) : string
|
||||
{
|
||||
return '/Sso/Data/'.$sSsoHash.'/Login/';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sHash
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function RsaCacherKey($sHash)
|
||||
static public function RsaCacherKey(string $sHash) : string
|
||||
{
|
||||
return '/Rsa/Data/'.$sHash.'/';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sDomain
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function LicensingDomainKeyValue($sDomain)
|
||||
{
|
||||
return '/Licensing/DomainKey/Value/'.$sDomain;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sDomain
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function LicensingDomainKeyOtherValue($sDomain)
|
||||
{
|
||||
return '/Licensing/DomainKeyOther/Value/'.$sDomain;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sRepo
|
||||
* @param string $sRepoFile
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function RepositoryCacheFile($sRepo, $sRepoFile)
|
||||
static public function RepositoryCacheFile(string $sRepo, string $sRepoFile) : string
|
||||
{
|
||||
return '/RepositoryCache/Repo/'.$sRepo.'/File/'.$sRepoFile;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sRepo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function RepositoryCacheCore($sRepo)
|
||||
static public function RepositoryCacheCore(string $sRepo) : string
|
||||
{
|
||||
return '/RepositoryCache/CoreRepo/'.$sRepo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sEmail
|
||||
* @param string $sFolderFullName
|
||||
* @param string $sUid
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function ReadReceiptCache($sEmail, $sFolderFullName, $sUid)
|
||||
static public function ReadReceiptCache(string $sEmail, string $sFolderFullName, string $sUid) : string
|
||||
{
|
||||
return '/ReadReceipt/'.$sEmail.'/'.$sFolderFullName.'/'.$sUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sLanguage
|
||||
* @param bool $bAdmim
|
||||
* @param string $sPluginsHash
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function LangCache($sLanguage, $bAdmim, $sPluginsHash)
|
||||
static public function LangCache(string $sLanguage, bool $bAdmim, string $sPluginsHash) : string
|
||||
{
|
||||
return '/LangCache/'.$sPluginsHash.'/'.$sLanguage.'/'.($bAdmim ? 'Admin' : 'App').'/'.APP_VERSION.'/';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool $bAdmin
|
||||
* @param string $sPluginsHash
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function TemplatesCache($bAdmin, $sPluginsHash)
|
||||
static public function TemplatesCache(bool $bAdmin, string $sPluginsHash) : string
|
||||
{
|
||||
return '/TemplatesCache/'.$sPluginsHash.'/'.($bAdmin ? 'Admin' : 'App').'/'.APP_VERSION.'/';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sPluginsHash
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function PluginsJsCache($sPluginsHash)
|
||||
static public function PluginsJsCache(string $sPluginsHash) : string
|
||||
{
|
||||
return '/PluginsJsCache/'.$sPluginsHash.'/'.APP_VERSION.'/';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sTheme
|
||||
* @param string $sHash
|
||||
* @param string $sPublickHash
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function CssCache($sTheme, $sHash)
|
||||
static public function CssCache(string $sTheme, string $sHash) : string
|
||||
{
|
||||
return '/CssCache/'.$sHash.'/'.$sTheme.'/'.APP_VERSION.'/';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sRand
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
static public function SessionAdminKey($sRand)
|
||||
static public function SessionAdminKey(string $sRand) : string
|
||||
{
|
||||
return '/Session/AdminKey/'.\md5($sRand).'/';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue