$feed = array();
$feed['icon'] = 'post';
$feed['title_template'] = '<b>{username} 参加了心理测试</b>';
$feed['title_data'] = array('username'=>$_SGLOBAL['supe_username');
$feed['body_template'] = '<b>{subject}</b><br>{message}';
$feed['body_data'] = array(
'subject' => "<a href=\"plug.php?plugname=testask&testid=".$testid."\">$testdata['test_title']</a>",
'message' => cutstr(strip_tags(preg_replace("/\[.+?\]/is", '', $testdata['test_subject'])), 150)
);
include_once(S_ROOT.'./uc_client/client.php');
uc_feed_add($feed['icon'], $_SGLOBAL['supe_uid'], $_SGLOBAL['supe_username'], $feed['title_template'], $feed['title_data'], $feed['body_template'], $feed['body_data'], '', '', '');
我在plug_testask.php加入以上代码,页面显示空白! |