/**
  * @return string
  */
 public function ServiceBadBrowser()
 {
     $sTitle = $this->oActions->StaticI18N('STATIC/BAD_BROWSER_TITLE');
     $sDesc = \nl2br($this->oActions->StaticI18N('STATIC/BAD_BROWSER_DESC'));
     @\header('Content-Type: text/html; charset=utf-8');
     return \strtr(\file_get_contents(APP_VERSION_ROOT_PATH . 'app/templates/BadBrowser.html'), array('{{BaseWebStaticPath}}' => APP_WEB_STATIC_PATH, '{{ErrorTitle}}' => $sTitle, '{{ErrorHeader}}' => $sTitle, '{{ErrorDesc}}' => $sDesc));
 }
Пример #2
0
 /**
  * @param string $sTitle
  * @param string $sDesc
  *
  * @return mixed
  */
 public function ErrorTemplates($sTitle, $sDesc, $bShowBackLink = true)
 {
     return strtr(file_get_contents(APP_VERSION_ROOT_PATH . 'app/templates/Error.html'), array('{{BaseWebStaticPath}}' => \RainLoop\Utils::WebStaticPath(), '{{ErrorTitle}}' => $sTitle, '{{ErrorHeader}}' => $sTitle, '{{ErrorDesc}}' => $sDesc, '{{BackLinkVisibilityStyle}}' => $bShowBackLink ? 'display:inline-block' : 'display:none', '{{BackLink}}' => $this->oActions->StaticI18N('STATIC/BACK_LINK'), '{{BackHref}}' => './'));
 }