www.gusucode.com > Destoon B2B仿淘宝电子商务网站 UTF8 v6.0源码程序 > destoon/api/oauth/sina/post.php

    <?php
require '../../../common.inc.php';
require 'init.inc.php';
$OAUTH[$site]['sync'] or exit;
$_token = get_cookie('sina_token');
if($_token) {
	require '../post.inc.php';
	$o = new SaeTClientV2(WB_AKEY, WB_SKEY, $_token);
	$rec = $thumb ? $o->upload($content, $thumb) : $o->update($content);
	#log_write($rec, 'wb', 1);
	if(isset($rec['error_code']) && $rec['error_code'] > 0) {
		//fail
	} else {
		//success
	}
}
?>