Skip to content

Commit 44957ea

Browse files
committed
Update comments.php
1 parent 1e78141 commit 44957ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?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);?>
1+
<?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);?>
22
<div id="comments">
33
<?php $this->comments()->to($comments); ?>
44
<?php if ($comments->have()): ?>

0 commit comments

Comments
 (0)