12345678910111213141516171819202122232425262728293031 |
- <?php
- /**
- * Created by PhpStorm.
- * User: 中闽 < 1464674022@qq.com >
- * Date: 2019/12/5
- * Time: 17:44
- */
- // +----------------------------------------------------------------------
- // 如果只需要给admin模块添加函数,在此文件中定义函数即可,系统会自动加载
- // +----------------------------------------------------------------------
- function addlog($operation_id = 0, $remark = '')
- {
- //兼容2021/05/24之前的旧版代码
- return true;
- }
- /**
- * 清除temp目录里的模板缓存
- * @param string $path
- * @return bool
- */
- function clear_temp_cache($path = TEMP_PATH)
- {
- if (array_map('unlink', glob($path . '*.php'))) {
- return true;
- } else {
- return false;
- }
- }
|