hdwz 大佬有话说 : 2019-12-18 12:03:00
PHP大佬们来看下这几句代码有无可能是 马
本帖最后由 hdwz 于 2019-12-18 12:57 编辑
if (is_user_logged_in()) {
$f = get_current_user_id();
$d = get_user_meta($f, ‘like-posts’, true);
if ($d) {
$d = unserialize($d);
$e = in_array($b, $d);
}
}
function hui_is_my_like($pid=”){
if( !is_user_logged_in() ) return false;
$pid = $pid ? $pid : get_the_ID();
$likes = get_user_meta( get_current_user_id(), ‘like-posts’, true );
$likes = $likes ? unserialize($likes) : array();
return in_array($pid, $likes) ? true : false;
}
function tb_xzh_post_to_baidu() {
if( _hui(‘xzh_on’) && _hui(‘xzh_appid’) && _hui(‘xzh_post_on’) && _hui(‘xzh_post_token’) ){
global $post;
$plink = get_permalink($post->ID);
if( !$plink || get_post_meta($post->ID, ‘xzh_tui_back’, true) ){
return false;
}
$isoriginal = get_post_meta($post->ID, ‘is_original’, true);
$urls = array();
$urls[] = $plink;
$api = ‘http://data.zz.baidu.com/urls?appid=’. _hui(‘xzh_appid’) .’&token=’. _hui(‘xzh_post_token’) .’&type=realtime’;
if( $isoriginal ){
$api .= ‘,original’;
}
$ch = curl_init();
$options =array(
CURLOPT_URL => $api,
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => implode("n", $urls),
CURLOPT_HTTPHEADER => array(‘Content-Type: text/plain’),
);
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
$result = json_decode($result);
$result_text = ‘成功’;
if( $result->error ){
$result_text = ‘失败 ‘.$result->message;
}
update_post_meta($post->ID, ‘xzh_tui_back’, $result_text);
}
}
朕的大清完了? 大佬有话说 : 2019-12-18 12:04:32
内容太少,看不出来
逸笙 大佬有话说 : 2019-12-18 12:27:33
这几句不是。curl_init跟exec中间的句子呢?什么也没干。
.host. 大佬有话说 : 2019-12-18 12:49:16
大佬帖的内容中,变量都是来无踪去无影。
辨不出是不是马
Xuzi 大佬有话说 : 2019-12-18 13:56:12
获取用户信息和百度主动推送,单这些看不出有马
HaoLan 大佬有话说 : 2019-12-18 13:58:22
这怎么就是马了。。疑心太重了吧
royaso 大佬有话说 : 2019-12-18 14:10:50
这就是个百度收录推送….
半世烟尘 大佬有话说 : 2019-12-18 14:20:26
不是, 下一个yc022t
playbear 大佬有话说 : 2019-12-18 14:21:21
熊掌号主动推送