TimeLag() TimeLag( $startdate, int $enddate = -1) : mixed Parameters $startdate 开始时间 int $enddate 结束时间 返回两者之间相差多少秒 Returns mixed —
xiaochu_en() xiaochu_en(mixed $string, mixed $skey = 'xiaochuyun') : string Parameters mixed $string mixed $skey Returns string — 数据加密函数
xiaochu_de() xiaochu_de( $string, string $skey = 'xiaochuyun') : false|string Parameters $string string $skey Returns false|string — 数据解密函数
SecurityFiltering() SecurityFiltering( $str_string) : mixed Parameters $str_string Returns mixed — 安全过滤
daddslashes() daddslashes( $string) : array|mixed|string Parameters $string Returns array|mixed|string — 数据安全过滤
DirCopy() DirCopy(string $source, string $dest, bool $force = true) : mixed Parameters string $source //源文件,填写绝对路径 string $dest //目标路径,填写绝对路径 bool $force //开启会每次强制覆盖原文件,false不进行覆盖,存在文件不做处理 实现文件目录移动,拷贝等,返回被拷贝的文件数, Returns mixed —
for_dir() for_dir( $dir, $exclude = [], $str = false, $type = 1) : array Parameters $dir //目录地址 $exclude //要排除的文件 $str //需要筛选的字符串 $type //1=排除,2=包含 Returns array — 获取文件夹下的文件夹列表,1层 获取目录列表 获取文件列表
FileUploadTransfer() FileUploadTransfer( $url, array $data = array(), array $files = array()) : mixed Parameters $url 接口地址 array $data 表单数据 array $files 表单文件 $_FILES 文件上传中转【暂时废弃】 Returns mixed —
get_url_content() get_url_content( $url, mixed $post) : mixed Parameters $url mixed $post Returns mixed — 请求转发【暂时废弃】
get_curl_time() get_curl_time( $url, $time = 60) : bool|string Parameters $url $time Returns bool|string —
get_curl() get_curl( $url, $post, $referer, $cookie, $header, $ua, $nobaody) : bool|string Parameters $url $post $referer $cookie $header $ua $nobaody Returns bool|string — 发起curl请求
show_msg() show_msg( $title = '温馨提示', $content = '这是内容', $type = 3, $url = false, $true = true, mixed $w = 42, mixed $h = 42) : never Parameters $title $content $type $url $true mixed $w mixed $h Returns never — type=1 成功,2警告,3正常,4失败 信息提示模块
userlog() userlog( $name, $content, $uid, $count) : bool Parameters $name //日志名称 $content //日志内容 $uid //用户ID $count //相关数量 Returns bool — 用户日志写入
href() href( $type = 1) : mixed|string Parameters $type //1 仅返回域名,其他返回http(s):// Returns mixed|string — 获取当前站点域名信息
getCity() getCity(string $ip = '', mixed $type = 1) : bool|mixed|string Parameters string $ip mixed $type Returns bool|mixed|string — 获取用户IP详细地址!【暂未用到,功能正常】 获取IP所在地
substr_cut() substr_cut(mixed $user_name, mixed $head, mixed $foot) : string 只保留字符串首尾字符,隐藏中间用*代替(两个字符时只显示第一个) Parameters mixed $user_name mixed $head mixed $foot Returns string — 格式化后的姓名
HomecachingAdd() HomecachingAdd( $act = '', $cs = [], $Data = []) : mixed Parameters $act 字段名称 $cs 判断参数 $Data 数据 数据存储,只可存储json数据 Returns mixed —
HomecachingVerify() HomecachingVerify( $act, $cs = [], mixed $time = false) : mixed Parameters $act //字段名称 $cs //判断参数 数据验证,文件缓存模块 mixed $time Returns mixed —
HomecachingUnlink() HomecachingUnlink( $act, $cs = []) : bool Parameters $act $cs Returns bool — 删除数据缓存
ImageUrl() ImageUrl(string $str = '', bool $Url = false) : array|string Parameters string $str // 本地图片地址 URL本地连接转换为外链 /assets/img/ path bool $Url Returns array|string —
deep_in_array() deep_in_array( $value, $array, mixed $key = 'id') : bool Parameters $value $array mixed $key Returns bool — 检测多维数组内是否包含某个键值
test() test(array $arr, string $msg = '', bool $Data = false) : mixed Parameters array $arr string $msg bool $Data 参数验证 Returns mixed —
mkdirs() mkdirs( $dir, int $mode = 0777) : bool Parameters $dir int $mode Returns bool — 检测目录是否存在,不存在则创建
is_https() is_https(bool $type = true, int $ts = 1) : mixed 是否为https Parameters bool $type //默认验证 int $ts //1 返回:// 其他不返回:// Returns mixed —
getSubstr() getSubstr( $str, $leftStr, $rightStr) : false|string Parameters $str $leftStr $rightStr Returns false|string — 取中间值
QR_Code() QR_Code(int $Type = 1, string $url = '请将text参数填写完整,可传递域名,文字等信息!', int $w = 6, int $m = 1, bool $outfile = false, bool $outfiles = false) : mixed Parameters int $Type 1=返回二维码图片地址,2=输出图片或生成图片 string $url //内容 int $w //宽高 int $m //间距 bool $outfile bool $outfiles 二维码生成方法 Returns mixed —
TemConf() TemConf( $name, mixed $type = 1, mixed $state = 1) : mixed Parameters $name 模板配置读取 mixed $type mixed $state Returns mixed —
SonCallbackSet() SonCallbackSet( $Data, $type) : mixed Parameters $Data $type 数据回调扩展集 Returns mixed —
PriceIncreaseAccordCommonRule() PriceIncreaseAccordCommonRule( $Money, $SingleRule, $Level, $Type = 1) : mixed Parameters $Money //成本 $SingleRule //规则编号 $Level //用户等级 $Type //1=价格,2=积分 商品规则加价 Returns mixed —
CheckRemoteImage() CheckRemoteImage( $imageUrl) : bool Parameters $imageUrl Returns bool — 检查远程图片是否存在!
DownloadImage() DownloadImage( $remoteImageUrl, $localImagePath) : bool Parameters $remoteImageUrl $localImagePath Returns bool — 下载图片到本地服务器
GetServiceUrl() GetServiceUrl(mixed $ServiceUrl = '', mixed $ServiceUrlType = -1) : mixed Parameters mixed $ServiceUrl mixed $ServiceUrlType Returns mixed —