array()) : $data['site_info']; $styles = pdo_fetchall('SELECT * FROM ' . tablename('site_styles') . ' WHERE uniacid = :uniacid', array(':uniacid' => $_W['uniacid'])); if (checksubmit('submit')) { $pdata['site_info'] = iserializer(array( 'sitename' => $_GPC['sitename'], 'keywords' => $_GPC['keywords'], 'description' => $_GPC['description'], 'footer' => htmlspecialchars_decode($_GPC['footer']) )); $pdata['styleid'] = intval($_GPC['styleid']); pdo_update('uni_settings', $pdata, array('uniacid' => $_W['uniacid'])); cache_delete("unisetting:{$_W['uniacid']}"); message('信息设置成功!', url('site/info/display'), 'success'); } } template('site/info');