本文整理汇总了PHP中cache_build_setting函数的典型用法代码示例。如果您正苦于以下问题:PHP cache_build_setting函数的具体用法?PHP cache_build_setting怎么用?PHP cache_build_setting使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了cache_build_setting函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setting_save
function setting_save($data = '', $key = '')
{
if (empty($data) && empty($key)) {
return FALSE;
}
if (is_array($data) && empty($key)) {
foreach ($data as $key => $value) {
$record[] = "('{$key}', '" . iserializer($value) . "')";
}
if ($record) {
$return = pdo_query("REPLACE INTO " . tablename('core_settings') . " (`key`, `value`) VALUES " . implode(',', $record));
}
} else {
$record = array();
$record['key'] = $key;
$record['value'] = iserializer($data);
$return = pdo_insert('core_settings', $record, TRUE);
}
cache_build_setting();
return $return;
}
示例2: cloud_download
$post = $_GPC['__input'];
$ret = cloud_download($post['path'], $post['type']);
if (!is_error($ret)) {
exit('success');
}
exit;
}
if ($step == 'scripts' && $_W['ispost']) {
$post = $_GPC['__input'];
$fname = $post['fname'];
$entry = IA_ROOT . '/data/update/' . $fname;
if (is_file($entry) && preg_match('/^update\\(\\d{12}\\-\\d{12}\\)\\.php$/', $fname)) {
$evalret = (include $entry);
if (!empty($evalret)) {
cache_build_users_struct();
cache_build_setting();
cache_build_modules();
@unlink($entry);
exit('success');
}
}
exit('failed');
}
if (!empty($_GPC['m'])) {
$m = $_GPC['m'];
$type = 'module';
$is_upgrade = intval($_GPC['is_upgrade']);
$packet = cloud_m_build($_GPC['m']);
} elseif (!empty($_GPC['t'])) {
$m = $_GPC['t'];
$type = 'theme';