_rand($arr, $num) { $r_values = array(); if($arr && count($arr) > $num) { if($num > 1) { $r_keys = array_rand($arr, $num); foreach ($r_keys as $key) { $r_values[$key] = $arr[$key]; } } else { $r_key = array_rand($arr, 1); $r_values[$r_key] = $arr[$r_key]; } } else { $r_values = $arr; } return $r_values; } //获得用户唯一串 function space_key($space) { return substr(md5(UC_KEY.'|'.$space['uid'].'|'.$space['dateline']), 8, 16); } //产生form防伪码 function formhash() { global $_SGLOBAL, $_SCONFIG; if(empty($_SGLOBAL['formhash'])) { $hashadd = defined('IN_ADMINCP') ? 'Only For UCenter Home AdminCP' : ''; $_SGLOBAL['formhash'] = substr(md5(substr($_SGLOBAL['timestamp'], 0, -7).'|'.$_SGLOBAL['supe_uid'].'|'.md5($_SCONFIG['sitekey']).'|'.$hashadd), 8, 8); } return $_SGLOBAL['formhash']; } ?>
运行UPDATE.PHP后 页面上多出一段代码 这个是什么问题啊? |