Skip to content

Commit

Permalink
Merge pull request #7 from zhheo/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
zhheo committed Aug 10, 2023
2 parents 99fb0a3 + 49d0205 commit 8e40b22
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

**/.DS_Store
5 changes: 2 additions & 3 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1847,15 +1847,14 @@ body.is-preload #header {
.nav-item .nav-item-child {
position: absolute;
bottom: 30px;
display: flex;
flex-direction: column;
width: 120px;
margin-bottom: 0;
padding: 8px;
align-items: center;
background: var(--heo-maskbg);
border-radius: 8px;
opacity: 0;
display: none;
height: fit-content;
transition: 0.3s;
}
Expand All @@ -1871,7 +1870,7 @@ body.is-preload #header {
}

.nav-item:hover .nav-item-child {
opacity: 1;
display: flex;
}

#header nav>ul>li a {
Expand Down
19 changes: 0 additions & 19 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
<?php
error_reporting(0);
function getTopDomainhuo()
{
$host = $_SERVER['HTTP_HOST'];
$matchstr = "[^\.]+\.(?:(" . $str . ")|\w{2}|((" . $str . ")\.\w{2}))$";
if (preg_match("/" . $matchstr . "/ies", $host, $matchs)) {
$domain = $matchs['0'];
} else {
$domain = $host;
}
return $domain;
}
$domain = getTopDomainhuo();
$check_host = 'http://sq.zmki.cn/update.php';
$client_check = $check_host . '?a=client_check&u=' . $_SERVER['HTTP_HOST'];
$check_message = $check_host . '?a=check_message&u=' . $_SERVER['HTTP_HOST'];
$check_info = file_get_contents($client_check);
$message = file_get_contents($check_message);
unset($domain);
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
function themeConfig($form)
{
if ($check_info == '1') {
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* 一款相册主题,Plus系列目前由Heo维护
* @package TimePlus
* @author zhheo
* @version 2.4
* @version 2.5
* @link https://zhheo.com/
*/
?>
Expand Down

0 comments on commit 8e40b22

Please sign in to comment.