document.writeln('');

国产精品最大AV站在线观看,a级黄毛片试看三分钟,AV无码A片高潮AV,国产午夜精品一区二区三区,久久爆乳不卡一区,日本三级欧美三级,日韩精品AV一二三区在线,高H短篇小说抽插

當(dāng)前位置:首頁 > 免費(fèi)源碼 > xiuno 40如何新建一個(gè)單頁

xiuno 40如何新建一個(gè)單頁

采用插件機(jī)制:

 

新建目錄和文件,假定插件名為 my_plugin:

1
2
3
4
5
6
7
plugin/
    my_plugin/
        conf.json (配置文件)
        icon.png (圖標(biāo)寬高:54*54)
        hook/
           index_route_case_end.php  (插入點(diǎn),該插入點(diǎn)在 index.php)
        hello.php (你的業(yè)務(wù)邏輯文件)

 

conf.json 內(nèi)容:

1
2
3
4
5
6
7
8
9
10
11
{
    "name":"我的第一個(gè) Xiuno BBS 插件",
    "brief":"我的插件介紹。",
    "version":"1.0",
    "bbs_version":"4.0",
    "installed":0,
    "enable":0,
    "hooks_rank":[],
    "overwrites_rank":[],
    "dependencies":[]
}

 

index_route_case_end.php 內(nèi)容:

1
case hello: include APP_PATH.plugin/my_plugin/hello.php; break;

 

hello.php 內(nèi)容:

1
2
3
<?php
message(0, Hello, Plugin);
?>
 評(píng)論