-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
32 lines (32 loc) · 997 Bytes
/
Copy patherror.php
File metadata and controls
32 lines (32 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// 定义SITE_NAME常量(如果尚未定义)
if (!defined('SITE_NAME')) {
define('SITE_NAME', '应用商店管理系统');
}
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>错误 - <?php echo SITE_NAME; ?></title>
<link href="assets/layui/css/layui.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/main.css">
</head>
<body class="error-page">
<div class="error-container">
<div class="error-title">发生错误</div>
<div class="error-message">
<?php
// 由调用页面传递
if (isset($_GET['msg'])) {
echo htmlspecialchars($_GET['msg']);
} else {
echo "发生未知错误,请返回重试。";
}
?>
</div>
<a href="javascript:history.back()" class="back-link">返回上一页</a>
</div>
</body>
</html>