25 lines
567 B
PHP
25 lines
567 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
||
|
* This is NOT a freeware, use is subject to license terms
|
||
|
*
|
||
|
* $Id: cache_creditrule.php 24850 2011-10-12 11:09:19Z zhengqingpeng $
|
||
|
*/
|
||
|
|
||
|
if(!defined('IN_DISCUZ')) {
|
||
|
exit('Access Denied');
|
||
|
}
|
||
|
|
||
|
function build_cache_creditrule() {
|
||
|
$data = array();
|
||
|
|
||
|
foreach(C::t('common_credit_rule')->fetch_all_rule() as $rule) {
|
||
|
$rule['rulenameuni'] = urlencode(diconv($rule['rulename'], CHARSET, 'UTF-8', true));
|
||
|
$data[$rule['action']] = $rule;
|
||
|
}
|
||
|
|
||
|
savecache('creditrule', $data);
|
||
|
}
|
||
|
|
||
|
?>
|