function updatecache($array = '') { if (empty($array) || !is_array($array)) { updatecache_i(1); if (R_P == D_P || !file_exists(D_P . 'data/bbscache/config.php') || !file_exists(D_P . 'data/bbscache/dbreg.php')) { updatecache_c(); } updatecache_p(1); updatecache_w(); updatecache_sy(); updatecache_g(); updatecache_bk(); updatecache_df(); updatecache_ol(); updatecache_mddb(1); updatecache_ml(); updatecache_f(1); updatecache_l(1); updatecache_gr(1); updatecache_inv(); updatecache_plan(); updatecache_ftp(); updatecache_field(1); updatecache_form(); updatecache_help(); cache_read(); updatecache_hotforum(); updatecache_openforum(); updatecache_topic(); updatecache_postcate(); updateCacheActivity(); updatecache_conf('nf', false, 'newinfo_config.php'); //updateStampCache(); //updateBlockCache(); } else { foreach ($array as $value) { $value(); } } }
$config['virement'] = 0; } if (!is_numeric($config['timelimit'])) { $config['timelimit'] = 60; } if (!is_numeric($config['virelimit'])) { $config['virelimit'] = 500; } if (!is_numeric($config['virerate'])) { $config['virerate'] = 10; } if (!is_numeric($config['rate'])) { $config['rate'] = 1; } if (!is_numeric($config['drate'])) { $config['drate'] = 1; } if (!is_numeric($config['ddate'])) { $config['ddate'] = 12; } foreach ($config as $key => $value) { $rt = $db->get_one("SELECT * FROM pw_hack WHERE hk_name=" . S::sqlEscape("bk_{$key}")); if ($rt) { $db->update("UPDATE pw_hack SET hk_value=" . S::sqlEscape($value) . "WHERE hk_name=" . S::sqlEscape("bk_{$key}")); } else { $db->update("INSERT INTO pw_hack SET hk_name=" . S::sqlEscape("bk_{$key}") . ",hk_value=" . S::sqlEscape($value)); } } updatecache_bk(); adminmsg('operate_success'); }