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(); } } }
<?php !function_exists('adminmsg') && exit('Forbidden'); $basename = "{$admin_file}?adminjob=userpay"; if (!$_POST['action']) { include_once D_P . 'data/bbscache/ol_config.php'; !$ol_paypalcode && ($ol_paypalcode = RandString('40')); ifcheck($ol_onlinepay, 'onlinepay'); include PrintEot('userpay'); exit; } else { InitGP(array('userpay'), 'P'); !$userpay['ol_paypalcode'] && ($userpay['ol_paypalcode'] = RandString('40')); foreach ($userpay as $key => $value) { setConfig($key, $value); } updatecache_ol(); adminmsg('operate_success'); } function RandString($len) { $rand = '1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'; mt_srand((double) microtime() * 1000000); for ($i = 0; $i < $len; $i++) { $code .= $rand[mt_rand(0, strlen($rand))]; } return $code; }