framework/library/ucclient.php

Constants

IN_UC

IN_UC = TRUE

UC_CLIENT_VERSION

UC_CLIENT_VERSION = '1.6.0'

UC_CLIENT_RELEASE

UC_CLIENT_RELEASE = '20110501'

UC_ROOT

UC_ROOT = substr(__FILE__, 0, -10)

UC_DATADIR

UC_DATADIR = UC_ROOT . './data/'

UC_DATAURL

UC_DATAURL = UC_API . '/data'

UC_API_FUNC

UC_API_FUNC = UC_CONNECT == 'mysql' ? 'uc_api_mysql' : 'uc_api_post'

MAGIC_QUOTES_GPC

MAGIC_QUOTES_GPC = get_magic_quotes_gpc()

Functions

uc_addslashes()

uc_addslashes(  $string,   $force,   $strip = FALSE) 

Parameters

$string
$force
$strip

daddslashes()

daddslashes(  $string,   $force) 

Parameters

$string
$force

uc_stripslashes()

uc_stripslashes(  $string) 

Parameters

$string

uc_api_post()

uc_api_post(  $module,   $action,   $arg = array()) 

Parameters

$module
$action
$arg

uc_api_requestdata()

uc_api_requestdata(  $module,   $action,   $arg = '',   $extra = '') 

Parameters

$module
$action
$arg
$extra

uc_api_url()

uc_api_url(  $module,   $action,   $arg = '',   $extra = '') 

Parameters

$module
$action
$arg
$extra

uc_api_input()

uc_api_input(  $data) 

Parameters

$data

uc_api_mysql()

uc_api_mysql(  $model,   $action,   $args = array()) 

Parameters

$model
$action
$args

uc_serialize()

uc_serialize(  $arr,   $htmlon) 

Parameters

$arr
$htmlon

uc_unserialize()

uc_unserialize(  $s) 

Parameters

$s

uc_authcode()

uc_authcode(  $string,   $operation = 'DECODE',   $key = '',   $expiry) 

Parameters

$string
$operation
$key
$expiry

uc_fopen2()

uc_fopen2(  $url,   $limit,   $post = '',   $cookie = '',   $bysocket = FALSE,   $ip = '',   $timeout = 15,   $block = TRUE) 

Parameters

$url
$limit
$post
$cookie
$bysocket
$ip
$timeout
$block

uc_fopen()

uc_fopen(  $url,   $limit,   $post = '',   $cookie = '',   $bysocket = FALSE,   $ip = '',   $timeout = 15,   $block = TRUE) 

Parameters

$url
$limit
$post
$cookie
$bysocket
$ip
$timeout
$block

uc_app_ls()

uc_app_ls() 

uc_feed_add()

uc_feed_add(  $icon,   $uid,   $username,   $title_template = '',   $title_data = '',   $body_template = '',   $body_data = '',   $body_general = '',   $target_ids = '',   $images = array()) 

Parameters

$icon
$uid
$username
$title_template
$title_data
$body_template
$body_data
$body_general
$target_ids
$images

uc_feed_get()

uc_feed_get(  $limit = 100,   $delete = TRUE) 

Parameters

$limit
$delete

uc_friend_add()

uc_friend_add(  $uid,   $friendid,   $comment = '') 

Parameters

$uid
$friendid
$comment

uc_friend_delete()

uc_friend_delete(  $uid,   $friendids) 

Parameters

$uid
$friendids

uc_friend_totalnum()

uc_friend_totalnum(  $uid,   $direction) 

Parameters

$uid
$direction

uc_friend_ls()

uc_friend_ls(  $uid,   $page = 1,   $pagesize = 10,   $totalnum = 10,   $direction) 

Parameters

$uid
$page
$pagesize
$totalnum
$direction

uc_user_register()

uc_user_register(  $username,   $password,   $email,   $questionid = '',   $answer = '',   $regip = '') 

Parameters

$username
$password
$email
$questionid
$answer
$regip

uc_user_login()

uc_user_login(  $username,   $password,   $isuid,   $checkques,   $questionid = '',   $answer = '') 

Parameters

$username
$password
$isuid
$checkques
$questionid
$answer

uc_user_synlogin()

uc_user_synlogin(  $uid) 

Parameters

$uid

uc_user_synlogout()

uc_user_synlogout() 

uc_user_edit()

uc_user_edit(  $username,   $oldpw,   $newpw,   $email,   $ignoreoldpw,   $questionid = '',   $answer = '') 

Parameters

$username
$oldpw
$newpw
$email
$ignoreoldpw
$questionid
$answer

uc_user_delete()

uc_user_delete(  $uid) 

Parameters

$uid

uc_user_deleteavatar()

uc_user_deleteavatar(  $uid) 

Parameters

$uid

uc_user_checkname()

uc_user_checkname(  $username) 

