日期:2014-05-16  浏览次数:20511 次

求解密
由于源码有点长,我传到百度盘了http://pan.baidu.com/s/1o6wLWTW
------解决方案--------------------
<?php
include("config.php");
$con=mysql_connect($host_ip,$host_name,$host_pw);
mysql_select_db($host_table,$con);
if(!$con)
{
echo '<font color="red">数据库链接出错</font>';
die;
}
function cl($get_url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL,$get_url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$pp=curl_exec($ch);
curl_close($ch);
return($pp);
}
function ubb($Text) {
$Text=htmlspecialchars($Text, ENT_QUOTES);
        $Text=ereg_replace("\[br\]","<br />",$Text);
        $Text=nl2br($Text);
        $Text=stripslashes($Text);
$Text=str_replace("
",'<br>',$Text);
        $Text=preg_replace("/\\t/is"," ",$Text);
        $Text=preg_replace("/\[url\](http:\/\/.+?)\[\/url\]/is","<a href=\"\\1\" target=\"new\"><u>\\1</u></a>",$Text);
        $Text=preg_replace("/\[url\](.+?)\[\/url\]/is","<a href=\"http://\\1\" target=\"new\"><u>\\1</u></a>",$Text);
        $Text=preg_replace("/\[url=(http:\/\/.+?)\](.+?)\[\/url\]/is","<a href=\"\\1\" target=\"new\"><u>\\2</u></a>",$Text);
        $Text=preg_replace("/\[url=(.+?)\](.+?)\[\/url\]/is","<a href=\"http://\\1\" target=\"new\"><u>\\2</u></a>",$Text);
        $Text=preg_replace("/\[color=(.+?)\](.+?)\[\/color\]/is","<font color=\"\\1\">\\2</font>",$Text);
        $Text=preg_replace("/\[font=(.+?)\](.+?)\[\/font\]/is","<font face=\"\\1\">\\2</font>",$Text);
        $Text=preg_replace("/\[email=(.+?)\](.+?)\[\/email\]/is","<a href=\"mailto:\\1\"><u>\\2</u></a>",$Text);
        $Text=preg_replace("/\[email\](.+?)\[\/email\]/is","<a href=\"mailto:\\1\"><u>\\1</u></a>",$Text);
        $Text=preg_replace("/\[i\](.+?)\[\/i\]/is","<i>\\1</i>",$Text);
        $Text=preg_replace("/\[u\](.+?)\[\/u\]/is","<u>\\1</u>",$Text);
        $Text=preg_replace("/\[b\](.+?)\[\/b\]/is","<b>\\1</b>",$Text);
        return $Text;
   }
function send($phone,$msg){
$cn=curl_init();
curl_setopt($cn,CURLOPT_URL,"http://dp.sina.cn/dpool/tools/ctripflight/msg.php?vt=1");
curl_setopt($cn,CURLOPT_USERAGENT,"  Mozilla/ 5.0(Linux;U;2.2.1;Zh_cn;Desire HD;480*800;)AppleWebKit/528.5  (KHTML) Version/3.1.2/UCWEB7.6.0.75/ 139/999");
curl_setopt($cn,CURLOPT_POST,1);
curl_setopt($cn,CURLOPT_POSTFIELDS,'phone='.$phone.'&msg='.$msg);
curl_setopt($cn,CURLOPT_RETURNTRANSFER,1);
$content=curl_exec($cn);
curl_close($cn);
return $content;
}
function md()
{
$data=mysql_fetch_array(mysql_query("SELECT * FROM baqi_conf