Beispiel #1
0
 include_once S_ROOT . './source/function_cp.php';
 include_once S_ROOT . './source/function_cache.php';
 //ϵͳ����
 if (empty($_POST['cachetype']) || in_array('database', $_POST['cachetype'])) {
     config_cache();
     usergroup_cache();
     profilefield_cache();
     profield_cache();
     censor_cache();
     block_cache();
     eventclass_cache();
     magic_cache();
     click_cache();
     task_cache();
     ad_cache();
     creditrule_cache();
     userapp_cache();
     app_cache();
     network_cache();
 }
 //ģ����뻺��
 if (empty($_POST['cachetype']) || in_array('tpl', $_POST['cachetype'])) {
     tpl_cache();
 }
 //ģ�黺��
 if (empty($_POST['cachetype']) || in_array('block', $_POST['cachetype'])) {
     block_data_cache();
 }
 //��㿴������
 if (empty($_POST['cachetype']) || in_array('network', $_POST['cachetype'])) {
     $fiels = sreaddir(S_ROOT . './data', array('txt'));
function creditrule($mode, $type)
{
    global $_SGLOBAL;
    if (!@(include_once S_ROOT . './data/data_creditrule.php')) {
        include_once S_ROOT . './source/function_cache.php';
        creditrule_cache();
    }
    $credit = 0;
    if (!empty($_SGLOBAL['creditrule'])) {
        if (!empty($_SGLOBAL['creditrule'][$mode][$type])) {
            $credit = $_SGLOBAL['creditrule'][$mode][$type];
        }
    }
    return intval($credit);
}