Bug #21149 » 12073.diff
t3lib/class.t3lib_timetrack.php (working copy) | ||
---|---|---|
if ($js) {
|
||
$errorMessage = 'alert(\'' . t3lib_div::slashJS($header . '\n' . $text) . '\');';
|
||
} else {
|
||
if (t3lib_extMgm::isLoaded('t3skin')) {
|
||
$inlineStyle = '
|
||
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
|
||
body { font-family:Verdana,Arial,Helvetica,sans-serif; background-color: #EFEFF4; text-align: center; font-size: 90%;}
|
||
img.logo { border: 0; margin: 10px auto; }
|
||
div.center div { margin: 0 auto; text-align: left;}
|
||
.typo3-message { background-position:4px 4px; background-repeat:no-repeat; border:1px solid; margin-bottom:4px; padding:4px 6px 6px 26px; }
|
||
.message-error { background-color:#FBB19B; background-image:url(' . TYPO3_mainDir . 'gfx/error.png); border-color:#DC4C42; }
|
||
.message-header { display:block; font-size:110%; font-weight:bold; }
|
||
.message-body { padding-top: 10px; }
|
||
/*]]>*/--></style>
|
||
';
|
||
} else {
|
||
$inlineStyle = '
|
||
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
|
||
body { font-family:Verdana,Arial,Helvetica,sans-serif; font-size: 90%; text-align: center; background-color: #ffffff; }
|
||
h1 { font-size: 1.2em; margin: 0 0 1em 0; }
|
||
p { margin: 0; text-align: left; }
|
||
img { border: 0; margin: 10px 0; }
|
||
div.center div { margin: 0 auto; }
|
||
.errorBox { width: 400px; padding: 0.5em; border: 1px solid black; background-color: #F4F0E8; }
|
||
/*]]>*/--></style>
|
||
';
|
||
}
|
||
$errorMessage = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
||
"http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
|
||
<?xml version="1.0" encoding="utf-8"?>
|
||
<html>
|
||
<head>
|
||
'.($baseUrl ? '<base href="'.htmlspecialchars($baseUrl).'" />' : '').'
|
||
' . ($baseUrl ? '<base href="' . htmlspecialchars($baseUrl) . '" />' : '') . '
|
||
<title>Error!</title>
|
||
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
|
||
body { font-family:Verdana,Arial,Helvetica,sans-serif; font-size: 90%; text-align: center; background-color: #ffffff; }
|
||
h1 { font-size: 1.2em; margin: 0 0 1em 0; }
|
||
p { margin: 0; text-align: left; }
|
||
img { border: 0; margin: 10px 0; }
|
||
div.center div { margin: 0 auto; }
|
||
.errorBox { width: 400px; padding: 0.5em; border: 1px solid black; background-color: #F4F0E8; }
|
||
/*]]>*/--></style>
|
||
' . $inlineStyle . '
|
||
</head>
|
||
<body>
|
||
<div class="center">
|
||
<img src="'.TYPO3_mainDir.'gfx/typo3logo.gif" width="123" height="34" alt="" />
|
||
<div class="errorBox">
|
||
<h1>'.$header.'</h1>
|
||
<p>'.$text.'</p>
|
||
<img src="'.TYPO3_mainDir.'gfx/typo3logo.gif" width="123" height="34" alt="" class="logo" />
|
||
<div class="typo3-message message-error" style="width: 400px;">
|
||
<div class="message-header">' . $header . '</div>
|
||
<div class="message-body">' . $text . '</div>
|
||
</div>
|
||
</div>
|
||
</body>
|