转:http://jancy.iteye.com/blog/1260834
- function system_error($message, $show = true, $save = true, $halt = true) {
- ......
- }
-
- function updatesession($force = false) {
- ......
- }
-
- function dmicrotime() {
- ......
- }
-
- function setglobal($key , $value, $group = null) {
- ......
- }
-
- function getglobal($key, $group = null) {
- ......
- }
-
- function getgpc($k, $type=‘GP‘) {
- ......
- }
-
- function getuserbyuid($uid) {
- ......
- }
-
- function getuserprofile($field) {
- ......
- }
-
- function daddslashes($string, $force = 1) {
- ......
- }
-
- function authcode($string, $operation = ‘DECODE‘, $key = ‘‘, $expiry = 0) {
- ......
- }
-
- function dfsockopen($url, $limit = 0, $post = ‘‘, $cookie = ‘‘, $bysocket = FALSE, $ip = ‘‘, $timeout = 15, $block = TRUE) {
- ......
- }
-
- function dhtmlspecialchars($string) {
- ......
- }
-
- function dexit($message = ‘‘) {
- ......
- }
-
- function dheader($string, $replace = true, $http_response_code = 0) {
- ......
- }
-
- function dsetcookie($var, $value = ‘‘, $life = 0, $prefix = 1, $httponly = false) {
- ......
- }
-
- function getcookie($key) {
- ......
- }
-
- function fileext($filename) {
- ......
- }
-
- function checkmobile() {
- ......
- }
-
- function dstrpos($string, &$arr, $returnvalue = false) {
- ......
- }
-
- function isemail($email) {
- ......
- }
-
- function quescrypt($questionid, $answer) {
- ......
- }
-
- function random($length, $numeric = 0) {
- ......
- }
-
- function strexists($string, $find) {
- ......
- }
-
- function avatar($uid, $size = ‘middle‘, $returnsrc = FALSE, $real = FALSE, $static = FALSE, $ucenterurl = ‘‘) {
- ......
- }
-
- function lang($file, $langvar = null, $vars = array(), $default = null) {
- ......
- }
-
- function checktplrefresh($maintpl, $subtpl, $timecompare, $templateid, $cachefile, $tpldir, $file) {
- ......
- }
-
- function template($file, $templateid = 0, $tpldir = ‘‘, $gettplfile = 0, $primaltpl=‘‘) {
- ......
- }
-
- function modauthkey($id) {
- ......
- }
-
- function getcurrentnav() {
- ......
- }
-
- function loadcache($cachenames, $force = false) {
- ......
- }
-
- function cachedata($cachenames) {
- ......
- }
-
- function dgmdate($timestamp, $format = ‘dt‘, $timeoffset = ‘9999‘, $uformat = ‘‘) {
- ......
- }
-
- function dmktime($date) {
- ......
- }
-
- function save_syscache($cachename, $data) {
- ......
- }
-
- function block_get($parameter) {
- ......
- }
-
- function block_display($bid) {
- ......
- }
-
- function libfile($libname, $folder = ‘‘) {
- ......
- }
-
- function dstrlen($str) {
- ......
- }
-
- function cutstr($string, $length, $dot = ‘ ...‘) {
- ......
- }
-
- function aidencode($aid, $type = 0, $tid = 0) {
- ......
- }
-
- function getforumimg($aid, $nocache = 0, $w = 140, $h = 140, $type = ‘‘) {
- ......
- }
-
-
- function rewriteoutput($type, $returntype, $host) {
- ......
- }
-
- function mobilereplace($file, $replace) {
- ......
- }
-
- function mobileoutput() {
- ......
- }
-
- function output() {
- ......
- }
-
- function output_ajax() {
- ......
- }
-
- function runhooks() {
- ......
- }
-
- function hookscript($script, $hscript, $type = ‘funcs‘, $param = array(), $func = ‘‘) {
- ......
- }
-
- function pluginmodule($pluginid, $type) {
- ......
- }
-
- function updatecreditbyaction($action, $uid = 0, $extrasql = array(), $needle = ‘‘, $coef = 1, $update = 1, $fid = 0) {
- ......
- }
-
- function checklowerlimit($action, $uid = 0, $coef = 1, $fid = 0, $returnonly = 0) {
- ......
- }
-
- function batchupdatecredit($action, $uids = 0, $extrasql = array(), $coef = 1, $fid = 0) {
- ......
- }
-
-
- function updatemembercount($uids, $dataarr = array(), $checkgroup = true, $operation = ‘‘, $relatedid = 0, $ruletxt = ‘‘) {
- if(!emptyempty($uids) && (is_array($dataarr) && $dataarr)) {
- require_once libfile(‘function/credit‘);
- return _updatemembercount($uids, $dataarr, $checkgroup, $operation, $relatedid, $ruletxt);
- }
- return true;
- }
-
- function checkusergroup($uid = 0) {
- ......
- }
-
- function debuginfo() {
- ......
- }
-
- function getfocus_rand($module) {
- ......
- }
-
- function check_seccode($value, $idhash) {
- ......
- }
-
- function check_secqaa($value, $idhash) {
- ......
- }
-
- function adshow($parameter) {
- ......
- }
-
- function showmessage($message, $url_forward = ‘‘, $values = array(), $extraparam = array(), $custom = 0) {
- ......
- }
-
- function submitcheck($var, $allowget = 0, $seccodecheck = 0, $secqaacheck = 0) {
- ......
- }
-
- function multi($num, $perpage, $curpage, $mpurl, $maxpages = 0, $page = 10, $autogoto = FALSE, $simple = FALSE) {
- ......
- }
-
- function simplepage($num, $perpage, $curpage, $mpurl) {
- ......
- }
-
- function censor($message, $modword = NULL, $return = FALSE) {
- ......
- }
-
- function censormod($message) {
- ......
- }
-
- function dreferer($default = ‘‘) {
- ......
- }
-
- function ftpcmd($cmd, $arg1 = ‘‘) {
- ......
- }
-
- function diconv($str, $in_charset, $out_charset = CHARSET, $ForceTable = FALSE) {
- ......
- }
-
- function renum($array) {
- ......
- }
-
- function getonlinenum($fid = 0, $tid = 0) {
- ......
- }
-
- function sizecount($size) {
- ......
- }
-
- function writelog($file, $log) {
- ......
- }
-
- function getcolorpalette($colorid, $id, $background, $fun = ‘‘) {
- ......
- }
-
- function getstatus($status, $position) {
- ......
- }
-
- function setstatus($position, $value, $baseon = null) {
- ......
- }
-
- function notification_add($touid, $type, $note, $notevars = array(), $system = 0) {
- ......
- }
-
- function manage_addnotify($type, $from_num = 0, $langvar = array()) {
- ......
- }
-
- function sendpm($toid, $subject, $message, $fromid = ‘‘, $replypmid = 0, $isusername = 0, $type = 0) {
- ......
- }
-
- function getposttablebytid($tids, $primary = 0) {
- ......
- }
-
- function getposttable($tableid = 0, $prefix = false) {
- ......
- }
-
- function memory($cmd, $key=‘‘, $value=‘‘, $ttl = 0) {
- ......
- }
-
- function ipaccess($ip, $accesslist) {
- ......
- }
-
- function ipbanned($onlineip) {
- ......
- }
-
- function sysmessage($message) {
- ......
- }
-
- function forumperm($permstr, $groupid = 0) {
- ......
- }
-
- if(!function_exists(‘file_put_contents‘)) {
- if(!defined(‘FILE_APPEND‘)) define(‘FILE_APPEND‘, 8);
- function file_put_contents($filename, $data, $flag = 0) {
- $return = false;
- if($fp = @fopen($filename, $flag != FILE_APPEND ? ‘w‘ : ‘a‘)) {
- if($flag == LOCK_EX) @flock($fp, LOCK_EX);
- $return = fwrite($fp, is_array($data) ? implode(‘‘, $data) : $data);
- fclose($fp);
- }
- return $return;
- }
- }
-
- function checkperm($perm) {
- global $_G;
- return (emptyempty($_G[‘group‘][$perm])?‘‘:$_G[‘group‘][$perm]);
- }
-
- function periodscheck($periods, $showmessage = 1) {
- ......
- }
-
- function useractionlog($uid, $action) {
- ......
- }
-
- function getuseraction($var) {
- ......
- }
-
- function getuserapp($panel = 0) {
- ......
- }
-
- function getmyappiconpath($appid, $iconstatus=0) {
- ......
- }
-
- function get_url_list($message) {
- ......
- }
-
- function checkurl($allowposturl, &$message) {
- ......
- }
-
- function update_template_block($targettplname, $blocks) {
- ......
- }
-
- function getrelatedlink($extent) {
- ......
- }
-
- function connect_valid($params, &$connect_params) {
- ......
- }
-
- function connect_get_access_token($type = ‘USER‘) {
- ......
- }
-
- function connect_get_sig($params, $access_token) {
- ......
- }
-
- function getattachtablebyaid($aid) {
- ......
- }
-
- function getattachtableid($tid) {
- ......
- }
-
- function getattachtablebytid($tid) {
- ......
- }
-
- function getattachtablebypid($pid) {
- ......
- }
-
- function getattachnewaid($uid = 0) {
- ......
- }
-
- function get_seosetting($page, $data = array(), $defset = array()) {
- ......
- }
-
- function strreplace_strip_split($searchs, $replaces, $str) {
- ......
- }
-
- function get_title_page($navtitle, $page){
- if($page > 1) {
- ......
- }
-
- function getimgthumbname($fileStr, $extend=‘.thumb.jpg‘, $holdOldExt=true) {
- ......
- }
-
- function updatemoderate($idtype, $ids, $status = 0) {
- ......
- }
-
- function userappprompt() {
- ......
- }
discuz核心函数库function_core的函数注释
原文:http://www.cnblogs.com/actorai/p/4158865.html