更新至v1.87.3,更新内容在Dzzoffice笔记中查看

This commit is contained in:
小胡
2024-01-29 18:21:14 +08:00
Unverified
parent 53b7996032
commit 46cbba87f1
147 changed files with 23600 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
/*
* @copyright Leyun internet Technology(Shanghai)Co.,Ltd
* @license http://www.dzzoffice.com/licenses/license.txt
* @package DzzOffice
* @link http://www.dzzoffice.com
* @author zyx(zyx@dzz.cc)
*/
if(!defined('IN_DZZ')) {
exit('Access Denied');
}
function build_cache_fields_optional() {
$data = array();
foreach(C::t('user_profile_setting')->fetch_all_by_available_required(1, 0) as $field) {
$choices = array();
if($field['selective']) {
foreach(explode("\n", $field['choices']) as $item) {
list($index, $choice) = explode('=', $item);
$choices[trim($index)] = trim($choice);
}
$field['choices'] = $choices;
} else {
unset($field['choices']);
}
$data['field_'.$field['fieldid']] = $field;
}
savecache('fields_optional', $data);
}
?>