} else { exit(W::response($xml, $data)); } } else { if (rand(1, 10) == 6) { $data = randEngine(); if (is_array($data)) { if ($data['musicurl']) { exit(W::response($xml, $data, 'music')); } exit(W::response($xml, $data, 'news')); } else { exit(W::response($xml, $data)); } } else { $simiword = simsimi($content); if ($simiword == '404') { $data = randEngine(); if (is_array($data)) { if ($data['musicurl']) { exit(W::response($xml, $data, 'music')); } exit(W::response($xml, $data, 'news')); } else { exit(W::response($xml, $data)); } } exit(W::response($xml, $simiword)); } } }
exit(W::response($xml, $data, 'news')); break; case 17: $res = wooyun(); $data = array(array('title' => 'wooyun.org 最新提交漏洞', 'cover' => $web . '/img/wooyun.png')); for ($i = 0; $i < count($data); $i++) { if ($res[$i]) { array_push($data, array('title' => $res[$i]['title'], 'note' => $res[$i]['description'], 'link' => $res[$i]['link'])); } } exit(W::response($xml, $data, 'news')); break; case 18: $res = sec0x50(); $data = array(array('title' => 'Web安全手册,专注Web安全', 'cover' => $web . '/img/0x50sec.png')); for ($i = 0; $i < count($data); $i++) { if ($res[$i]) { array_push($data, array('title' => $res[$i]['title'], 'note' => $res[$i]['description'], 'link' => $res[$i]['link'])); } } exit(W::response($xml, $data, 'news')); break; default: break; } } else { //exit(W::response($xml,simsimi($content))); exit(W::response($xml, xiaodoubi($content))); } } }
} else { exit(W::response($xml, $data)); } } else { if (rand(1, 8) == 6) { switch (rand(1, 4)) { case 1: exit(W::response($xml, "聊了这么久小u给你讲个笑话吧:\n" . jokes())); break; case 2: $news = baiduNews(); $data = array(array('title' => '关心国家大事,了解天下奇谈,小u给你播报新闻啦!')); for ($i = 0; $i < 5; $i++) { array_push($data, array('title' => $news[title][$i] . "\n" . '------------------------------------------', 'note' => $news[resrc][$i], 'link' => $news[url][$i])); } exit(W::response($xml, $data, 'news')); break; case 3: exit(W::response($xml, "四六级没考过吧孩子,还是乖乖跟我学英语,嗯哼:\n" . en_sentenceAPI() . "\n哎哟,你还可以发英语单词考我哦,没有我不知道的,嘻嘻/:B-)")); break; case 4: exit(W::response($xml, "妹子爆个照吧,小u想看看嘛,看了会说话嘛/:8*")); break; default: break; } } else { exit(W::response($xml, simsimi($content))); } } }