1
0

Added new (clean) yii boilerplate

This commit is contained in:
2014-05-13 12:40:42 +02:00
parent 1d6d975a16
commit 99d29b432b
1983 changed files with 653465 additions and 17 deletions

View File

@@ -0,0 +1,37 @@
<!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="ar" lang="ar">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>خطأ <?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>خطأ <?php echo $data['code']; ?></h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
حدث الخطأ أعلاه عندما قام ملقم الويب بمعالجة طلبك.
</p>
<p>
اذا كنت تعتقد ان هذا الخطأ حدث من ملقم الويب، الرجاء الاتصال <?php echo $data['admin']; ?>.
</p>
<p>
شكرا لك.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="ar" lang="ar">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>طلب غير صالح</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>طلب غير صالح</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
الطلب غير مفهوم من قبل الملقم بسبب تشوية في الصيغة.
الرجاء عدم إعادة الطلب إلا بعد تصحيحة.
</p>
<p>
اذا كنت تعتقد ان هذا الخطأ حدث من ملقم الويب، الرجاء الاتصال <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!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="ar" lang="ar">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>غير مصرح</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>غير مصرح</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
لاتملك الصلاحيات المناسبة للوصول إلى هذه الصفحة.
</p>
<p>
اذا كنت تعتقد ان هذا الخطأ حدث من ملقم الويب، الرجاء الاتصال <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="ar" lang="ar">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>الصفحة غير موجودة</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>الصفحة غير موجودة</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
لم يتم العثور على العنوان المطلوب على هذا الخادم.
إذا قمت بإدخال عنوان الموقع يدويا فيرجى التحقق الإملائي وحاول مرة أخرى.
</p>
<p>
اذا كنت تعتقد ان هذا الخطأ حدث من ملقم الويب، الرجاء الاتصال <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="ar" lang="ar">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>خطأ داخلي بالخادم</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>خطأ داخلي بالخادم</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
حدث خطأ داخلي بالخادم أثناء محاولة معالجة طلبك.
الرجاء الإتصال <?php echo $data['admin']; ?> للإبلاغ عن هذه المشكلة.
</p>
<p>
شكرا لك.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,30 @@
<!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="ar" lang="ar">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>الخدمة غير متوفرة</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>الخدمة غير متوفرة</h1>
<p>
النظام حاليا تحت الصيانة. يرجى العودة في وقت لاحق.</p>
<p>
شكرا لك.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,242 @@
<!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="ar" lang="ar">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?php echo CHtml::encode($data['type'])?></title>
<style type="text/css">
/*<![CDATA[*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
body{line-height:1;}
ol,ul{list-style:none;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:none;}
:focus{outline:0;}
ins{text-decoration:none;}
del{text-decoration:line-through;}
table{border-collapse:collapse;border-spacing:0;}
body {
font: normal 9pt "Verdana";
color: #000;
background: #fff;
}
h1 {
font: normal 18pt "Verdana";
color: #f00;
margin-bottom: .5em;
}
h2 {
font: normal 14pt "Verdana";
color: #800000;
margin-bottom: .5em;
}
h3 {
font: bold 11pt "Verdana";
}
pre {
font: normal 11pt Menlo, Consolas, "Lucida Console";
}
pre span.error {
display: block;
background: #fce3e3;
}
pre span.ln {
color: #999;
padding-right: 0.5em;
border-right: 1px solid #ccc;
}
pre span.error-ln {
font-weight: bold;
}
.container {
margin: 1em 4em;
}
.version {
color: gray;
font-size: 8pt;
border-top: 1px solid #aaa;
padding-top: 1em;
margin-bottom: 1em;
}
.message {
color: #000;
padding: 1em;
font-size: 11pt;
background: #f3f3f3;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
margin-bottom: 1em;
line-height: 160%;
}
.source {
margin-bottom: 1em;
}
.code pre {
background-color: #ffe;
margin: 0.5em 0;
padding: 0.5em;
line-height: 125%;
border: 1px solid #eee;
}
.source .file {
margin-bottom: 1em;
font-weight: bold;
}
.traces {
margin: 2em 0;
}
.trace {
margin: 0.5em 0;
padding: 0.5em;
}
.trace.app {
border: 1px dashed #c00;
}
.trace .number {
text-align: right;
width: 2em;
padding: 0.5em;
}
.trace .content {
padding: 0.5em;
}
.trace .plus,
.trace .minus {
display:inline;
vertical-align:middle;
text-align:center;
border:1px solid #000;
color:#000;
font-size:10px;
line-height:10px;
margin:0;
padding:0 1px;
width:10px;
height:10px;
}
.trace.collapsed .minus,
.trace.expanded .plus,
.trace.collapsed pre {
display: none;
}
.trace-file {
cursor: pointer;
padding: 0.2em;
}
.trace-file:hover {
background: #f0ffff;
}
/*]]>*/
</style>
</head>
<body>
<div class="container">
<h1><?php echo $data['type']?></h1>
<p class="message">
<?php echo nl2br(CHtml::encode($data['message']))?>
</p>
<div class="source">
<p class="file"><?php echo CHtml::encode($data['file'])."({$data['line']})"?></p>
<?php echo $this->renderSourceCode($data['file'],$data['line'],$this->maxSourceLines); ?>
</div>
<div class="traces">
<h2>تتبع الخطأ</h2>
<?php $count=0; ?>
<table style="width:100%;">
<?php foreach($data['traces'] as $n => $trace): ?>
<?php
if($this->isCoreCode($trace))
$cssClass='core collapsed';
elseif(++$count>3)
$cssClass='app collapsed';
else
$cssClass='app expanded';
$hasCode=$trace['file']!=='unknown' && is_file($trace['file']);
?>
<tr class="trace <?php echo $cssClass; ?>">
<td class="number">
#<?php echo $n; ?>
</td>
<td class="content">
<div class="trace-file">
<?php if($hasCode): ?>
<div class="plus">+</div>
<div class="minus"></div>
<?php endif; ?>
<?php
echo '&nbsp;';
echo CHtml::encode($trace['file'])."(".$trace['line'].")";
echo ': ';
if(!empty($trace['class']))
echo "<strong>{$trace['class']}</strong>{$trace['type']}";
echo "<strong>{$trace['function']}</strong>(";
if(!empty($trace['args']))
echo CHtml::encode($this->argumentsToString($trace['args']));
echo ')';
?>
</div>
<?php if($hasCode) echo $this->renderSourceCode($trace['file'],$trace['line'],$this->maxTraceSourceLines); ?>
</td>
</tr>
<?php endforeach; ?>
</table>
</div>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</div>
<script type="text/javascript">
/*<![CDATA[*/
var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");
var e = document.getElementsByTagName("div");
for(var j=0,len=e.length;j<len;j++){
if(traceReg.test(e[j].className)){
e[j].onclick = function(){
var trace = this.parentNode.parentNode;
if(collapsedReg.test(trace.className))
trace.className = trace.className.replace("collapsed", "expanded");
else
trace.className = trace.className.replace("expanded", "collapsed");
}
}
}
/*]]>*/
</script>
</body>
</html>

