diff options
Diffstat (limited to 'framework/views/de')
| -rw-r--r-- | framework/views/de/error.php | 38 | ||||
| -rw-r--r-- | framework/views/de/error400.php | 34 | ||||
| -rw-r--r-- | framework/views/de/error403.php | 33 | ||||
| -rw-r--r-- | framework/views/de/error404.php | 34 | ||||
| -rw-r--r-- | framework/views/de/error500.php | 35 | ||||
| -rw-r--r-- | framework/views/de/error503.php | 31 | ||||
| -rw-r--r-- | framework/views/de/log-firebug.php | 23 | ||||
| -rw-r--r-- | framework/views/de/log.php | 40 | ||||
| -rw-r--r-- | framework/views/de/profile-callstack-firebug.php | 19 | ||||
| -rw-r--r-- | framework/views/de/profile-callstack.php | 30 | ||||
| -rw-r--r-- | framework/views/de/profile-summary-firebug.php | 23 | ||||
| -rw-r--r-- | framework/views/de/profile-summary.php | 41 |
12 files changed, 381 insertions, 0 deletions
diff --git a/framework/views/de/error.php b/framework/views/de/error.php new file mode 100644 index 0000000..3fea0c9 --- /dev/null +++ b/framework/views/de/error.php @@ -0,0 +1,38 @@ +<!DOCTYPE html PUBLIC + "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> +<title>Fehler <?php echo $data['code']; ?></title> + +<style type="text/css"> +/*<![CDATA[*/ +body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;} +h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } +h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } +h3 {font-family:"Verdana";font-weight:bold;font-size:11pt} +p {font-family:"Verdana";font-weight:normal;color:black;font-size:9pt;margin-top: -5px} +.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;} +/*]]>*/ +</style> +</head> + +<body> +<h1>Fehler <?php echo $data['code']; ?></h1> +<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2> +<p> +Beim Bearbeiten Ihrer Anfrage durch den Server ist obenstehender Fehler aufgetreten. +</p> +<p> +Wenn Sie der Meinung sind, dass es sich um einen Serverfehler handelt, kontaktieren Sie bitte +<?php echo $data['admin']; ?>. +</p> +<p> +Vielen Dank. +</p> +<div class="version"> +<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?> +</div> +</body> +</html> diff --git a/framework/views/de/error400.php b/framework/views/de/error400.php new file mode 100644 index 0000000..f0debb1 --- /dev/null +++ b/framework/views/de/error400.php @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC + "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> +<title>Fehlerhafte Anfrage</title> +<style type="text/css"> +/*<![CDATA[*/ +body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;} +h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } +h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } +h3 {font-family:"Verdana";font-weight:bold;font-size:11pt} +p {font-family:"Verdana";font-weight:normal;color:black;font-size:9pt;margin-top: -5px} +.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;} +/*]]>*/ +</style> +</head> +<body> +<h1>Fehlerhafte Anfrage</h1> +<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2> +<p> +Der Request wurde vom Server aufgrund einer ungültigen Syntax nicht verstanden. +Bitte wiederholen Sie die Anfrage nicht unverändert. +</p> +<p> +Wenn Sie der Meinung sind, dass es sich um einen Serverfehler handelt, kontaktieren Sie bitte +<?php echo $data['admin']; ?>. +</p> +<div class="version"> +<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?> +</div> +</body> +</html> diff --git a/framework/views/de/error403.php b/framework/views/de/error403.php new file mode 100644 index 0000000..14f1f5e --- /dev/null +++ b/framework/views/de/error403.php @@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC + "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> +<title>Keine Berechtigung</title> +<style type="text/css"> +/*<![CDATA[*/ +body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;} +h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } +h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } +h3 {font-family:"Verdana";font-weight:bold;font-size:11pt} +p {font-family:"Verdana";font-weight:normal;color:black;font-size:9pt;margin-top: -5px} +.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;} +/*]]>*/ +</style> +</head> +<body> +<h1>Keine Berechtigung</h1> +<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2> +<p> +Sie haben nicht die nötigen Rechte, um diese Seite aufzurufen. +</p> +<p> +Wenn Sie der Meinung sind, dass es sich um einen Serverfehler handelt, kontaktieren Sie bitte +<?php echo $data['admin']; ?>. +</p> +<div class="version"> +<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?> +</div> +</body> +</html> diff --git a/framework/views/de/error404.php b/framework/views/de/error404.php new file mode 100644 index 0000000..4c4987e --- /dev/null +++ b/framework/views/de/error404.php @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC + "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> +<title>Seite nicht gefunden</title> +<style type="text/css"> +/*<![CDATA[*/ +body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;} +h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } +h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } +h3 {font-family:"Verdana";font-weight:bold;font-size:11pt} +p {font-family:"Verdana";font-weight:normal;color:black;font-size:9pt;margin-top: -5px} +.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;} +/*]]>*/ +</style> +</head> +<body> +<h1>Seite nicht gefunden</h1> +<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2> +<p> +Die angeforderte URL wurde auf diesem Server nicht gefunden. +Wenn Sie die URL von Hand eingegeben haben, prüfen Sie bitte Ihre Schreibweise und versuchen Sie es dann erneut. +</p> +<p> +Wenn Sie der Meinung sind, dass es sich um einen Serverfehler handelt, kontaktieren Sie bitte +<?php echo $data['admin']; ?>. +</p> +<div class="version"> +<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?> +</div> +</body> +</html> diff --git a/framework/views/de/error500.php b/framework/views/de/error500.php new file mode 100644 index 0000000..5b6fb61 --- /dev/null +++ b/framework/views/de/error500.php @@ -0,0 +1,35 @@ +<!DOCTYPE html PUBLIC + "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> +<title>Interner Serverfehler</title> + +<style type="text/css"> +/*<![CDATA[*/ +body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;} +h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } +h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } +h3 {font-family:"Verdana";font-weight:bold;font-size:11pt} +p {font-family:"Verdana";font-weight:normal;color:black;font-size:9pt;margin-top: -5px} +.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;} +/*]]>*/ +</style> +</head> + +<body> +<h1>Interner Serverfehler</h1> +<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2> +<p> +Beim Bearbeiten Ihrer Anfrage durch den Webserver ist ein interner Fehler aufgetreten. +Bitte kontaktieren Sie <?php echo $data['admin']; ?> um dieses Problem zu melden. +</p> +<p> +Vielen Dank. +</p> +<div class="version"> +<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?> +</div> +</body> +</html> diff --git a/framework/views/de/error503.php b/framework/views/de/error503.php new file mode 100644 index 0000000..cdbbd0b --- /dev/null +++ b/framework/views/de/error503.php @@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC + "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> +<title>Dienst nicht verfügbar</title> +<style type="text/css"> +/*<![CDATA[*/ +body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;} +h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } +h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } +h3 {font-family:"Verdana";font-weight:bold;font-size:11pt} +p {font-family:"Verdana";font-weight:normal;color:black;font-size:9pt;margin-top: -5px} +.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;} +/*]]>*/ +</style> +</head> +<body> +<h1>Dienst nicht verfügbar</h1> +<p> +Unser System wird derzeit gewartet. Bitte versuchen Sie es später noch einmal. +</p> +<p> +Vielen Dank. +</p> +<div class="version"> +<?php echo date('d.m.Y H:i:s',$data['time']) .' '. $data['version']; ?> +</div> +</body> +</html> diff --git a/framework/views/de/log-firebug.php b/framework/views/de/log-firebug.php new file mode 100644 index 0000000..b2902cd --- /dev/null +++ b/framework/views/de/log-firebug.php @@ -0,0 +1,23 @@ +<script type="text/javascript"> +/*<![CDATA[*/ +if(typeof(console)=='object') +{ + console.group("Anwendungsprotokoll"); +<?php +foreach($data as $index=>$log) +{ + $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000); + if($log[1]===CLogger::LEVEL_WARNING) + $func='warn'; + else if($log[1]===CLogger::LEVEL_ERROR) + $func='error'; + else + $func='log'; + $content=CJavaScript::quote("[$time][$log[1]][$log[2]] $log[0]"); + echo "\tconsole.{$func}(\"{$content}\");\n"; +} +?> + console.groupEnd(); +} +/*]]>*/ +</script> diff --git a/framework/views/de/log.php b/framework/views/de/log.php new file mode 100644 index 0000000..af2088a --- /dev/null +++ b/framework/views/de/log.php @@ -0,0 +1,40 @@ +<!-- start log messages --> +<table class="yiiLog" width="100%" cellpadding="2" style="border-spacing:1px;font:11px Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;color:#666666;"> + <tr> + <th style="background:black;color:white;" colspan="5"> + Anwendungsprotokoll + </th> + </tr> + <tr style="background-color: #ccc;"> + <th style="width:120px">Zeitstempel</th> + <th>Stufe</th> + <th>Kategorie</th> + <th>Nachricht</th> + </tr> +<?php +$colors=array( + CLogger::LEVEL_PROFILE=>'#DFFFE0', + CLogger::LEVEL_INFO=>'#FFFFDF', + CLogger::LEVEL_WARNING=>'#FFDFE5', + CLogger::LEVEL_ERROR=>'#FFC0CB', +); +foreach($data as $index=>$log) +{ + $color=($index%2)?'#F5F5F5':'#FFFFFF'; + if(isset($colors[$log[1]])) + $color=$colors[$log[1]]; + $message='<pre>'.CHtml::encode(wordwrap($log[0])).'</pre>'; + $time=date('H:i:s.',$log[3]).(int)(($log[3]-(int)$log[3])*1000000); + + echo <<<EOD + <tr style="background:{$color}"> + <td align="center">{$time}</td> + <td>{$log[1]}</td> + <td>{$log[2]}</td> + <td>{$message}</td> + </tr> +EOD; +} +?> +</table> +<!-- end of log messages --> diff --git a/framework/views/de/profile-callstack-firebug.php b/framework/views/de/profile-callstack-firebug.php new file mode 100644 index 0000000..cc3bf92 --- /dev/null +++ b/framework/views/de/profile-callstack-firebug.php @@ -0,0 +1,19 @@ +<script type="text/javascript"> +/*<![CDATA[*/ +if(typeof(console)=='object') +{ + console.group("Ergebnis der Performance-Analyse anhand des Aufrufstapels"); +<?php +foreach($data as $index=>$entry) +{ + list($proc,$time,$level)=$entry; + $proc=CJavaScript::quote($proc); + $time=sprintf('%0.5f',$time); + $spaces=str_repeat(' ',$level*8); + echo "\tconsole.log(\"[$time]{$spaces}{$proc}\");\n"; +} +?> + console.groupEnd(); +} +/*]]>*/ +</script> diff --git a/framework/views/de/profile-callstack.php b/framework/views/de/profile-callstack.php new file mode 100644 index 0000000..210fbaf --- /dev/null +++ b/framework/views/de/profile-callstack.php @@ -0,0 +1,30 @@ +<!-- start profiling callstack --> +<table class="yiiLog" width="100%" cellpadding="2" style="border-spacing:1px;font:11px Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;color:#666666;"> + <tr> + <th style="background:black;color:white;" colspan="2"> + Ergebnis der Performance-Analyse anhand des Aufrufstapels + </th> + </tr> + <tr style="background-color: #ccc;"> + <th>Prozedur</th> + <th>Zeit (s)</th> + </tr> +<?php +foreach($data as $index=>$entry) +{ + $color=($index%2)?'#F5F5F5':'#FFFFFF'; + list($proc,$time,$level)=$entry; + $proc=CHtml::encode($proc); + $time=sprintf('%0.5f',$time); + $spaces=str_repeat(' ',$level*8); + + echo <<<EOD + <tr style="background:{$color}"> + <td>{$spaces}{$proc}</td> + <td align="center">{$time}</td> + </tr> +EOD; +} +?> +</table> +<!-- end of profiling callstack --> diff --git a/framework/views/de/profile-summary-firebug.php b/framework/views/de/profile-summary-firebug.php new file mode 100644 index 0000000..829ee64 --- /dev/null +++ b/framework/views/de/profile-summary-firebug.php @@ -0,0 +1,23 @@ +<script type="text/javascript"> +/*<![CDATA[*/ +if(typeof(console)=='object') +{ + console.group("Ergebnis der Performance-Analyse"); + console.log(" Anzahl Gesamt Durschn. Min Max "); +<?php +foreach($data as $index=>$entry) +{ + $proc=CJavaScript::quote($entry[0]); + $count=sprintf('%5d',$entry[1]); // 5 digits + $min=sprintf('%0.5f',$entry[2]); // 7 digits + $max=sprintf('%0.5f',$entry[3]); // 7 digits + $total=sprintf('%0.5f',$entry[4]); // 7 digits + $average=sprintf('%0.5f',$entry[4]/$entry[1]); // 7 digits + echo "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n"; + +} +?> + console.groupEnd(); +} +/*]]>*/ +</script> diff --git a/framework/views/de/profile-summary.php b/framework/views/de/profile-summary.php new file mode 100644 index 0000000..361062c --- /dev/null +++ b/framework/views/de/profile-summary.php @@ -0,0 +1,41 @@ +<!-- start profiling summary --> +<table class="yiiLog" width="100%" cellpadding="2" style="border-spacing:1px;font:11px Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;color:#666666;"> + <tr> + <th style="background:black;color:white;" colspan="6"> + Ergebnis der Perfomance-Analyse + (Zeit: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s, + Speicher: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB) + </th> + </tr> + <tr style="background-color: #ccc;"> + <th>Prozedur</th> + <th>Anzahl</th> + <th>Gesamt (s)</th> + <th>Durschn. (s)</th> + <th>Min. (s)</th> + <th>Max. (s)</th> + </tr> +<?php +foreach($data as $index=>$entry) +{ + $color=($index%2)?'#F5F5F5':'#FFFFFF'; + $proc=CHtml::encode($entry[0]); + $min=sprintf('%0.5f',$entry[2]); + $max=sprintf('%0.5f',$entry[3]); + $total=sprintf('%0.5f',$entry[4]); + $average=sprintf('%0.5f',$entry[4]/$entry[1]); + + echo <<<EOD + <tr style="background:{$color}"> + <td>{$proc}</td> + <td align="center">{$entry[1]}</td> + <td align="center">{$total}</td> + <td align="center">{$average}</td> + <td align="center">{$min}</td> + <td align="center">{$max}</td> + </tr> +EOD; +} +?> +</table> +<!-- end of profiling summary --> |
