@@ -265,25 +265,6 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||
$artUrl = MakeArt($arcID,true); | |||
if($artUrl=='') $artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | |||
#api{{ | |||
if(defined('UC_API') && @include_once DEDEROOT.'/api/uc.func.php') | |||
{ | |||
//推送事件 | |||
$feed['icon'] = 'thread'; | |||
$feed['title_template'] = '<b>{username} 在网站发布了一篇图集</b>'; | |||
$feed['title_data'] = array('username' => $cfg_ml->M_UserName); | |||
$feed['body_template'] = '<b>{subject}</b><br>{message}'; | |||
$url = !strstr($artUrl,'http://') ? ($cfg_basehost.$artUrl) : $artUrl; | |||
$feed['body_data'] = array('subject' => "<a href=\"".$url."\">$title</a>", 'message' => cn_substr(strip_tags(preg_replace("/\[.+?\]/is", '', $description)), 150)); | |||
$feed['images'][] = array('url' => $cfg_basehost.'/images/scores.gif', 'link'=> $cfg_basehost); | |||
uc_feed_note($cfg_ml->M_LoginID,$feed); | |||
$row = $dsql->GetOne("SELECT `scores`,`userid` FROM `#@__member` WHERE `mid`='".$cfg_ml->M_ID."' AND `matt`<>10"); | |||
uc_credit_note($row['userid'], $cfg_sendarc_scores); | |||
} | |||
#/aip}} | |||
//会员动态记录 | |||
$cfg_ml->RecordFeeds('add', $title, $description, $arcID); | |||
@@ -166,24 +166,6 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||
$artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | |||
} | |||
#api{{ | |||
if(defined('UC_API') && @include_once DEDEROOT.'/api/uc.func.php') | |||
{ | |||
//推送事件 | |||
$feed['icon'] = 'thread'; | |||
$feed['title_template'] = '<b>{username} 在网站发布了一篇内容</b>'; | |||
$feed['title_data'] = array('username' => $cfg_ml->M_UserName); | |||
$feed['body_template'] = '<b>{subject}</b><br>{message}'; | |||
$url = !strstr($artUrl,'http://') ? ($cfg_basehost.$artUrl) : $artUrl; | |||
$feed['body_data'] = array('subject' => "<a href=\"".$url."\">$title</a>", 'message' => cn_substr(strip_tags(preg_replace("/\[.+?\]/is", '', $description)), 150)); | |||
$feed['images'][] = array('url' => $cfg_basehost.'/images/scores.gif', 'link'=> $cfg_basehost); | |||
uc_feed_note($cfg_ml->M_LoginID,$feed); | |||
//同步积分 | |||
$row = $dsql->GetOne("SELECT `scores`,`userid` FROM `#@__member` WHERE `mid`='".$cfg_ml->M_ID."'"); | |||
uc_credit_note($row['userid'],$cfg_sendarc_scores); | |||
} | |||
#/aip}} | |||
//会员动态记录 | |||
$cfg_ml->RecordFeeds('add', $title, $description, $arcID); | |||
@@ -223,24 +223,6 @@ else if($dopost=='save') | |||
$artUrl = MakeArt($arcID,true); | |||
if($artUrl=='') $artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | |||
#api{{ | |||
if(defined('UC_API') && @include_once DEDEROOT.'/api/uc.func.php') | |||
{ | |||
//推送事件 | |||
$feed['icon'] = 'thread'; | |||
$feed['title_template'] = '<b>{username} 在网站发布了一篇内容</b>'; | |||
$feed['title_data'] = array('username' => $cfg_ml->M_UserName); | |||
$feed['body_template'] = '<b>{subject}</b><br>{message}'; | |||
$url = !strstr($artUrl,'http://') ? ($cfg_basehost.$artUrl) : $artUrl; | |||
$feed['body_data'] = array('subject' => "<a href=\"".$url."\">$title</a>", 'message' => cn_substr(strip_tags(preg_replace("/\[.+?\]/is", '', $description)), 150)); | |||
$feed['images'][] = array('url' => $cfg_basehost.'/images/scores.gif', 'link'=> $cfg_basehost); | |||
uc_feed_note($cfg_ml->M_LoginID,$feed); | |||
//同步积分 | |||
$row = $dsql->GetOne("SELECT `scores`,`userid` FROM `#@__member` WHERE `mid`='".$cfg_ml->M_ID."'"); | |||
uc_credit_note($row['userid'],$cfg_sendarc_scores); | |||
} | |||
#/aip}} | |||
//会员动态记录 | |||
$cfg_ml->RecordFeeds('add', $title, $description, $arcID); | |||
@@ -155,25 +155,6 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||
InsertTags($tags, $arcID); | |||
$artUrl = MakeArt($arcID, TRUE); | |||
if($artUrl=='') $artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | |||
#api{{ | |||
if(defined('UC_API') && @include_once DEDEROOT.'/api/uc.func.php') | |||
{ | |||
//推送事件 | |||
$feed['icon'] = 'thread'; | |||
$feed['title_template'] = '<b>{username} 在网站发布了一篇文章</b>'; | |||
$feed['title_data'] = array('username' => $cfg_ml->M_UserName); | |||
$feed['body_template'] = '<b>{subject}</b><br>{message}'; | |||
$url = !strstr($artUrl,'http://') ? ($cfg_basehost.$artUrl) : $artUrl; | |||
$feed['body_data'] = array('subject' => "<a href=\"".$url."\">$title</a>", 'message' => cn_substr(strip_tags(preg_replace("/\[.+?\]/is", '', $description)), 150)); | |||
$feed['images'][] = array('url' => $cfg_basehost.'/images/scores.gif', 'link'=> $cfg_basehost); | |||
uc_feed_note($cfg_ml->M_LoginID,$feed); | |||
$row = $dsql->GetOne("SELECT `scores`,`userid` FROM `#@__member` WHERE `mid`='".$cfg_ml->M_ID."' AND `matt`<>10"); | |||
uc_credit_note($row['userid'], $cfg_sendarc_scores); | |||
} | |||
#/aip}} | |||
//会员动态记录 | |||
$cfg_ml->RecordFeeds('add', $title, $description, $arcID); | |||
@@ -222,23 +222,6 @@ VALUES ('$arcID','$typeid','$sortrank','$flag','$ismake','$channelid','$arcrank' | |||
{ | |||
$artUrl = $cfg_phpurl."/view.php?aid=$arcID"; | |||
} | |||
#api{{ | |||
if(defined('UC_API') && @include_once DEDEROOT.'/api/uc.func.php') | |||
{ | |||
//推送事件 | |||
$feed['icon'] = 'thread'; | |||
$feed['title_template'] = '<b>{username} 在网站共享了一软件</b>'; | |||
$feed['title_data'] = array('username' => $cfg_ml->M_UserName); | |||
$feed['body_template'] = '<b>{subject}</b><br>{message}'; | |||
$url = !strstr($artUrl,'http://') ? ($cfg_basehost.$artUrl) : $artUrl; | |||
$feed['body_data'] = array('subject' => "<a href=\"".$url."\">$title</a>", 'message' => cn_substr(strip_tags(preg_replace("/\[.+?\]/is", '', $description)), 150)); | |||
$feed['images'][] = array('url' => $cfg_basehost.'/images/scores.gif', 'link'=> $cfg_basehost); | |||
uc_feed_note($cfg_ml->M_LoginID,$feed); | |||
//同步积分 | |||
uc_credit_note($cfg_ml->M_LoginID, $cfg_sendarc_scores); | |||
} | |||
#/aip}} | |||
//会员动态记录 | |||
$cfg_ml->RecordFeeds('addsoft',$title,$description,$arcID); | |||
@@ -289,25 +289,6 @@ else if($action=='send') | |||
//统计用户发出的评论 | |||
if($cfg_ml->M_ID > 0) | |||
{ | |||
#api{{ | |||
if(defined('UC_API') && @include_once DEDEROOT.'/api/uc.func.php') | |||
{ | |||
//同步积分 | |||
uc_credit_note($cfg_ml->M_LoginID, $cfg_sendfb_scores); | |||
//推送事件 | |||
$arcRow = GetOneArchive($aid); | |||
$feed['icon'] = 'thread'; | |||
$feed['title_template'] = '<b>{username} 在网站发表了评论</b>'; | |||
$feed['title_data'] = array('username' => $cfg_ml->M_UserName); | |||
$feed['body_template'] = '<b>{subject}</b><br>{message}'; | |||
$url = !strstr($arcRow['arcurl'],'http://') ? ($cfg_basehost.$arcRow['arcurl']) : $arcRow['arcurl']; | |||
$feed['body_data'] = array('subject' => "<a href=\"".$url."\">$arcRow[arctitle]</a>", 'message' => cn_substr(strip_tags(preg_replace("/\[.+?\]/is", '', $msg)), 150)); | |||
$feed['images'][] = array('url' => $cfg_basehost.'/images/scores.gif', 'link'=> $cfg_basehost); | |||
uc_feed_note($cfg_ml->M_LoginID,$feed); unset($arcRow); | |||
} | |||
#/aip}} | |||
$row = $dsql->GetOne("SELECT COUNT(*) AS nums FROM `#@__feedback` WHERE `mid`='".$cfg_ml->M_ID."'"); | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__member_tj` SET `feedback`='$row[nums]' WHERE `mid`='".$cfg_ml->M_ID."'"); | |||
} | |||
@@ -176,24 +176,6 @@ else if($dopost=='send') | |||
//给用户增加积分 | |||
if($cfg_ml->M_ID > 0) | |||
{ | |||
#api{{ | |||
if(defined('UC_API') && @include_once DEDEROOT.'/api/uc.func.php') | |||
{ | |||
//同步积分 | |||
uc_credit_note($cfg_ml->M_LoginID, $cfg_sendfb_scores); | |||
//推送事件 | |||
$arcRow = GetOneArchive($aid); | |||
$feed['icon'] = 'thread'; | |||
$feed['title_template'] = '<b>{username} 在网站发表了评论</b>'; | |||
$feed['title_data'] = array('username' => $cfg_ml->M_UserName); | |||
$feed['body_template'] = '<b>{subject}</b><br>{message}'; | |||
$url = !strstr($arcRow['arcurl'],'http://') ? ($cfg_basehost.$arcRow['arcurl']) : $arcRow['arcurl']; | |||
$feed['body_data'] = array('subject' => "<a href=\"".$url."\">$arcRow[arctitle]</a>", 'message' => cn_substr(strip_tags(preg_replace("/\[.+?\]/is", '', $msg)), 150)); | |||
$feed['images'][] = array('url' => $cfg_basehost.'/images/scores.gif', 'link'=> $cfg_basehost); | |||
uc_feed_note($cfg_ml->M_LoginID,$feed); unset($arcRow); | |||
} | |||
#/aip}} | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__member` set scores=scores+{$cfg_sendfb_scores} WHERE mid='{$cfg_ml->M_ID}' "); | |||
$row = $dsql->GetOne("SELECT COUNT(*) AS nums FROM `#@__feedback` WHERE `mid`='".$cfg_ml->M_ID."'"); | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__member_tj` SET `feedback`='$row[nums]' WHERE `mid`='".$cfg_ml->M_ID."'"); | |||