$id ,'type' => $type ,'uid' => $authorid), array('showdialog'=>1, 'showmsg' => true, 'closetime' => true)); } $formid = random(8); } elseif($op == 'closefeedbox') { dsetcookie('closefeedbox', 1); } elseif($op == 'modifyunitprice') { if(!$_G['setting']['ranklist']['membershow']) { exit('Access Denied'); } $showinfo = C::t('home_show')->fetch($_G['uid']); //DB::fetch_first("SELECT credit, unitprice FROM ".DB::table('home_show')." WHERE uid='{$_G['uid']}'"); if(submitcheck('modifysubmit')) { $unitprice = intval($_POST['unitprice']); if($unitprice < 1) { showmessage('showcredit_error', '', array(), array('return' => 1)); } $unitprice = $unitprice > $showinfo['credit'] ? $showinfo['credit'] : $unitprice; C::t('home_show')->update($_G['uid'], array('unitprice' => $unitprice)); showmessage('do_success', dreferer(), array('unitprice' => $unitprice), array('showdialog'=>1, 'showmsg' => true, 'closetime' => true)); } } include template('home/spacecp_common'); ?>