您最多能選擇 25 個主題
主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
|
|
6 年前 | |
|---|---|---|
| .. | ||
| README.md | 6 年前 | |
| rebuild_file_tables.php | 6 年前 | |
README.md
Place the rebuild_file_tables.php script in a files subfolder of the main component.
It requires PHP 7 to run.
This is what the setup should look like
main/files/embed/index.html
main/files/rebuild_file_tables.php
main/CMakeLists.txt
main/main.c
Add this to your CMakeLists.txt before register_component:
#begin staticfiles
#end staticfiles
The script will update CMakeLists.txt and generate files_enum.c and files_enum.h when run.
main/files/files_enum.h
main/files/files_enum.c
Ensure files/files_enum.c is included in the build.
www_get_static_file() is implemented as weak to let you provide custom access authentication logic.