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
<?php | |
function tlo_comment_mail_notify($comment_id) { | |
global $comment_author; | |
$comment = get_comment($comment_id); | |
$parent_id = $comment->comment_parent ? $comment->comment_parent : ''; | |
$spam_confirmed = $comment->comment_approved; | |
$from = $comment->comment_author_email; | |
$to = get_comment($parent_id)->comment_author_email; | |
if (($parent_id != '') && ($spam_confirmed != 'spam') && $from != $to && $to != get_bloginfo('admin_email') ) { | |
$blog_name = get_option('blogname'); |
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
# WP Super Cache rules. | |
# Designed to be included from a 'wordpress-ms-...' configuration file. | |
set $cache_uri $uri; | |
# POST requests and urls with a query string should always go to PHP | |
if ($request_method = POST) { | |
set $cache_uri 'null cache'; | |
} |
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
<? | |
$mmc = memcache_init(); | |
/** | |
* 将分数转化为浮点数 | |
**/ | |
function Deci_Con($coordPart){ | |
$parts = explode('/', $coordPart);// 将 "/" 的两边数据转化为数组 | |
if (count($parts) <= 0) |
NewerOlder