




已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
悉uchome里一些自带的通用方法可以使我们在对uchome二次开发或制作uchome插件的时候更 加顺心应手。因为这些方法都是 uchome里早就定义好了的全局函数,在调用的时候只需要在文件头部加上function_common.php这个文件的引用就可以方便的调用这些方 法了。但是如果你连最基本的php知识都不了解的话,那就需要慎用这些方法了。/SQL ADDSLASHESfunction saddslashes($string) return $string;/取消HTML代码function shtmlspecialchars($string) return $string;/字符串解密加密function authcode($string, $operation = DECODE, $key = ”, $expiry = 0)/清空 cookiefunction clearcookie()/cookie设置function ssetcookie($var, $value, $life=0)/数据库连接function dbconnect()/ 获取在线IPfunction getonlineip($format=0)/判断当前用户登录状态function checkauth()/获取用户app列表function getuserapp($uid=0)/获取到表 名function tname($name)/对话框function showmessage($msgkey, $url_forward=”, $second=1, $values=array()/判断提交是否正确function submitcheck($var)/添加数据function inserttable($tablename, $insertsqlarr, $returnid=0, $replace = false, $silent=0) return insert_id;/更新数据function updatetable($tablename, $setsqlarr, $wheresqlarr, $silent=0)/获取用户空间信息function getspace($key, $indextype=uid)/获取当前用户信息function getmember()/检查隐私function ckprivacy($type, $feedmode=0)/检查APP隐私function app_ckprivacy($privacy)/获取用户组function getgroupid($credit, $gid=0)/检查权限function checkperm($permtype)/写运行日志function runlog($file, $log, $halt=0)/获取字符串function getstr($string, $length, $in_slashes=0, $out_slashes=0, $censor=0, $bbcode=0, $html=0)/ 时间格式化function sgmdate($dateformat, $timestamp=”, $format=0)/字 符串时间化function sstrtotime($string)/分页function multi($num, $perpage, $curpage, $mpurl)/obfunction obclean()/模板调用function template($name)/子模板更新检查function subtplcheck($subfiles, $mktime, $tpl)/模块function block($param)/获取数目function getcount($tablename, $wherearr, $get=COUNT(*)/调整输出function ob_out()/rewrite链接function rewrite_url($pre, $para)/外 链function iframe_url($url)/处理搜索关键字function stripsearchkey($string)/是否屏蔽二级域名function isholddomain($domain)/连接字符function simplode($ids)/显示进程处 理时间function debuginfo()/格式化大小函数function formatsize($size)/获取文件内容function sreadfile($filename)/写 入文件function swritefile($filename, $writetext, $openmod=w)/产 生随机字符function random($length, $numeric = 0)/判断字符串是否存在function strexists($haystack, $needle)/获取数据function data_get($var, $isarray=0)/更新数据function data_set($var, $datavalue, $clean=0)/检查站点是否关闭function checkclose()/站点链接function getsiteurl()/获取文件名后缀function fileext($filename)/积分function creditrule($mode, $type)/更新积分function updatespacestatus($creditmode, $optype)/去掉slasshfunction sstripslashes($string)/显示广告function adshow($pagetype)/编 码转换function siconv($str, $out_charset, $in_charset=”)/获取用户数据function getpassport($username, $password)/用户操作时间间隔检查function interval_check($type)/处理上传图片连接function mkpicurl($pic, $thumb=1)/处理网络图片链接function getpicurl($picurl, $maxlenth=200)/处理积分星星function getstar($credit)/处理分页function smulti($start, $perpage, $count, $url, $ajaxdiv=”)/获取好友状态function getfriendstatus($uid, $fuid)/重新组建function renum($array)/ 检查定向function ckfriend($invalue)/整理feedfunction mkfeed($feed, $actors=array()/整理分享function mkshare($share)/ip 访问允许function ipaccess($ipaccess)/ip访问禁止function ipbanned($ipbanned)/检查startfunction ckstart($start, $perpage)/处理头像function avatar($uid, $size=small)/检查是否 登录function checklogin()/获得前台语言function lang($key, $vars=array()/获得后台语言function cplang($key, $vars=array()/ 语言替换function lang_replace($text, $vars)/获得用户组名function getfriendgroup()/截取链接function sub_url($url, $length)/获取 用户名function realname_set($uid, $username, $name=”, $namestatus=0)/ 获取实名function realname_get()/添加窗口标题function window_set($title, $url, $icon=”)/更新用户配置function update_space_setting()/群组信息function getmtag($id)/取数组中的随 机个function sarray_rand($arr, $num)/获得用户唯一串function space_key($space)/产生form防伪码function formhash() function_cache.php 引用:/更新配置文件function config_cache($updatedata=true)/更新用户组CACHEfunction usergroup_cache()/更新用户栏目缓存function profilefield_cache()/ 更新群组栏目缓存function profield_cache()/更新词语屏蔽function censor_cache()/更新积分规则function creditrule_cache()/更新广告缓 存function ad_cache()/更新用户向导任务function task_cache()/ 更新模块function block_cache()/更新模板文件function tpl_cache()/ 更新模块缓存function block_data_cache()/更新应用名function app_cache()/递归清空目录function deltreedir($dir)/数组转换成字串function arrayeval($array, $level = 0)/写入function cache_write($name, $var, $values)function_cp.php 引用:/保存图片function pic_save($FILE, $albumid, $title ,$tid = 0)/数据流保存,所有数据均为存放相册的所以写入的 数据一定只能是图片function stream_save($strdata, $albumid = 0, $fileext = jpg)/创建相册function album_creat($arr)/获取上传路径function getfilepath($fileext, $mkdir=false)/获取目录function sreaddir($dir, $extarr=array()/检查邮箱是否有效function isemail($email)/获取相册封面图片function getalbumpic($uid, $id)/ 获取个人分类function getclassarr($uid)/获取相册function getalbums($uid)/事件发布function feed_add($icon, $title_template=”, $title_data=array(), $body_template=”, $body_data=array(),$body_general=”, $images=array(), $image_links=array(), $target_ids=”, $friend=”, $appid=UC_APPID,$returnid=0, $system=0)/分享发布function share_add($type, $title_template, $body_template, $body_data, $body_general, $image=”,$image_link=”)/ 通知function notification_add($uid, $type, $note, $returnid=0)/ 更新好友状态function friend_update($uid, $username, $fuid, $fusername, $op=add, $gid=0)/更新好友缓存function friend_cache($uid)/检查 验证码function ckseccode($seccode)/相册产生feedfunction album_feed($albumid)/更新隐私设置function privacy_update()/邀请 好友function invite_update($inviteid, $uid, $username, $m_uid, $m_username)/获得邀请function invite_get($uid, $code)/实名认证function ckrealname($type)/邮件队列function addmailcron($touid, $email, $subject, $message=”, $mailtype=”)/检查头像是否上传function ckavatar($uid)/检查黑名单function isblacklist($to_uid)/管理后台通用方法function_admincp.php/ 获取限制条件function getwheres($intkeys, $strkeys, $randkeys, $likekeys, $pre=”)/获取排序function getorders($alloworders, $default, $pre=”)/对话框function cpmessage($msgkey, $url_forward=”, $second=1, $values=array()/检查是否操作创始人function ckfounder($uid)/生成站点keyfunction mksitekey()/统计数据function getstatistics()/日志function admincp_log()function_op.php /帖子操作方法/合并tag
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中央废墟清缴管理办法
- 贵金属交易管理办法
- 《水利工程管理办法》
- 设计后评估管理办法
- 管理办法算不算制度
- 上门收费人员管理办法
- 磷矿石防盗管理办法
- 仓头中学餐馆管理办法
- 素数分析可再生能源-洞察及研究
- 网格员经费管理办法
- 电池及电池系统维修保养师国家职业标准(2024年)
- 软件可行性报告范文
- 脑转移瘤的治疗进展
- 临床成人失禁相关性皮炎的预防与护理团体标准解读
- 脚手架工安全技术交底(完整版)
- DB14-T 3095-2024 致密砂岩气开发排采水回注技术规范
- 接触网运行与检修 课件全套 薛艳红 第1-9章 电气化铁道概述-高速铁路接触网精测精修
- 2024-2030年中国抗衰老产品和服务行业市场发展趋势与前景展望战略研究报告
- 输变电工程质量通病防治手册
- 酒店实美学 课件全套 杨卉 第1-13章 酒店美学概述-酒店服务之美
- 2024年秋季新人教版九年级上册化学全册教案
评论
0/150
提交评论