<?php

/**
 *--------------------------------------
 * error tip debug
 *--------------------------------------
 * @project		: pfa
 * @author		: cblee
 * @created		: 2014-12-16
 * @copyright	: (c)2014 AsThis
 *--------------------------------------
 */

defined('PFA_PATH') or exit('Access Denied');
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo L('_SYSTEM_ERROR_');?></title>
<meta charset="utf-8"/>
<style>
body{font-family:'Microsoft YaHei',Verdana,Tahoma,Arial;font-size:16px;font-weight:300;line-height:1.5;background:#fff}
a{text-decoration:none;color:#3d6dcc}
a:hover{text-decoration:none;color:#f30}
.notice{margin:20px auto;padding:20px 40px;color:#666}
h2{border-bottom:1px solid #ddd;margin:0 0 5px;padding:8px 0;font-size:40px;font-weight:500}
.title{color:#f30;margin: 0}
.message, #trace{padding:0;border:0;margin:5px 0 10px;font-size:14px}
.red{color:red;font-weight:bold}
</style>
</head>
<body>
<div class="notice">
	<h2><?php echo L('_SYSTEM_ERROR_');?></h2>
	<div>[ <a href="javascript:location.reload();"><?php echo L('_TRY_LATER_');?></a> ]<?php if(AServer::get_preUrl()) {?> [ <a href="javascript:history.go(-1);" target="_self"><?php echo L('_GO_BACK_');?></a> ]<?php }?> <?php echo L('_OR_');?> [ <a href="<?php echo __APP__;?>"><?php echo L('_GO_HOME_');?></a> ]</div>
	<?php if(isset($e['file'])){?>
	<p><strong><?php echo L('_ERROR_POSITION_');?>: </strong><?php echo L('_FILE_');?>: <span class="red"><?php echo $e['file'] ;?></span> <?php echo L('_LINE_');?>: <span class="red"><?php echo $e['line'];?></span></p>
	<?php }?>
	<p class="title">[ <?php echo L('_ERROR_INFORMATION_');?> ]</p>
	<p class="message"><?php echo strip_tags($e['message']);?></p>
	<?php if(isset($e['trace'])){?>
	<p class="title">[ <?php echo L('_PAGE_TRACE_INFO_');?> ]</p>
	<p id="trace">
	<?php echo nl2br($e['trace']);?>
	</p>
	<?php }?>
	<p align="center" style="color:#FF3300;margin:5pt;font-family:Verdana">
		PFA <sup style='color:gray;font-size:9pt'><?php echo PFA_VERSION;?></sup>
	</p>
</div>
</body>
</html>