本文标题:《「水坑」Z-BlogPHP 常用接口或函数》。
镜像链接:https://www.wdssmq.com/post/20190316451.html
记录一些常用的接口、常量或函数。
或者了解一下「代码片段」
记录一些常用的接口、常量或函数。
或者了解一下「代码片段」
代码备忘
1 2 3 4 5 6 7 8 9 10
| $act = GetVars('act', 'GET'); if (GetVars('act', 'GET') == 'save') { CheckIsRefererValid(); } BuildSafeURL("main.php?act=save");
$zbp->StartSession(); $_SESSION["appid_key"] = "value"; $appid_key = $_SESSION["appid_key"];
|
常用接口
1 2 3 4 5 6 7 8
| Add_Filter_Plugin('Filter_Plugin_Admin_TopMenu', '');
Add_Filter_Plugin('Filter_Plugin_PostArticle_Core', '');
Add_Filter_Plugin('Filter_Plugin_Zbp_BuildTemplate','');
|
常用函数
| 函数名 |
作用 |
|
| AddNameInString |
向字符串型的参数表加入一个新参数. |
|
| DelNameInString |
从字符串型的参数表中删除一个参数 |
|
| HasNameInString |
在字符串参数值查找参数 |
|
常量列表
| 常量名 |
作用 |
| ZC_BLOG_HOST |
URL 根路径 |
| ZBP_PATH |
文件系统根路径 |
| ——– |
——- |
| $zbp->option[‘ZC_DEBUG_MODE’] |
调试模式 |
| $zbp->option[‘ZC_BLOG_THEME’] |
当前主题 |