View File

@@ -0,0 +1,23 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.<?php echo $this->collapsedInFireBug?'groupCollapsed':'group'; ?>("Application Log");
<?php
foreach($data as $index=>$log)
{
$time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
elseif($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>

View File

@@ -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">
سجل التطبيق
</th>
</tr>
<tr style="background-color: #ccc;">
<th style="width:120px">الختم الزمني</th>
<th>المستوى</th>
<th>التصنيف</th>
<th>الرسالة</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]).sprintf('%06d',(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 -->

View File

@@ -0,0 +1,19 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("تقرير تنميط استدعاءات المكدس");
<?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>

View File

@@ -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">
تقرير تنميط استدعاءات المكدس
</th>
</tr>
<tr style="background-color: #ccc;">
<th>الإجراء</th>
<th>الزمن (ث)</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('&nbsp;',$level*8);
echo <<<EOD
<tr style="background:{$color}">
<td>{$spaces}{$proc}</td>
<td align="center">{$time}</td>
</tr>
EOD;
}
?>
</table>
<!-- end of profiling callstack -->

View File

@@ -0,0 +1,22 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("ملخص تقرير التنميط");
console.log(" عدد مجموع معدل أدنى أعلى ");
<?php
foreach($data as $index=>$entry)
{
$proc=CJavaScript::quote($entry[0]);
$count=sprintf('%5d',$entry[1]);
$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 "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
}
?>
console.groupEnd();
}
/*]]>*/
</script>

View File

