1, 'showmsg' => true, 'closetime' => true)); } $formid = random(8); } elseif($op == 'getuserapp') { getuserapp(); if(empty($_GET['subop'])) { $my_userapp = array(); foreach($_G['my_userapp'] as $value) { if($value['allowsidenav'] && !isset($_G['cache']['userapp'][$value['appid']])) { $my_userapp[] = $value; } } } else { $my_userapp = $_G['my_menu']; } } elseif($op == 'closefeedbox') { dsetcookie('closefeedbox', 1); } elseif($op == 'modifyunitprice') { $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'); ?>