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:
djmaze 2020-03-09 17:04:17 +01:00
parent 15ceddc202
commit 2cada68f41
293 changed files with 23728 additions and 85420 deletions

View file

@ -9,21 +9,14 @@ class Plugin extends \RainLoop\Config\AbstractConfig
*/
private $aMap;
/**
* @return void
*/
public function __construct($sPluginName, $aMap = array())
public function __construct(string $sPluginName, array $aMap = array())
{
$this->aMap = is_array($aMap) ? $this->convertConfigMap($aMap) : array();
parent::__construct('plugin-'.$sPluginName.'.ini', '; RainLoop Webmail plugin ('.$sPluginName.')');
}
/**
* @param array $aMap
* @return array
*/
private function convertConfigMap($aMap)
private function convertConfigMap(array $aMap) : array
{
if (0 < \count($aMap))
{
@ -49,11 +42,8 @@ class Plugin extends \RainLoop\Config\AbstractConfig
return array();
}
/**
* @return array
*/
protected function defaultValues()
protected function defaultValues() : array
{
return $this->aMap;
}
}
}