Skip to content

Commit

Permalink
Merge pull request #9 from zhheo/dev
Browse files Browse the repository at this point in the history
Update comments.php
  • Loading branch information
zhheo committed Aug 10, 2023
2 parents 8c5a8bc + 44957ea commit ef3572c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comments.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; 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);?>
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; 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(); unset($domain);?>
<div id="comments">
<?php $this->comments()->to($comments); ?>
<?php if ($comments->have()): ?>
Expand Down

0 comments on commit ef3572c

Please sign in to comment.