mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Interface redesign (attachments, new preview pane layout)
This commit is contained in:
parent
6755a0ce51
commit
e3e7c1d963
64 changed files with 1286 additions and 1009 deletions
|
|
@ -149,16 +149,16 @@ class Utils
|
|||
}
|
||||
|
||||
/**
|
||||
* @param string $FileName
|
||||
* @param string $sFileName
|
||||
* @param array $aResultLang
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function ReadAndAddLang($FileName, &$aResultLang)
|
||||
public static function ReadAndAddLang($sFileName, &$aResultLang)
|
||||
{
|
||||
if (\file_exists($FileName))
|
||||
if (\file_exists($sFileName))
|
||||
{
|
||||
$aLang = @\parse_ini_file($FileName, true);
|
||||
$aLang = \RainLoop\Utils::CustomParseIniFile($sFileName, true);
|
||||
if (\is_array($aLang))
|
||||
{
|
||||
foreach ($aLang as $sKey => $mValue)
|
||||
|
|
@ -307,6 +307,23 @@ class Utils
|
|||
@\setcookie($sName, '', \time() - 3600 * 24 * 30, '/');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sFileName
|
||||
* @param bool $bProcessSections = false
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function CustomParseIniFile($sFileName, $bProcessSections = false)
|
||||
{
|
||||
if (\MailSo\Base\Utils::FunctionExistsAndEnabled('parse_ini_file'))
|
||||
{
|
||||
return @\parse_ini_file($sFileName, !!$bProcessSections);
|
||||
}
|
||||
|
||||
$sData = @\file_get_contents($sFileName);
|
||||
return \is_string($sData) ? @\parse_ini_string($sData, !!$bProcessSections) : null;
|
||||
}
|
||||
|
||||
public static function CustomBaseConvert($sNumberInput, $sFromBaseInput = '0123456789', $sToBaseInput = '0123456789')
|
||||
{
|
||||
if ($sFromBaseInput === $sToBaseInput)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue