Comsenz Inc.'; var $magic = array(); var $parameters = array(); function getsetting(&$magic) {} function setsetting(&$magicnew, &$parameters) {} function usesubmit() { global $_G; $id = intval($_GET['id']); $idtype = $_GET['idtype']; $blog = magic_check_idtype($id, $idtype); if(C::t('common_magiclog')->count_by_action_uid_targetid_idtype_magicid(2, $_G['uid'], $id, $idtype, $this->magic['magicid'])) { showmessage('magicuse_object_once_limit'); } $num = !empty($_G['setting']['feedhotmin']) ? intval($_G['setting']['feedhotmin']) : 3; C::t('home_feed')->update_hot_by_id($id, $idtype, $_G['uid'], $num); C::t('home_blog')->increase($id, $_G['uid'], array('hot' => $num)); usemagic($this->magic['magicid'], $this->magic['num']); updatemagiclog($this->magic['magicid'], '2', '1', '0', '0', $idtype, $id); showmessage('magics_use_success', '', array('magicname'=>$_G['setting']['magics']['hot']), array('alert' => 'right', 'showdialog' => 1)); } function show() { global $_G; $id = intval($_GET['id']); $idtype = $_GET['idtype']; $blog = magic_check_idtype($id, $idtype); if(C::t('common_magiclog')->count_by_action_uid_targetid_idtype_magicid(2, $_G['uid'], $id, $idtype, $this->magic['magicid'])) { showmessage('magicuse_object_once_limit'); } $num = !empty($_G['setting']['feedhotmin']) ? intval($_G['setting']['feedhotmin']) : 3; magicshowtips(lang('magic/hot', 'hot_info', array('num'=>$num))); echo <<

HTML; } } ?>