Fix set_time_limit system policy error (#1103)

This commit is contained in:
RainLoop Team 2016-07-13 22:48:18 +03:00
parent 5a01b59d40
commit 6e6dd31ad4
2 changed files with 7 additions and 2 deletions

View file

@ -1292,7 +1292,12 @@ END;
if ($bValidateAction && $iTimeToReset < \time() - $iResetTimer) if ($bValidateAction && $iTimeToReset < \time() - $iResetTimer)
{ {
$iResetTimer = \time(); $iResetTimer = \time();
\set_time_limit($iTimeToAdd); if (!@\set_time_limit($iTimeToAdd))
{
$bValidateAction = false;
return false;
}
return true; return true;
} }

View file

@ -4690,7 +4690,7 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
$iCode = 0; $iCode = 0;
$sContentType = ''; $sContentType = '';
@\set_time_limit(90); @\set_time_limit(120);
$oHttp = \MailSo\Base\Http::SingletonInstance(); $oHttp = \MailSo\Base\Http::SingletonInstance();
$bResult = $oHttp->SaveUrlToFile($sUrl, $pDest, $sTmp, $sContentType, $iCode, $this->Logger(), 60, $bResult = $oHttp->SaveUrlToFile($sUrl, $pDest, $sTmp, $sContentType, $iCode, $this->Logger(), 60,