-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 75723ca
Showing
97 changed files
with
4,886 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
<?php | ||
/** | ||
* 自定义404页面 | ||
*/ | ||
if(!defined('EMLOG_ROOT')) {exit('error!');} | ||
//首先你要有读写文件的权限 | ||
//本程序可以直接运行,第一次报错,无视 | ||
$error_url = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; | ||
$error_log = "silian.txt"; | ||
$entries = file($error_log); | ||
$check=true; | ||
foreach($entries as $f){ | ||
if($f == $error_url."\n") | ||
$check = false; | ||
} | ||
if($check){ | ||
$fp = fopen($error_log,"a"); | ||
flock ($fp, LOCK_EX) ; | ||
fwrite ($fp, $error_url."\n"); | ||
flock ($fp, LOCK_UN); | ||
fclose ($fp); | ||
} | ||
?> | ||
<!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" lang="zh-CN"> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" /> | ||
|
||
<title>404 Not Found</title> | ||
<style> | ||
body{ | ||
margin:0;padding:0; | ||
font-family: Helvetica,Arial,"PingFang SC","Microsoft YaHei","WenQuanYi Micro Hei","tohoma,sans-serif"; | ||
} | ||
a, button.submit { | ||
color:#6E7173; | ||
text-decoration:none; | ||
-webkit-transition:all .1s ease-in; | ||
-moz-transition:all .1s ease-in; | ||
-o-transition:all .1s ease-in; | ||
transition:all .1s ease-in; | ||
} | ||
a:hover, a:active { | ||
color:#6E7173; | ||
} | ||
.body404{ | ||
position: absolute; | ||
height: 100%; | ||
width: 100%; | ||
background:#fff; | ||
background-size: auto 100%; | ||
text-shadow:1px 1px 0 #fff; | ||
} | ||
.body-about .body404{ | ||
background:#fff; | ||
} | ||
.site-name404 { | ||
margin: 0 auto; | ||
text-align: center; | ||
letter-spacing: 2px; | ||
font: normal 150px/1 “Helvetica Neue”, Helvetica, Arial; | ||
color:#444; | ||
} | ||
.site-name404 h1{ | ||
margin: 0 0 10px; | ||
font-size:50px; | ||
line-height:1.2; | ||
} | ||
.title404 span{ | ||
font-size: 15px; | ||
width: 2px; | ||
} | ||
.site-name404 i { | ||
font-style: normal; | ||
} | ||
.title404 p{ | ||
font-size: 20px; | ||
line-height:1.5; | ||
margin:0; | ||
color:#444; | ||
} | ||
.info404{ | ||
position: absolute; | ||
top: 50%; | ||
text-align: center; | ||
width: 100%; | ||
margin-top: -160px; | ||
} | ||
.body-about .info404{ | ||
margin-top: -180px; | ||
} | ||
#footer404{ | ||
margin-top:30px; | ||
font-size:10px; | ||
} | ||
.index404 { | ||
margin-top: 24px; | ||
display: inline-block; | ||
white-space: nowrap; | ||
cursor: pointer; | ||
background: #444; | ||
letter-spacing: 1px; | ||
font-size: 14px; | ||
-moz-user-select: -moz-none; | ||
-webkit-user-select: none; | ||
-ms-user-select: none; | ||
-o-user-select: none; | ||
user-select: none; | ||
text-shadow: none; | ||
border: 1px solid #ccc; | ||
line-height: 36px; | ||
text-align: center; | ||
height: 36px; | ||
padding: 0 25px; | ||
border-radius: 16px; | ||
-webkit-transition-duration: 400ms; | ||
transition-duration: 400ms; | ||
background-color: #fff; | ||
color: #999; | ||
} | ||
.index404:hover{ | ||
color: #F77B83; | ||
border-color: #F77B83; | ||
outline-style: none; | ||
} | ||
.icon-about{ | ||
padding: 10px 0 25px; | ||
} | ||
.icon-about a{ | ||
font-size: 20px; | ||
margin: 5px; | ||
color: #fff; | ||
background-color: #000; | ||
border-radius: 100%; | ||
padding: 6px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="body404"> | ||
<div class="info404"> | ||
<header id="header404" class="clearfix"> | ||
<div class="site-name404"><i>404</i> | ||
</div> | ||
</header> | ||
<section> | ||
<div class="title404"> | ||
<p>有些事也许一开始就是错的!</p> | ||
</div><a href="javascript:history.back(-1);" class="index404">点击返回</a> | ||
</section> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Emlog主题 - 今夕何夕 | ||
|
||
基于杨青博客今昔何夕之前共享的今夕何夕html静态页面制作,很久之前写的,已经烂尾楼了,有需要的可以自己clone下来,自己调整吧。下载的静态页面,我也丢了。 | ||
|
||
## 参考项目 | ||
|
||
[杨青博客](https://www.yangqq.com/) |
Oops, something went wrong.