//同时发布
$copyclassid=$add[copyclassid];
$cpcount=count($copyclassid);
if($cpcount)
{
$copyids=AddInfoToCopyInfo($add[classid],$id,$copyclassid,$userid,$username,$doselfinfo);
if($copyids)
{
UpdateInfoCopyids($add['classid'],$id,$copyids);
}
}
$urls=$infourl;//系统后台填写如 http://www.baidu.com/这样的格式用这个句
//$urls='http://www.baidu.com'.$infourl;//你的系统后台默认填写的/,这里需要你填写你的与名
$api = '站长后台获取的地址';
$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);
echo $result;
if($sql)
{
//返回地址