APPCENTRE_CAN_NOT_HTTPS
APPCENTRE_CAN_NOT_HTTPS = true
| Composer |
| League |
| Database__Interface | Interface Database__Interface. |
| Network__Interface | 网络连接接口. |
| App | App 应用类. |
| Base | 数据操作基类. |
| Category | 文章分类类. |
| Comment | 评论类. |
| ComposerAutoloaderInit18ca7e5823c7e2fe50e987f294e0dd4b | |
| Config | 配置类. |
| Database__MySQL | MySQL数据库操作类. |
| Database__MySQLi | MySQLi数据库操作类. |
| Database__PDO_MySQL | pdo_MySQL数据库操作类. |
| Database__PDO_PostgreSQL | pdo_SQLite数据库操作类. |
| Database__PDO_SQLite | pdo_SQLite数据库操作类. |
| Database__PostgreSQL | PgSQL数据库操作类. |
| Database__SQLite | SQLite2数据库操作类. |
| Database__SQLite3 | SQLite3数据库操作类. |
| DbSql | SQL语句生成类. |
| EditorMdUploader | Editor.md PHP上传类 |
| Member | 用户类. |
| Metas | 扩展内容类. |
| Module | 模块类. |
| ModuleBuilder | 模块创建类. |
| Network | 网络连接类. |
| Network__curl | curl类. |
| Network__Filegetcontents | 获取链接内容类. |
| Network__fsockopen | sock类. |
| PageBar | 分页条码 |
| Parsedown | |
| Post | 文章类. |
| Punycode | Copyright (c) 2014 TrueServer B.V. |
| RegPage_ValidateCode | 验证码类. |
| Rss2 | RSS2类. |
| SaveRemoteImage | |
| SQL__Global | |
| SQL__MySQL | |
| SQL__PostgreSQL | |
| SQL__SQLite | |
| Tag | Tag类. |
| Template | 模板类. |
| Totoro_Class | |
| Upload | 上传类. |
| Uploader | Created by JetBrains PhpStorm. |
| UrlRule | Url规则类. |
| ValidateCode | Builds a new captcha image Uses the fingerprint parameter, if one is passed, to generate the same image. |
| XssHtml | PHP 富文本XSS过滤类. |
| ZBlogException | Class ZBlogException. |
| ZBlogPHP | zbp全局操作类. |
| ZbpForm |
APPCENTRE_PUBLIC_KEY = '-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3HYTjyOIzYnJtIl4M50l aYgEQmRGeOQA+5H1Ze3Fgc7bbEc+DtJMAmwYaGR3+ULkL4c0m/KXXxujTgEfxGkk fO7XI7Z0b1EWFm4M7IbXox6LaLU6mK4OK5nMWWyIyawYn0bdw6X/vaXEyzkDE8fP ZGGPo5OydyZdTm47lXdCewyxk1CQ6nMs75u0mLjnDfsFXNiDx8hvXODnTSJKzb+C 154qg0uRXjaB2ylnhJKDcQCFAbg5uy0iRcrp7+CFG4qvk0c7d/xRRjqY/y3HI+o5 29/vvByD9KVXfWQQI6unfWfO1uEegXcgypHKHRmuyZoIDH7r56sleXKcN0OLesxp zwIDAQAB -----END PUBLIC KEY-----'
AppCentre_Check_App_IsBuy( $appid, $throwerror = true)
| $appid | ||
| $throwerror |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
AppCentre_GetCheckQueryString( $with_ignores = false)
| $with_ignores |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
AutoloadClass(string $className) : mixed
自动加载类文件.
| string | $className | 类名 |
| package |
Default |
|---|---|
| api |
Filter_Plugin_Autoload |
badword_value( $author, $content, $orig_content, $sv, $config_sv, $config_array)
| $author | ||
| $content | ||
| $orig_content | ||
| $sv | ||
| $config_sv | ||
| $config_array |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
BuildModule_authors(integer $level = 4) : string
| integer | $level |
| package |
Default |
|---|
BuildModule_calendar(string $date = '') : string
| string | $date |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
BuildModule_statistics(array $array = array()) : string
| array | $array |
| package |
Default |
|---|
| package |
Default |
|---|
BuildSafeCmdURL(string $paramters) : boolean
构造cmd.php的访问链接.
| string | $paramters | cmd.php参数 |
| package |
Default |
|---|---|
| since | 1.5.2 |
BuildSafeURL(string $url, string $appId = '') : string
构造带Token的安全URL.
| string | $url | |
| string | $appId | 应用ID,可以生成一个应用专属的Token |
| package |
Default |
|---|---|
| since | 1.5.2 |
| package |
Default |
|---|
| package |
CHAvatar.zba |
|---|
| package |
CHAvatar.zba |
|---|
| package |
Default |
|---|
CheckCanBeString(object $obj) : boolean
确认一个对象是否可被转换为string.
| object | $obj |
| package |
Default |
|---|---|
| since | 1.4 |
| package |
Default |
|---|
CheckCSRFTokenValid(string $fieldName = 'csrfToken', array $methods = array('get', 'post')) : boolean
验证CSRF Token是否合法.
| string | $fieldName | |
| array | $methods |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
CheckRegExp(string $source, string $para) : boolean
验证字符串是否符合正则表达式.
| string | $source | 字符串 |
| string | $para | 正则表达式,可用[username]|[password]|[email]|[homepage]或自定义表达式 |
| package |
Default |
|---|
| package |
Default |
|---|
chinesesv( $author, $content, $orig_content, $sv, $config_sv, $config_array)
| $author | ||
| $content | ||
| $orig_content | ||
| $sv | ||
| $config_sv | ||
| $config_array |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
CloseTags(string $html) : string
封装HTML标签.
| string | $html | html源码 |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
ContextMenu.zbp |
|---|
CountCategory( $category, integer $plus = null)
统计分类下文章数.
| $category | ||
| integer | $plus | 控制是否要进行全表扫描 |
| package |
Default |
|---|
CountCategoryArray(array $array, integer $plus = null)
批量统计指定分类下文章数并保存.
| array | $array | 记录分类ID的数组 |
| integer | $plus | 控制是否要进行全表扫描 |
| package |
Default |
|---|
CountCommentNums(integer $allplus = null, integer $chkplus = null)
统计评论数.
| integer | $allplus | 控制是否要进行全表扫描 总评论 |
| integer | $chkplus | 控制是否要进行全表扫描 未审核评论 |
| package |
Default |
|---|
CountMember( $member, array $plus = array(null, null, null, null))
统计用户下的文章数、页面数、评论数、附件数等.
| $member | ||
| array | $plus | 设置是否需要完全全表扫描 |
| package |
Default |
|---|
CountMemberArray(array $array, array $plus = array(null, null, null, null))
批量统计指定用户数据并保存.
| array | $array | 记录用户ID的数组 |
| array | $plus | 设置是否需要完全全表扫描 |
| package |
Default |
|---|
CountNormalArticleNums(integer $plus = null)
统计公开文章数.
| integer | $plus | 控制是否要进行全表扫描 |
| package |
Default |
|---|
CountPost(\post $article, integer $plus = null)
统计文章下评论数.
| \post | $article | |
| integer | $plus | 控制是否要进行全表扫描 |
| package |
Default |
|---|
CountPostArray(array $array, integer $plus = null)
批量统计指定文章下评论数并保存.
| array | $array | 记录文章ID的数组 |
| integer | $plus | 控制是否要进行全表扫描 |
| package |
Default |
|---|
CountTag( $tag, integer $plus = null)
统计tag下的文章数.
| $tag | ||
| integer | $plus | 控制是否要进行全表扫描 |
| package |
Default |
|---|
CountTagArrayString(string $string, integer $plus = null, $articleid = null) : boolean
批量统计指定tag下文章数并保存.
| string | $string | 类似'{1}{2}{3}{4}{4}'的tagID串 |
| integer | $plus | 控制是否要进行全表扫描 |
| $articleid |
| package |
Default |
|---|
CountTopArticle(integer $type, null $addplus = null, null $delplus = null)
统计置顶文章数组.
| integer | $type | |
| null | $addplus | |
| null | $delplus |
| package |
Default |
|---|
CreateModuleDiv( $m, boolean $button = true)
创建Div模块.
| $m | ||
| boolean | $button |
| package |
Default |
|---|
CreateOptionsOfGuestIPType( $default) : string
生成GuestType表单.
| $default |
| package |
Default |
|---|
CreateOptionsOfLang( $default) : string
生成语言select表单.
| $default |
| package |
Default |
|---|
CreateOptionsOfTimeZone( $default) : string
生成时区select表单.
| $default |
| package |
Default |
|---|
| package |
Default |
|---|
CreateWebToken( $webTokenId, $time, string $key = '') : string
创建Web Token.
| $webTokenId | ||
| $time | ||
| string | $key |
| package |
Default |
|---|
| package |
Default |
|---|
Debug_Error_Handler(integer $errno, string $errstr, string $errfile, integer $errline) : boolean
错误调度提示.
| integer | $errno | 错误级别 |
| string | $errstr | 错误信息 |
| string | $errfile | 错误文件名 |
| integer | $errline | 错误行 |
| package |
Default |
|---|
Debug_Exception_Handler(\Exception $exception) : boolean
异常处理.
| \Exception | $exception | 异常事件 |
| package |
Default |
|---|
Debug_IgnoreError(integer $errno) : boolean
Return true if a error can be ignored.
| integer | $errno |
| package |
Default |
|---|
| package |
Default |
|---|---|
| since | 1.3 |
| todo |
下版转到debug页 |
| package |
Default |
|---|---|
| since | 1.3.140614 |
| todo |
下版转到debug页 |
| package |
Default |
|---|---|
| since | 1.3 |
| todo |
下版转到debug页 |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
DelMember_AllData(integer $id)
删除用户下所有数据(包括文章、评论、附件).
| integer | $id | 用户ID |
| package |
Default |
|---|
| package |
Default |
|---|
DelNameInString(string $s, string $name) : string
从字符串型的参数表中删除一个参数.
| string | $s | 字符串型的参数表,以|符号分隔 |
| string | $name | 参数名 |
返回新字符串,以|符号分隔
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
DisablePlugin(string $name) : \App|boolean
禁用插件.
| string | $name | 插件ID |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
EnablePlugin(string $name) : string
启用插件.
| string | $name | 插件ID |
返回插件ID
| package |
Default |
|---|
| package |
Default |
|---|
ExtraSupport_Editormd(object $template)
前台扩展语言支持.
| object | $template |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
FilterCorrectName(string $s) : string|array<mixed,string>
获得一个只含数字字母和-线的string.
| string | $s | 待过滤字符串 |
| package |
Default |
|---|---|
| since | 1.4 |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
FormatString(string $source, string $para) : string
格式化字符串.
| string | $source | 字符串 |
| string | $para | 正则表达式,可用[html-format]|[nohtml]|[noscript]|[enter]|[noenter]|[filename]|[normalname]或自定义表达式 |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
GetCurrentHost(string $blogpath, $cookiesPath) : string
获取当前网站地址
| string | $blogpath | 网站域名 |
| $cookiesPath |
返回网站完整地址,如http://localhost/zbp/
| package |
Default |
|---|
| package |
Default |
|---|
GetDirsInDir(string $dir) : array
获取目录下文件夹列表.
| string | $dir | 目录 |
文件夹列表
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|---|
| since | 1.4 |
GetFileExt(string $f) : string
获取文件后缀名.
| string | $f | 文件名 |
返回小写的后缀名
| package |
Default |
|---|
GetFilePerms(string $f) : string|null
获取文件权限.
| string | $f | 文件名 |
返回文件权限,字符表达格式,如-rw-r--r--
| package |
Default |
|---|
GetFilePermsOct(string $f) : string|null
获取文件权限.
| string | $f | 文件名 |
返回文件权限,数值格式,如0644
| package |
Default |
|---|
GetFilesInDir(string $dir, string $type) : array
获取目录下指定类型文件列表.
| string | $dir | 目录 |
| string | $type | 文件类型,以|分隔 |
文件列表
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
GetHttpContent(string $url) : string
通过URL获取远程页面内容.
| string | $url | URL地址 |
返回页面文本内容,默认为null
| package |
Default |
|---|
| package |
Default |
|---|
GetList(integer $count = 10, null $cate = null, null $auth = null, null $date = null, null $tags = null, null $search = null, null $option = null) : array|mixed
获取文章列表.
| integer | $count | 数量 |
| null | $cate | 分类ID |
| null | $auth | 用户ID |
| null | $date | 日期 |
| null | $tags | 标签 |
| null | $search | 搜索关键词 |
| null | $option |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
GetPost(mixed $idorname, $option = null) : \Post
获取文章.
| mixed | $idorname | 文章id 或 名称、别名 |
| $option |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
GetScheme( $array) : \$string
得到请求协议(考虑到反向代理等原因,未必准确) 如果想获取准确的值,请zbp->Load后使用$zbp->isHttps.
| $array |
| package |
Default |
|---|
GetSubComments(integer $id, array<mixed,\Comment> $array)
只历遍并保留评论id进array,不进行删除.
| integer | $id | 父评论ID |
| array<mixed,\Comment> | $array | 将子评论ID存入新数组 |
| package |
Default |
|---|
| package |
Default |
|---|
GetTimeZoneByGMT(integer $z) : string
获取指定时区名.
| integer | $z | 时区号 |
时区名
| package |
Default |
|---|---|
| since | 1.3.140614 |
GetValueInArray(array $array, string $name) : mixed
通过Key从数组获取数据.
| array | $array | 数组名 |
| string | $name | 下标key |
| package |
Default |
|---|
GetValueInArrayByCurrent(string $array, string $name) : mixed
获取数组中的当前元素数据.
| string | $array | 数组名 |
| string | $name | 下标key |
| package |
Default |
|---|
GetVars(string $name, string $type = 'REQUEST') : mixed|null
获取参数值
| string | $name | 数组key名 |
| string | $type | 默认为REQUEST |
| package |
Default |
|---|
GetVarsByDefault(string $name, string $type = 'REQUEST', string $default = null) : mixed|null
获取参数值(可设置默认返回值).
| string | $name | 数组key名 |
| string | $type | 默认为REQUEST |
| string | $default | 默认为null |
| package |
Default |
|---|---|
| since | 1.3.140614 |
| package |
Default |
|---|
ggravatar_check( $email = null, $netcheck = null, $url = null)
| $netcheck | ||
| $url |
| package |
Default |
|---|
ggravatar_get( $email, $s = '80', $d = 'identicon', $r = 'G', $img = null, $atts = array())
| $s | ||
| $d | ||
| $r | ||
| $img | ||
| $atts |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
HasNameInString(string $s, string $name) : boolean
在字符串参数值查找参数.
| string | $s | 字符串型的参数表,以|符号分隔 |
| string | $name | 参数名 |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
htmlspecialchars_array(array $array) : array
对数组内的字符串进行htmlspecialchars.
| array | $array | 待过滤字符串 |
| package |
Default |
|---|---|
| since | 1.4 |
Http304(string $filename, string $time)
设置304缓存头.
| string | $filename | 文件名 |
| string | $time | 缓存时间 |
| package |
Default |
|---|
http_build_url(mixed $url, mixed $parts = array(), integer $flags = HTTP_URL_REPLACE, array $new_url = array()) : string
Build a URL.
The parts of the second URL will be merged into the first according to the flags argument.
| mixed | $url | (part(s) of) an URL in form of a string or associative array like parse_url() returns |
| mixed | $parts | same as the first argument |
| integer | $flags | a bitmask of binary or'ed HTTP_URL constants; HTTP_URL_REPLACE is the default |
| array | $new_url | if set, it will be filled with the parts of the composed url like parse_url() would return |
| package |
Default |
|---|
hyperlink_value( $author, $content, $orig_content, $sv, $config_sv, $config_array)
| $author | ||
| $content | ||
| $orig_content | ||
| $sv | ||
| $config_sv | ||
| $config_array |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
Include_ShowError404( $errorCode, $errorDescription, $file, $line)
显示404页面(内置插件函数).
可通过主题中的404.php模板自定义显示效果
| $errorCode | ||
| $errorDescription | ||
| $file | ||
| $line |
| package |
Default |
|---|---|
| api |
Filter_Plugin_Zbp_ShowError |
| package |
Default |
|---|
InstallPlugin(string $strPluginName) : void
插件安装函数,只在插件安装时运行一次
| string | $strPluginName | 插件ID |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
InstallPlugin_Bdpush_lazy()
以下弃用,使用系统send()方法 function Bdpush_lazy_getData($api,$postData = '') { if (!$api) { return false; } if (empty($postData)) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $api); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); $result = curl_exec($ch); curl_close($ch); } else { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $api); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); $result = curl_exec($ch); curl_close($ch); } if ($result) { return $result; } else { return null; } }
| package |
Default |
|---|
| package |
CHAvatar.zba |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
ContextMenu.zbp |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
interval_value( $author, $content, $orig_content, $sv, $config_sv, $config_array)
| $author | ||
| $content | ||
| $orig_content | ||
| $sv | ||
| $config_sv | ||
| $config_array |
| package |
Default |
|---|
JsonError(string $errorCode, string $errorString, object $data)
以JSON形式输出错误信息.(err code为(int)0认为是没有错误,所以把0转为1)
| string | $errorCode | 错误编号 |
| string | $errorString | 错误内容 |
| object | $data | 具体内容 |
| package |
Default |
|---|
JsonError4ShowErrorHook( $errorCode, $errorString, $file, $line)
以JSON形式输出错误信息(用于ShowError接口).
| $errorCode | ||
| $errorString | ||
| $file | ||
| $line |
| package |
Default |
|---|
jsonResponse(array $arr) : string
JSON消息响应 转义输出,避免中文转码 Unicode 兼容 PHP5.3~PHP7.
| array | $arr | 消息数组,仅支持一维数组 |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
level_value( $author, $content, $orig_content, $sv, $config_sv, $config_array)
| $author | ||
| $content | ||
| $orig_content | ||
| $sv | ||
| $config_sv | ||
| $config_array |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
Logs(string $logString, boolean $isError = false) : boolean
记录日志.
| string | $logString | |
| boolean | $isError |
| package |
Default |
|---|
MakeLeftMenu( $requireAction, $strName, $strUrl, $strLiId, $strAId, $strImgUrl) : null|string
添加左侧菜单项.
| $requireAction | ||
| $strName | ||
| $strUrl | ||
| $strLiId | ||
| $strAId | ||
| $strImgUrl |
| package |
Default |
|---|
MakeSubMenu( $strName, $strUrl, $strClass = 'm-left', $strTarget = '', $strId = '', $strTitle = '') : null|string
添加子菜单项.
| $strName | ||
| $strUrl | ||
| $strClass | ||
| $strTarget | ||
| $strId | ||
| $strTitle |
| package |
Default |
|---|
MakeTopMenu( $requireAction, $strName, $strUrl, $strTarget, $strLiId) : null|string
添加顶部菜单项.
| $requireAction | ||
| $strName | ||
| $strUrl | ||
| $strTarget | ||
| $strLiId |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|---|
| copyright |
(C) RainbowSoft Studio |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
name_value( $author, $content, $orig_content, $sv, $config_sv, $config_array)
| $author | ||
| $content | ||
| $orig_content | ||
| $sv | ||
| $config_sv | ||
| $config_array |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
number_value( $author, $content, $orig_content, $sv, $config_sv, $config_array)
| $author | ||
| $content | ||
| $orig_content | ||
| $sv | ||
| $config_sv | ||
| $config_array |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
os_copy_GetCopyHTML( $content, $source = 'footer')
生成被复制模块
| $content | ||
| $source |
| package |
Default |
|---|
os_copy_HTMLZip(string $html_source) : string
压缩 HTML 代码
| string | $html_source | HTML 源码 |
压缩后的代码
| package |
Default |
|---|---|
| author |
情留メ蚊子 qlwz@qq.com |
| version |
1.0.0.0 By 2016-11-23 |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
OutputOptionItemsOfCategories( $default) : null|string
生成分类select表单.
| $default |
| package |
Default |
|---|
OutputOptionItemsOfIsTop( $default) : null|string
生成文章IsTop状态select表单.
| $default |
| package |
Default |
|---|
OutputOptionItemsOfMember( $default) : null|string
生成用户select表单.
| $default |
| package |
Default |
|---|
OutputOptionItemsOfMemberLevel( $default) : null|string
生成用户等级select表单.
| $default |
| package |
Default |
|---|
OutputOptionItemsOfPostStatus( $default) : null|string
生成文章发布状态select表单.
| $default |
| package |
Default |
|---|
OutputOptionItemsOfTemplate( $default, $file_filter_array = array()) : null|string
生成模板select表单.
| $default | ||
| $file_filter_array |
| package |
Default |
|---|
OutputOptionItemsOfType( $default) : null|string
生成TYPEselect表单.
| $default |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
plugin_dir_url(string $file) : string
通过文件获取应用URL地址
| string | $file | 文件名 |
返回URL地址
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|---|
| api |
Filter_Plugin_PostArticle_Core Filter_Plugin_PostArticle_Succeed |
PostArticle_CheckTagAndConvertIDtoString(string $tagnamestring) : string
提交文章数据时检查tag数据,并将新tags转为标准格式返回.
| string | $tagnamestring | 提交的文章tag数据,可以:,,、等符号分隔 |
返回如'{1}{2}{3}{4}'的字符串
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
RegisterPlugin(string $strPluginName, string $strPluginActiveFunction) : void
注册插件函数,由每个插件主动调用.
| string | $strPluginName | 插件ID |
| string | $strPluginActiveFunction | 插件激活时执行的函数名 |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
Remove_Filter_Plugin( $plugname, $functionname)
| $plugname | ||
| $functionname |
| package |
Default |
|---|
| package |
Default |
|---|
RemoveMoreSpaces( $s) : null|string|array<mixed,string>
删除连续空格
| $s |
| package |
Default |
|---|
RemovePHPCode(string $code) : string
清除一串代码内所有的PHP代码
| string | $code |
| package |
Default |
|---|
| package |
Default |
|---|
ResetConfig_Editormd(boolean $del = false)
重置设置
| boolean | $del | 是否删除已有配置 |
| package |
Default |
|---|
RespondError( $errorCode, $errorString = '', $file = '', $line = '') : void
XML-RPC应答错误页面.
| $errorCode | ||
| $errorString | ||
| $file | ||
| $line |
| package |
Default |
|---|
Response1_Editormd()
在内容文本框下方插入, 用于存放 Editor.md 转换的 HTML 源码、更新提示 以及加载提示,每次加载成功后会将此内容隐藏.
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
RunTime(boolean $isOutput = true) : array
输出页面运行时长
| boolean | $isOutput | 是否输出(考虑历史原因,默认输出) |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
ScriptError(string $errorCode, $errorText = '', $file = '', $line = '') : void
XML-RPC脚本错误页面.
| string | $errorCode | 错误提示字符串 |
| $errorText | ||
| $file | ||
| $line |
| package |
Default |
|---|
| package |
Default |
|---|
Server_SendRequest( $url, $data = array(), $u2 = '', $c2 = '')
| $url | ||
| $data | ||
| $u2 | ||
| $c2 |
| package |
Default |
|---|
Server_SendRequest_CUrl( $url, $data = array(), $u = null, $c = null)
| $url | ||
| $data | ||
| $u | ||
| $c |
| package |
Default |
|---|
Server_SendRequest_Network( $url, $data = array(), $u = null, $c = null)
| $url | ||
| $data | ||
| $u | ||
| $c |
| package |
Default |
|---|
| package |
Default |
|---|
SetLoginCookie(\Member $user, integer $cookieTime) : boolean
设置登录Cookie,直接登录该用户.
| \Member | $user | |
| integer | $cookieTime |
| package |
Default |
|---|
SetPluginSignal( $plugname, $function, $signal = 'PLUGIN_EXITSIGNAL_NONE')
| $plugname | ||
| $function | ||
| $signal |
| package |
Default |
|---|
| package |
Default |
|---|
SetTheme(string $theme, string $style) : string
设置当前主题样式.
| string | $theme | 主题ID |
| string | $style | 样式名 |
返回主题ID
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
similar_value( $author, $content, $orig_content, $sv, $config_sv, $config_array)
| $author | ||
| $content | ||
| $orig_content | ||
| $sv | ||
| $config_sv | ||
| $config_array |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
SplitAndGet(string $string, string $delimiter = ';', integer $n) : string
分割string并取某项数据.
| string | $string | |
| string | $delimiter | |
| integer | $n |
| package |
Default |
|---|
| package |
Default |
|---|
SubStrUTF8(string $sourcestr, integer $cutlength) : string
获取UTF8格式的字符串的子串.
| string | $sourcestr | 源字符串 |
| integer | $cutlength | 子串长度 |
| package |
Default |
|---|
SubStrUTF8_Html(string $source, integer $length) : string
截取HTML格式的UTF8格式的字符串的子串.
| string | $source | 源字符串 |
| integer | $length | 子串长度 |
| package |
Default |
|---|
SubStrUTF8_Start(string $sourcestr, integer $start, integer $cutlength) : string
获取UTF8格式的字符串的子串.
| string | $sourcestr | 源字符串 |
| integer | $start | 起始位置 |
| integer | $cutlength | 子串长度 |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
tpure_Exclude_Category( $type, $page, $category, $author, $datetime, $tag, $w, $pagebar)
| $type | ||
| $page | ||
| $category | ||
| $author | ||
| $datetime | ||
| $tag | ||
| $w | ||
| $pagebar |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
tpure_SubStrStartUTF8(string $sourcestr, integer $startstr, integer $cutlength) : string
获取UTF8格式的字符串的子串.
| string | $sourcestr | 源字符串 |
| integer | $startstr | 开始字串子串 |
| integer | $cutlength | 子串长度 |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|---|
| Deprecated |
格式化字符串 |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
UninstallPlugin( $strPluginName) : void
插件删除函数,只在插件删除时运行一次
| $strPluginName |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
CHAvatar.zba |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
ContextMenu.zbp |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
VerifyLogin(boolean $throwException = true) : boolean
验证登录.
| boolean | $throwException |
| package |
Default |
|---|
VerifyWebToken( $webTokenString, $webTokenId, string $key = '') : boolean
验证Web Token是否合法.
| $webTokenString | ||
| $webTokenId | ||
| string | $key |
| package |
Default |
|---|
ViewAuto(string $inpurl) : null|string
根据Rewrite_url规则显示页面.
| string | $inpurl | 页面url |
| package |
Default |
|---|---|
| api |
Filter_Plugin_ViewAuto_Begin Filter_Plugin_ViewAuto_End |
ViewComment(integer $id) : boolean
显示评论.
| integer | $id | 评论ID |
| package |
Default |
|---|
ViewComments(integer $postid, integer $page) : boolean
显示文章下评论列表.
| integer | $postid | 文章ID |
| integer | $page | 页数 |
| package |
Default |
|---|
| package |
Default |
|---|---|
| api |
Filter_Plugin_ViewFeed_Begin |
| package |
Default |
|---|---|
| api |
Filter_Plugin_ViewIndex_Begin |
ViewList(integer $page, mixed $cate, mixed $auth, mixed $date, mixed $tags, boolean $isrewrite = false) : string
显示列表页面.
| integer | $page | |
| mixed | $cate | |
| mixed | $auth | |
| mixed | $date | |
| mixed | $tags | tags列表 |
| boolean | $isrewrite | 是否启用urlrewrite |
| package |
Default |
|---|---|
| api |
Filter_Plugin_ViewList_Begin Filter_Plugin_ViewList_Template |
ViewPost(array|integer|string $object, string $theSecondParam, boolean $enableRewrite = false) : string
显示文章.
| array|integer|string | $object | 文章ID/ ID/别名对象 |
| string | $theSecondParam | (如果有的话)文章别名 |
| boolean | $enableRewrite | 是否启用urlrewrite |
| package |
Default |
|---|
| package |
Default |
|---|---|
| api |
Filter_Plugin_ViewSearch_Begin Filter_Plugin_ViewPost_Template |
Watermark_Do( $groundImage, $waterPos = "", $waterImage = "", $waterText = "", $textFont = "", $textColor = "", $WatermarkType = "")
| $groundImage | ||
| $waterPos | ||
| $waterImage | ||
| $waterText | ||
| $textFont | ||
| $textColor | ||
| $WatermarkType |
| package |
Default |
|---|
| package |
Default |
|---|
xmlrpc_deletePost(integer $id)
XML-RPC 删除文章.
输出操作结果
| integer | $id | 文章ID |
| package |
Default |
|---|
xmlrpc_delPage(integer $id)
XML-RPC 删除页面.
输出操作结果
| integer | $id | 页面ID |
| package |
Default |
|---|
xmlrpc_editPage(integer $id, string $xmlstring, boolean $publish)
XML-RPC 编辑指定页面.
输出操作结果
| integer | $id | 页面ID |
| string | $xmlstring | 页面数据xml |
| boolean | $publish | 是否直接发布 |
| package |
Default |
|---|
xmlrpc_editPost(integer $id, string $xmlstring, \boolval $publish)
XML-RPC 编辑指定文章.
输出操作结果
| integer | $id | 文章ID |
| string | $xmlstring | 文章数据xml |
| \boolval | $publish | 是否直接发布 |
| package |
Default |
|---|
xmlrpc_getAuthors()
XML-RPC 获取用户列表.
输出用户列表xml wp.getAuthors array struct string user_id string user_login string display_name
| package |
Default |
|---|
xmlrpc_getCategories()
XML-RPC 获取分类列表.
输出分类列表xml wp.getCategories array struct string categoryId string parentId string categoryName string categoryDescription string description: Name of the category, equivalent to categoryName. string htmlUrl string rssUrl
| package |
Default |
|---|
xmlrpc_getPage(integer $id)
XML-RPC 获取指定ID页面.
输出页面列表xml
| integer | $id | 页面ID |
| package |
Default |
|---|
xmlrpc_getPages(integer $n)
XML-RPC 获取指定用户创建的页面.
输出页面列表xml
| integer | $n | 用户ID |
| package |
Default |
|---|
| package |
Default |
|---|
xmlrpc_getPostCategories(integer $id)
XML-RPC 获取指定文章所属分类信息.
输出指定文章所属分类信息xml
| integer | $id | 文章ID |
| package |
Default |
|---|
xmlrpc_getRecentPosts(integer $n)
XML-RPC 获取指定用户最新文章列表.
输出文章列表xml
| integer | $n | 用户ID |
| package |
Default |
|---|
xmlrpc_getTags()
XML-RPC 获取标签列表.
输出标签列表xml wp.getTags array struct int tag_id string name string slug int count string html_url string rss_url
| package |
Default |
|---|
xmlrpc_getUsersBlogs()
XML-RPC 获取用户站点基本信息.
输出用户站点地址,guid,网站名xml array struct string blogid string url: Homepage URL for this blog. string blogName bool isAdmin string xmlrpc: URL endpoint to use for XML-RPC requests on this blog.
| package |
Default |
|---|
xmlrpc_newMediaObject(string $xmlstring)
XML-RPC 上传媒体文件.
输出操作结果
| string | $xmlstring | 上传文件数据xml |
| package |
Default |
|---|
| package |
Default |
|---|
xmlrpc_ShowError( $code, $file, $line, $httpcode = 401)
| $code | ||
| $file | ||
| $line | ||
| $httpcode |
| package |
Default |
|---|
xmlrpc_Verify( $username, $password)
XML-RPC辅助.
验证用户登录
| $username | ||
| $password |
| package |
Default |
|---|
| package |
Default |
|---|
Yun_level_author_class( $comment_author_email)
| $comment_author_email |
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|
| package |
Default |
|---|