@@ -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">
ملخص تقرير التنميط
(الزمن: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
الذاكرة: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
</th>
</tr>
<tr style="background-color: #ccc;">
<th>الإجراء</th>
<th>العدد</th>
<th>المجموع (ث)</th>
<th>المعدل (ث)</th>
<th>الأدنى (ث)</th>
<th>الأعلى (ث)</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 -->

View File

@@ -0,0 +1,37 @@
<!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>Грешка <?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>Грешка <?php echo $data['code']; ?></h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Горната греша възникна, когато уеб сървърът се опита да обработи вашата заявка.
</p>
<p>
Ако мислите, че това е грешка в сървъра, моля свържете се с администратора <?php echo $data['admin']; ?>.
</p>
<p>
Благодарим ви.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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>Невалидна заявка</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>Грешна заявка</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Заявката не беше разчетена от сървъра, заради грешка в синтаксиса.
Моля, не повтаряйте заявката без модификация.
</p>
<p>
Ако мислите, че това е грешка в сървъра, моля свържете се с администратора <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!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>Неупълномощен</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>Неупълномощен</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Нямате подходящите акредитиви за достъп до тази страница.
</p>
<p>
Ако мислите, че това е грешка в сървъра, моля свържете се с администратора <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!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>Страницата не е намерена</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>Страницата не е намерена</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Поисканата страница не е намерена на сървъра. Ако сте въвели URL ръчно, проверете дали е въведен коректно и опитайте отново.
</p>
<p>
Ако мислите, че това е грешка в сървъра, моля свържете се с администратора <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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>Вътрешна грешка на сървъра</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>Вътрешна грешка на сървъра</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Вътрешна грешка, възникна на сървъра, докато се опитваше да изпълни вашата заявка.
Моля свържете се с <?php echo $data['admin']; ?>, за да докладвате проблема.
</p>
<p>
Благодарим ви.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,30 @@
<!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>Услугата е недостъпна</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>Услугата е недостъпна</h1>
<p>
В момента системата се подобрява или се отстранява проблем в нея. Моля, опитайте по-късно. </p>
<p>
Благодарим ви.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,23 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.<?php echo $this->collapsedInFireBug?'groupCollapsed':'group'; ?>("Application Log");
<?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';
elseif($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>

View File

@@ -0,0 +1,32 @@
<!-- start log messages -->
<table 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">
Дневник на приложението
</th>
</tr>
<tr style="background-color: #ccc;">
<th style="width:120px">Време</th>
<th>Ниво</th>
<th>Категория</th>
<th>Съобщение</th>
</tr>
<?php
foreach($data as $index=>$log)
{
$color=($index%2)?'#F5F5F5':'#EBF8FE';
$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 -->

View File

@@ -0,0 +1,19 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Обобщен доклад от профилирането");
<?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>

View File

@@ -0,0 +1,30 @@
<!-- start profiling callstack -->
<table 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">
Обобщен доклад от профилирането
</th>
</tr>
<tr style="background-color: #ccc;">
<th>Процедура</th>
<th>Време (на)</th>
</tr>
<?php
foreach($data as $index=>$entry)
{
$color=($index%2)?'#F5F5F5':'#EBF8FE';
list($proc,$time,$level)=$entry;
$proc=CHtml::encode($proc);
$time=sprintf('%0.5f',$time);
$spaces=str_repeat('&nbsp;',$level*8);
echo <<<EOD
<tr style="background:{$color}">
<td>{$spaces}{$proc}</td>
<td align="center">{$time}</td>
</tr>
EOD;
}
?>
</table>
<!-- end of profiling callstack -->

View File

@@ -0,0 +1,22 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Обобщен доклад от профилирането");
console.log(" count total average min max ");
<?php
foreach($data as $index=>$entry)
{
$proc=CJavaScript::quote($entry[0]);
$count=sprintf('%5d',$entry[1]);
$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 "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
}
?>
console.groupEnd();
}
/*]]>*/
</script>

View File

@@ -0,0 +1,41 @@
<!-- start profiling summary -->
<table 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">
Обобщен доклад от профилирането
(Време: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>с,
Памет: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
</th>
</tr>
<tr style="background-color: #ccc;">
<th>Процедура</th>
<th>Брой</th>
<th>Общо (s)</th>
<th>Средно (s)</th>
<th>Минимално (s)</th>
<th>Максимално (s)</th>
</tr>
<?php
foreach($data as $index=>$entry)
{
$color=($index%2)?'#F5F5F5':'#EBF8FE';
$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 -->

View File

@@ -0,0 +1,37 @@
<!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="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Error <?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>Error <?php echo $data['code']; ?></h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Un error intern ha ocorregut mentre el Servidor Web processava la vostra solcitiud.
</p>
<p>
Si creu que aquest error és del servidor, si us plau contacti amb <?php echo $data['admin']; ?>.
</p>
<p>
Gràcies.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Sol·licitud Incorrecta</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>Sol·licitud incorrecta</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
El servidor no ha pogut entendre la sol·licitud per un error de sintaxis.
Si us plau, no intenti realitzar aquesta sol·licitud sense realitzar modificacions.
</p>
<p>
Si creu que aquest error és del servidor, si us plau contacti amb <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!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="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>No Autoritzat</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>No No Autoritzat</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
No té els permisos necessàris per accedir a aquesta pàgina.
</p>
<p>
Si creu que aquest error és del servidor, si us plau contacti amb <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Pàgina no trobada</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>Pàgina no trobada</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
La URL sol·licitada no s'ha trobat en aquest servidor.
Si ha ingressat la direcció manualment, si us plau asseguris que hagi set ben digitada i intenti-ho de nou.
</p>
<p>
Si creu que aquest error és del servidor, si us plau contacti amb <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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>Error Intern de Servidor</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>Error Intern de Servidor</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Un error intern ha ocorregut mentre el Servidor Web processava la vostra solcitiud.
Si creu que aquest error és del servidor, si us plau contacti amb <?php echo $data['admin']; ?>.
</p>
<p>
Gràcies.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Servei No Disponible</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>Servei No Disponible</h1>
<p>
Actualment, el nostre sistema actualment es troba en manteniment. Si us plau, provi-ho més tard.
</p>
<p>
Gràcies.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,23 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.<?php echo $this->collapsedInFireBug?'groupCollapsed':'group'; ?>("Registro de Aplicación");
<?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';
elseif($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>

View File

@@ -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">
Log d'Aplicació
</th>
</tr>
<tr style="background-color: #ccc;">
<th style="width:120px">Estampa de temps (Timestamp)</th>
<th>Nivell</th>
<th>Categoria</th>
<th>Missatge</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 -->

View File

@@ -0,0 +1,19 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Profiling Callstack Report");
<?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>

View File

@@ -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">
Reportatge Perfilat de la Pila de Crides al Servidor (Profiling Callstack Report)
</th>
</tr>
<tr style="background-color: #ccc;">
<th>Procediment</th>
<th>Temps (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('&nbsp;',$level*8);
echo <<<EOD
<tr style="background:{$color}">
<td>{$spaces}{$proc}</td>
<td align="center">{$time}</td>
</tr>
EOD;
}
?>
</table>
<!-- end of profiling callstack -->

View File

@@ -0,0 +1,22 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Profiling Summary Report");
console.log(" cuenta total promedio min max ");
<?php
foreach($data as $index=>$entry)
{
$proc=CJavaScript::quote($entry[0]);
$count=sprintf('%5d',$entry[1]);
$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 "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
}
?>
console.groupEnd();
}
/*]]>*/
</script>

View File

@@ -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">
Reportatge Perfilat Resumit (Profiling Summary Report)
(Temps: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
Memòria: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
</th>
</tr>
<tr style="background-color: #ccc;">
<th>Procediment</th>
<th>Compte</th>
<th>Total (es)</th>
<th>Mitjana (s)</th>
<th>Min. (s)</th>
<th>Máx. (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 -->

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -0,0 +1,23 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.<?php echo $this->collapsedInFireBug?'groupCollapsed':'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';
elseif($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>

View File

@@ -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 -->

View File

@@ -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>

View File

@@ -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('&nbsp;',$level*8);
echo <<<EOD
<tr style="background:{$color}">
<td>{$spaces}{$proc}</td>
<td align="center">{$time}</td>
</tr>
EOD;
}
?>
</table>
<!-- end of profiling callstack -->

View File

@@ -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>

View File

@@ -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 -->

View File

@@ -0,0 +1,37 @@
<!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>Σφάλμα <?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>Σφάλμα <?php echo $data['code']; ?></h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Υπήρξε το παραπάνω σφάλμα κατά την επεξεργασία της αίτησής σας από το διακομιστή.
</p>
<p>
Αν πιστεύετε ότι αυτό είναι λάθος του διακομιστή, παρακαλούμε επικοινωνήστε με <?php echo $data['admin']; ?>.
</p>
<p>
Ευχαριστούμε.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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>Λανθασμένη Αίτηση</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>Λανθασμένη Αίτηση</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Ήταν αδύνατη η αναγνώριση της αίτησης από το διακομιστή λόγω λανθασμένης σύνταξης.
Μην επαναλάβετε την αίτηση χωρίς πρώτα να την τροποποιήσετε.
</p>
<p>
Αν πιστεύετε ότι αυτό είναι λάθος του διακομιστή, παρακαλούμε επικοινωνήστε με <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!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>Χωρίς Εξουσιοδότηση</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>Χωρίς Εξουσιοδότηση</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Δεν έχετε την απαραίτητη πιστοποίηση για να προσπελάσετε τη σελίδα.
</p>
<p>
Αν πιστεύετε ότι αυτό είναι λάθος του διακομιστή, παρακαλούμε επικοινωνήστε με <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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>Δε βρέθηκε η σελίδα</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>Δε βρέθηκε η σελίδα</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Η διεύθυνση URL που αιτήθηκε δεν ήταν δυνατό να βρεθεί στο διακομιστή.
Αν εισάγατε τη διεύθυνση με το χέρι, παρακαλούμε ελέγξτε την ορθογραφία της και δοκιμάστε πάλι.
</p>
<p>
Αν πιστεύετε ότι αυτό είναι λάθος του διακομιστή, παρακαλούμε επικοινωνήστε με <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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>Εσωτερικό Σφάλμα Διακομιστή</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>Εσωτερικό Σφάλμα Διακομιστή</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Υπήρξε ένα εσωτερικό σφάλμα στο διακομιστή κατά την επεξεργασία της αίτησής σας.
Παρακαλούμε επικοινωνήστε με <?php echo $data['admin']; ?> για να αναφέρετε το πρόβλημα.
</p>
<p>
Ευχαριστούμε.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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>Μη Διαθέσιμη Υπηρεσία</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>Μη Διαθέσιμη Υπηρεσία</h1>
<p>
Αυτή τη στιγμή, το σύστημα είναι σε συντήρηση. Παρακαλούμε δοκιμάστε αργότερα.
</p>
<p>
Ευχαριστούμε.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,23 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.<?php echo $this->collapsedInFireBug?'groupCollapsed':'group'; ?>("Application Log");
<?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';
elseif($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>

View File

@@ -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">
Ημερολόγιο εφαρμογής
</th>
</tr>
<tr style="background-color: #ccc;">
<th style="width:120px">Χρονική ετικέτα</th>
<th>Επίπεδο</th>
<th>Κατηγορία</th>
<th>Μήνυμα</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]).sprintf('%06d',(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 -->

View File

@@ -0,0 +1,19 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Profiling Callstack Report");
<?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>

View File

@@ -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">
Αναφορά Προφίλ Κλήσεων Στοίβας
</th>
</tr>
<tr style="background-color: #ccc;">
<th>Διαδικασία</th>
<th>Χρόνος (δευτ.)</th>
</tr>
<?php
foreach($data as $index=>$entry)
{
$color=($index%2)?'#F5F5F5':'#EBF8FE';
list($proc,$time,$level)=$entry;
$proc=CHtml::encode($proc);
$time=sprintf('%0.5f',$time);
$spaces=str_repeat('&nbsp;',$level*8);
echo <<<EOD
<tr style="background:{$color}">
<td>{$spaces}{$proc}</td>
<td align="center">{$time}</td>
</tr>
EOD;
}
?>
</table>
<!-- end of profiling callstack -->

View File

@@ -0,0 +1,22 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Profiling Summary Report");
console.log(" count total average min max ");
<?php
foreach($data as $index=>$entry)
{
$proc=CJavaScript::quote($entry[0]);
$count=sprintf('%5d',$entry[1]);
$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 "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
}
?>
console.groupEnd();
}
/*]]>*/
</script>

View File

@@ -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">
Αναφορά Περίληψης Προφίλ
(Χρόνος: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
Μνήμη: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
</th>
</tr>
<tr style="background-color: #ccc;">
<th>Διαδικασία</th>
<th>Αριθμός</th>
<th>Σύνολο (δευτ.)</th>
<th>Μέση τιμή (δευτ.)</th>
<th>Ελάχ. (δευτ.)</th>
<th>Μέγ. (δευτ.)</th>
</tr>
<?php
foreach($data as $index=>$entry)
{
$color=($index%2)?'#F5F5F5':'#EBF8FE';
$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 -->

37
framework/views/error.php Normal file
View File

@@ -0,0 +1,37 @@
<!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>Error <?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>Error <?php echo $data['code']; ?></h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
The above error occurred when the Web server was processing your request.
</p>
<p>
If you think this is a server error, please contact <?php echo $data['admin']; ?>.
</p>
<p>
Thank you.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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>Bad Request</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>Bad Request</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
The request could not be understood by the server due to malformed syntax.
Please do not repeat the request without modifications.
</p>
<p>
If you think this is a server error, please contact <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!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>Unauthorized</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>Unauthorized</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
You do not have the proper credential to access this page.
</p>
<p>
If you think this is a server error, please contact <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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>Page Not Found</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>Page Not Found</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
The requested URL was not found on this server.
If you entered the URL manually please check your spelling and try again.
</p>
<p>
If you think this is a server error, please contact <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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>Internal Server Error</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>Internal Server Error</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
An internal error occurred while the Web server was processing your request.
Please contact <?php echo $data['admin']; ?> to report this problem.
</p>
<p>
Thank you.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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>Service Unavailable</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>Service Unavailable</h1>
<p>
Our system is currently under maintenance. Please come back later.
</p>
<p>
Thank you.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,37 @@
<!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="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Error <?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>Error <?php echo $data['code']; ?></h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
El error mencionado ocurrió cuando el Servidor Web estaba procesando su solicitud.
</p>
<p>
Si piensa que este es un error del servidor, por favor contacte a <?php echo $data['admin']; ?>.
</p>
<p>
Gracias.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Solicitud Incorrecta</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>Solicitud incorrecta</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
La solicitud no pudo ser entendida por el servidor por un error de sintaxis.
Por favor, no intente realizar esta solicitud sin realizar modificaciones.
</p>
<p>
Si piensa que éste es un error del servidor, por favor contacte a <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!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="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>No Autorizado</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>No Autorizado</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
No tiene los permisos necesarios para acceder a esta página.
</p>
<p>
Si piensa que este es un error del servidor, por favor contacte a <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Página no encontrada</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>Página no encontrada</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
La URL solicitada no fue encontrada en este servidor.
Si ingresó la dirección manualmente, por favor verifique que haya sido bien digitada e intente nuevamente.
</p>
<p>
Si piensa que este es un error del servidor, por favor contacte a <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,37 @@
<!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>Internal Server Error</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>Internal Server Error</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Un error interno ocurrió cuando el servidor estaba procesando su solicitud.
</p>
<p>
Si piensa que este es un error del servidor, por favor contacte a <?php echo $data['admin']; ?>.
</p>
<p>
Gracias.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Servicio No Disponible</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>Servicio No Disponible</h1>
<p>
Nuestro sistema está actualmente en mantenimiento. Por favor regrese más tarde.
</p>
<p>
Gracias.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,23 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.<?php echo $this->collapsedInFireBug?'groupCollapsed':'group'; ?>("Registro de Aplicación");
<?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';
elseif($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>

View File

@@ -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">
Application Log
</th>
</tr>
<tr style="background-color: #ccc;">
<th style="width:120px">Timestamp</th>
<th>Level</th>
<th>Category</th>
<th>Message</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 -->

View File

@@ -0,0 +1,19 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Profiling Callstack Report");
<?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>

View File

@@ -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">
Profiling Callstack Report
</th>
</tr>
<tr style="background-color: #ccc;">
<th>Procedimiento</th>
<th>Tiempo (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('&nbsp;',$level*8);
echo <<<EOD
<tr style="background:{$color}">
<td>{$spaces}{$proc}</td>
<td align="center">{$time}</td>
</tr>
EOD;
}
?>
</table>
<!-- end of profiling callstack -->

View File

@@ -0,0 +1,22 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Profiling Summary Report");
console.log(" cuenta total promedio min max ");
<?php
foreach($data as $index=>$entry)
{
$proc=CJavaScript::quote($entry[0]);
$count=sprintf('%5d',$entry[1]);
$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 "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
}
?>
console.groupEnd();
}
/*]]>*/
</script>

View File

@@ -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">
Profiling Summary Report
(Tiempo: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
Memoria: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
</th>
</tr>
<tr style="background-color: #ccc;">
<th>Procedimiento</th>
<th>Cuenta</th>
<th>Total (es)</th>
<th>Promedio (s)</th>
<th>Min. (s)</th>
<th>Máx. (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 -->

View File

@@ -0,0 +1,242 @@
<!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><?php echo $data['type']; ?></title>
<style type="text/css">
/*<![CDATA[*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
body{line-height:1;}
ol,ul{list-style:none;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:none;}
:focus{outline:0;}
ins{text-decoration:none;}
del{text-decoration:line-through;}
table{border-collapse:collapse;border-spacing:0;}
body {
font: normal 9pt "Verdana";
color: #000;
background: #fff;
}
h1 {
font: normal 18pt "Verdana";
color: #f00;
margin-bottom: .5em;
}
h2 {
font: normal 14pt "Verdana";
color: #800000;
margin-bottom: .5em;
}
h3 {
font: bold 11pt "Verdana";
}
pre {
font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;
}
pre span.error {
display: block;
background: #fce3e3;
}
pre span.ln {
color: #999;
padding-right: 0.5em;
border-right: 1px solid #ccc;
}
pre span.error-ln {
font-weight: bold;
}
.container {
margin: 1em 4em;
}
.version {
color: gray;
font-size: 8pt;
border-top: 1px solid #aaa;
padding-top: 1em;
margin-bottom: 1em;
}
.message {
color: #000;
padding: 1em;
font-size: 11pt;
background: #f3f3f3;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
margin-bottom: 1em;
line-height: 160%;
}
.source {
margin-bottom: 1em;
}
.code pre {
background-color: #ffe;
margin: 0.5em 0;
padding: 0.5em;
line-height: 125%;
border: 1px solid #eee;
}
.source .file {
margin-bottom: 1em;
font-weight: bold;
}
.traces {
margin: 2em 0;
}
.trace {
margin: 0.5em 0;
padding: 0.5em;
}
.trace.app {
border: 1px dashed #c00;
}
.trace .number {
text-align: right;
width: 2em;
padding: 0.5em;
}
.trace .content {
padding: 0.5em;
}
.trace .plus,
.trace .minus {
display:inline;
vertical-align:middle;
text-align:center;
border:1px solid #000;
color:#000;
font-size:10px;
line-height:10px;
margin:0;
padding:0 1px;
width:10px;
height:10px;
}
.trace.collapsed .minus,
.trace.expanded .plus,
.trace.collapsed pre {
display: none;
}
.trace-file {
cursor: pointer;
padding: 0.2em;
}
.trace-file:hover {
background: #f0ffff;
}
/*]]>*/
</style>
</head>
<body>
<div class="container">
<h1><?php echo $data['type']?></h1>
<p class="message">
<?php echo nl2br(htmlspecialchars($data['message'],ENT_QUOTES,Yii::app()->charset))?>
</p>
<div class="source">
<p class="file"><?php echo htmlspecialchars($data['file'],ENT_QUOTES,Yii::app()->charset)."({$data['line']})"?></p>
<?php echo $this->renderSourceCode($data['file'],$data['line'],$this->maxSourceLines); ?>
</div>
<div class="traces">
<h2>Stack Trace</h2>
<?php $count=0; ?>
<table style="width:100%;">
<?php foreach($data['traces'] as $n => $trace): ?>
<?php
if($this->isCoreCode($trace))
$cssClass='core collapsed';
elseif(++$count>3)
$cssClass='app collapsed';
else
$cssClass='app expanded';
$hasCode=$trace['file']!=='unknown' && is_file($trace['file']);
?>
<tr class="trace <?php echo $cssClass; ?>">
<td class="number">
#<?php echo $n; ?>
</td>
<td class="content">
<div class="trace-file">
<?php if($hasCode): ?>
<div class="plus">+</div>
<div class="minus"></div>
<?php endif; ?>
<?php
echo '&nbsp;';
echo htmlspecialchars($trace['file'],ENT_QUOTES,Yii::app()->charset)."(".$trace['line'].")";
echo ': ';
if(!empty($trace['class']))
echo "<strong>{$trace['class']}</strong>{$trace['type']}";
echo "<strong>{$trace['function']}</strong>(";
if(!empty($trace['args']))
echo htmlspecialchars($this->argumentsToString($trace['args']),ENT_QUOTES,Yii::app()->charset);
echo ')';
?>
</div>
<?php if($hasCode) echo $this->renderSourceCode($trace['file'],$trace['line'],$this->maxTraceSourceLines); ?>
</td>
</tr>
<?php endforeach; ?>
</table>
</div>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</div>
<script type="text/javascript">
/*<![CDATA[*/
var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");
var e = document.getElementsByTagName("div");
for(var j=0,len=e.length;j<len;j++){
if(traceReg.test(e[j].className)){
e[j].onclick = function(){
var trace = this.parentNode.parentNode;
if(collapsedReg.test(trace.className))
trace.className = trace.className.replace("collapsed", "expanded");
else
trace.className = trace.className.replace("expanded", "collapsed");
}
}
}
/*]]>*/
</script>
</body>
</html>

View File

@@ -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="fi" lang="fi">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Virhe <?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>Virhe <?php echo $data['code']; ?></h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Ylläoleva virhe ilmeni palvelimen käsitellessä pyyntöä.
</p>
<p>
Mikäli uskot tämän olevan palvelimen virhe, ota yhteyttä <?php echo $data['admin']; ?>.
</p>
<p>
Kiitos.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="fi" lang="fi">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Pyyntö ei kelpaa</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>Pyyntö ei kelpaa</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Palvelin ei voinut käsitellä pyyntöä virheellisen syntaksin johdosta.
Älä toista pyyntöä ilman muutoksia.
</p>
<p>
Mikäli uskot tämän olevan palvelimen virhe, ota yhteyttä <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!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="fi" lang="fi">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Ei valtuuksia</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>Ei valtuuksia</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Sinulla ei ole vaadittavia oikeuksia päästäksesi sivulle.
</p>
<p>
Mikäli uskot tämän olevan palvelimen virhe, ota yhteyttä <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="fi" lang="fi">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Sivua ei löydy</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>Sivua ei löydy</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Hakemaasi sivua ei löytynyt tältä palvelimelta.
Mikäli syötit URL-osoitteen käsin, tarkista oikeinkirjoitus ja yritä uudelleen.
</p>
<p>
Mikäli uskot tämän olevan palvelimen virhe, ota yhteyttä <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="fi" lang="fi">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Sisäinen palvelinvirhe</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>Sisäinen palvelinvirhe</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Sisäinen virhe ilmeni palvelimen käsitellessä pyyntöä.
Voit raportoida ongelman ottamalla yhteyttä <?php echo $data['admin']; ?>.
</p>
<p>
Kiitos.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="fi" lang="fi">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Palvelu ei ole käytettävissä</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>Palvelu ei ole käytettävissä</h1>
<p>
Palvelua huolletaan. Yritä myöhemmin uudelleen.
</p>
<p>
Kiitos.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,240 @@
<!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="fi" lang="fi">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?php echo $data['type']; ?></title>
<style type="text/css">
/*<![CDATA[*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
body{line-height:1;}
ol,ul{list-style:none;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:none;}
:focus{outline:0;}
ins{text-decoration:none;}
del{text-decoration:line-through;}
table{border-collapse:collapse;border-spacing:0;}
body {
font: normal 9pt "Verdana";
color: #000;
background: #fff;
}
h1 {
font: normal 18pt "Verdana";
color: #f00;
margin-bottom: .5em;
}
h2 {
font: normal 14pt "Verdana";
color: #800000;
margin-bottom: .5em;
}
h3 {
font: bold 11pt "Verdana";
}
pre {
font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;
}
pre span.error {
display: block;
background: #fce3e3;
}
pre span.ln {
color: #999;
padding-right: 0.5em;
border-right: 1px solid #ccc;
}
pre span.error-ln {
font-weight: bold;
}
.container {
margin: 1em 4em;
}
.version {
color: gray;
font-size: 8pt;
border-top: 1px solid #aaa;
padding-top: 1em;
margin-bottom: 1em;
}
.message {
color: #000;
padding: 1em;
font-size: 11pt;
background: #f3f3f3;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
margin-bottom: 1em;
line-height: 160%;
}
.source {
margin-bottom: 1em;
}
.code pre {
background-color: #ffe;
margin: 0.5em 0;
padding: 0.5em;
line-height: 125%;
border: 1px solid #eee;
}
.source .file {
margin-bottom: 1em;
font-weight: bold;
}
.traces {
margin: 2em 0;
}
.trace {
margin: 0.5em 0;
padding: 0.5em;
}
.trace.app {
border: 1px dashed #c00;
}
.trace .number {
text-align: right;
width: 2em;
padding: 0.5em;
}
.trace .content {
padding: 0.5em;
}
.trace .plus,
.trace .minus {
display:inline;
vertical-align:middle;
text-align:center;
border:1px solid #000;
color:#000;
font-size:10px;
line-height:10px;
margin:0;
padding:0 1px;
width:10px;
height:10px;
}
.trace.collapsed .minus,
.trace.expanded .plus,
.trace.collapsed pre {
display: none;
}
.trace-file {
cursor: pointer;
padding: 0.2em;
}
.trace-file:hover {
background: #f0ffff;
}
/*]]>*/
</style>
</head>
<body>
<div class="container">
<h1><?php echo $data['type']?></h1>
<p class="message">
<?php echo nl2br(htmlspecialchars($data['message'],ENT_QUOTES,Yii::app()->charset))?>
</p>
<div class="source">
<p class="file"><?php echo htmlspecialchars($data['file'],ENT_QUOTES,Yii::app()->charset)."({$data['line']})"?></p>
<?php echo $this->renderSourceCode($data['file'],$data['line'],$this->maxSourceLines); ?>
</div>
<div class="traces">
<h2>Komentopino</h2>
<?php $count=0; ?>
<table style="width:100%;">
<?php foreach($data['traces'] as $n => $trace): ?>
<?php
if($this->isCoreCode($trace))
$cssClass='core collapsed';
elseif(++$count>3)
$cssClass='app collapsed';
else
$cssClass='app expanded';
$hasCode=$trace['file']!=='unknown' && is_file($trace['file']);
?>
<tr class="trace <?php echo $cssClass; ?>">
<td class="number">
#<?php echo $n; ?>
</td>
<td class="content">
<div class="trace-file">
<?php if($hasCode): ?>
<div class="plus">+</div>
<div class="minus"></div>
<?php endif; ?>
<?php
echo '&nbsp;';
echo htmlspecialchars($trace['file'],ENT_QUOTES,Yii::app()->charset)."(".$trace['line'].")";
echo ': ';
if(!empty($trace['class']))
echo "<strong>{$trace['class']}</strong>{$trace['type']}";
echo "<strong>{$trace['function']}</strong>(";
if(!empty($trace['args']))
echo htmlspecialchars($this->argumentsToString($trace['args']),ENT_QUOTES,Yii::app()->charset);
echo ')';
?>
</div>
<?php if($hasCode) echo $this->renderSourceCode($trace['file'],$trace['line'],$this->maxTraceSourceLines); ?>
</td>
</tr>
<?php endforeach; ?>
</table>
</div>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</div>
<script type="text/javascript">
/*<![CDATA[*/
var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");
var e = document.getElementsByTagName("div");
for(var j=0,len=e.length;j<len;j++){
if(traceReg.test(e[j].className)){
e[j].onclick = function(){
var trace = this.parentNode.parentNode;
if(collapsedReg.test(trace.className))
trace.className = trace.className.replace("collapsed", "expanded");
else
trace.className = trace.className.replace("expanded", "collapsed");
}
}
}
/*]]>*/
</script>
</body>
</html>

View File

@@ -0,0 +1,23 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.<?php echo $this->collapsedInFireBug?'groupCollapsed':'group'; ?>("Sovellusloki");
<?php
foreach($data as $index=>$log)
{
$time=date('H:i:s.',$log[3]).sprintf('%03d',(int)(($log[3]-(int)$log[3])*1000));
if($log[1]===CLogger::LEVEL_WARNING)
$func='warn';
elseif($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>

View File

@@ -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">
Sovellusloki
</th>
</tr>
<tr style="background-color: #ccc;">
<th style="width:120px">Aikaleima</th>
<th>Taso</th>
<th>Kategoria</th>
<th>Viesti</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]).sprintf('%06d',(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 -->

View File

@@ -0,0 +1,19 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Profiloinnin kutsupinon raportti");
<?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>

View File

@@ -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">
Profiloinnin kutsupinon raportti
</th>
</tr>
<tr style="background-color: #ccc;">
<th>Proseduuri</th>
<th>Aika (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('&nbsp;',$level*8);
echo <<<EOD
<tr style="background:{$color}">
<td>{$spaces}{$proc}</td>
<td align="center">{$time}</td>
</tr>
EOD;
}
?>
</table>
<!-- end of profiling callstack -->

View File

@@ -0,0 +1,22 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Profiloinnin yhteenvetoraportti");
console.log(" lukum. yht. keskim. väh. enint.");
<?php
foreach($data as $index=>$entry)
{
$proc=CJavaScript::quote($entry[0]);
$count=sprintf('%5d',$entry[1]);
$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 "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
}
?>
console.groupEnd();
}
/*]]>*/
</script>

View File

@@ -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">
Profiloinnin yhteenvetoraportti
(Aika: <?php echo sprintf('%0.5f',Yii::getLogger()->getExecutionTime()); ?>s,
Muisti: <?php echo number_format(Yii::getLogger()->getMemoryUsage()/1024); ?>KB)
</th>
</tr>
<tr style="background-color: #ccc;">
<th>Proseduuri</th>
<th>Lukumäärä</th>
<th>Yhteensä (s)</th>
<th>Keskim. (s)</th>
<th>Väh. (s)</th>
<th>Enint. (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 -->

View File

@@ -0,0 +1,36 @@
<!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="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="language" content="fr"/>
<title>Erreur <?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>Erreur <?php echo $data['code']; ?></h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
L'erreur ci-dessus est apparue pendant que le serveur Web traitait votre requête.
</p>
<p>
Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter <?php echo $data['admin']; ?>.
</p>
<p>
Merci.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="language" content="fr"/>
<title>Demande incorrecte</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>Demande Incorrecte</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
La demande n'a pas pu être interprétée par le serveur, due à une mauvaise syntaxe.
Merci de ne pas répeter la requete sans modifications.
</p>
<p>
Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="language" content="fr"/>
<title>Accès interdit</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>Accès interdit</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Vous n'avez pas les autorisations nécessaires pour accéder à cette page.
</p>
<p>
Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="language" content="fr"/>
<title>Page Non trouvée</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>Page Non trouvée</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
L'URL demandée n'existe pas sur ce serveur.
Si vous avez saisi l'URL manuellement, vérifiez la, et réessayez.
</p>
<p>
Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter <?php echo $data['admin']; ?>.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -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="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="language" content="fr"/>
<title>Erreur interne du serveur</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>Erreur interne du serveur</h1>
<h2><?php echo nl2br(CHtml::encode($data['message'])); ?></h2>
<p>
Une erreur interne est apparue lorsque le serveur web traitait votre requete.
Veuillez contacter <?php echo $data['admin']; ?> pour signaler ce problème.
</p>
<p>
Merci.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!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="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="language" content="fr"/>
<title>Service non disponible</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>Service non disponible</h1>
<p>
Notre système est momentanément indisponible. Merci de réessayer plus tard.
</p>
<p>
Merci.
</p>
<div class="version">
<?php echo date('Y-m-d H:i:s',$data['time']) .' '. $data['version']; ?>
</div>
</body>
</html>

View File

@@ -0,0 +1,23 @@
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.<?php echo $this->collapsedInFireBug?'groupCollapsed':'group'; ?>("Application Log");
<?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';
elseif($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>

Some files were not shown because too many files have changed in this diff Show More