Parameters

$username

uc_user_checkemail()

uc_user_checkemail(  $email) 

Parameters

$email

uc_user_addprotected()

uc_user_addprotected(  $username,   $admin = '') 

Parameters

$username
$admin

uc_user_deleteprotected()

uc_user_deleteprotected(  $username) 

Parameters

$username

uc_user_getprotected()

uc_user_getprotected() 

uc_get_user()

uc_get_user(  $username,   $isuid) 

Parameters

$username
$isuid

uc_user_merge()

uc_user_merge(  $oldusername,   $newusername,   $uid,   $password,   $email) 

Parameters

$oldusername
$newusername
$uid
$password
$email

uc_user_merge_remove()

uc_user_merge_remove(  $username) 

Parameters

$username

uc_user_getcredit()

uc_user_getcredit(  $appid,   $uid,   $credit) 

Parameters

$appid
$uid
$credit

uc_pm_location()

uc_pm_location(  $uid,   $newpm) 

Parameters

$uid
$newpm

uc_pm_checknew()

uc_pm_checknew(  $uid,   $more) 

Parameters

$uid
$more

uc_pm_send()

uc_pm_send(  $fromuid,   $msgto,   $subject,   $message,   $instantly = 1,   $replypmid,   $isusername,   $type) 

Parameters

$fromuid
$msgto
$subject
$message
$instantly
$replypmid
$isusername
$type

uc_pm_delete()

uc_pm_delete(  $uid,   $folder,   $pmids) 

Parameters

$uid
$folder
$pmids

uc_pm_deleteuser()

uc_pm_deleteuser(  $uid,   $touids) 

Parameters

$uid
$touids

uc_pm_deletechat()

uc_pm_deletechat(  $uid,   $plids,   $type) 

Parameters

$uid
$plids
$type

uc_pm_readstatus()

uc_pm_readstatus(  $uid,   $uids,   $plids = array(),   $status) 

Parameters

$uid
$uids
$plids
$status

uc_pm_list()

uc_pm_list(  $uid,   $page = 1,   $pagesize = 10,   $folder = 'inbox',   $filter = 'newpm',   $msglen) 

Parameters

$uid
$page
$pagesize
$folder
$filter
$msglen

uc_pm_ignore()

uc_pm_ignore(  $uid) 

Parameters

$uid

uc_pm_view()

uc_pm_view(  $uid,   $pmid,   $touid,   $daterange = 1,   $page,   $pagesize = 10,   $type,   $isplid) 

Parameters

$uid
$pmid
$touid
$daterange
$page
$pagesize
$type
$isplid

uc_pm_view_num()

uc_pm_view_num(  $uid,   $touid,   $isplid) 

Parameters

$uid
$touid
$isplid

uc_pm_viewnode()

uc_pm_viewnode(  $uid,   $type,   $pmid) 

Parameters

$uid
$type
$pmid

uc_pm_chatpmmemberlist()

uc_pm_chatpmmemberlist(  $uid,   $plid) 

Parameters

$uid
$plid

uc_pm_kickchatpm()

uc_pm_kickchatpm(  $plid,   $uid,   $touid) 

Parameters

$plid
$uid
$touid

uc_pm_appendchatpm()

uc_pm_appendchatpm(  $plid,   $uid,   $touid) 

Parameters

$plid
$uid
$touid

uc_pm_blackls_get()

uc_pm_blackls_get(  $uid) 

Parameters

$uid

uc_pm_blackls_set()

uc_pm_blackls_set(  $uid,   $blackls) 

Parameters

$uid
$blackls

uc_pm_blackls_add()

uc_pm_blackls_add(  $uid,   $username) 

Parameters

$uid
$username

uc_pm_blackls_delete()

uc_pm_blackls_delete(  $uid,   $username) 

Parameters

$uid
$username

uc_domain_ls()

uc_domain_ls() 

uc_credit_exchange_request()

uc_credit_exchange_request(  $uid,   $from,   $to,   $toappid,   $amount) 

Parameters

$uid
$from
$to
$toappid
$amount

uc_tag_get()

uc_tag_get(  $tagname,   $nums) 

Parameters

$tagname
$nums

uc_avatar()

uc_avatar(  $uid,   $type = 'virtual',   $returnhtml = 1) 

Parameters

$uid
$type
$returnhtml

uc_mail_queue()

uc_mail_queue(  $uids,   $emails,   $subject,   $message,   $frommail = '',   $charset = 'gbk',   $htmlon = FALSE,   $level = 1) 

Parameters

$uids
$emails
$subject
$message
$frommail
$charset
$htmlon
$level

uc_check_avatar()

uc_check_avatar(  $uid,   $size = 'middle',   $type = 'virtual') 

Parameters

$uid
$size
$type

uc_check_version()

uc_check_version()