Comsenz Inc.'; var $magic = array(); var $parameters = array(); function getsetting(&$magic) {} function setsetting(&$magicnew, &$parameters) {} function usesubmit() { global $_G; $uid = $_G['uid']; $_G['uid'] = 0; $avatar = avatar($uid, 'middle',true); include_once libfile('function/feed'); feed_add( 'thunder', 'magicuse_thunder_announce_title', array( 'uid' => $uid, 'username' => "$_G[username]"), 'magicuse_thunder_announce_body', array( 'uid' => $uid, 'magic_thunder' =>1), '', array($avatar), array("home.php?mod=space&uid=$uid") ); $_G['uid'] = $uid; usemagic($this->magic['magicid'], $this->magic['num']); updatemagiclog($this->magic['magicid'], '2', '1', '0', '0', 'uid', $_G['uid']); showmessage('magics_thunder_message', 'home.php?mod=space&do=home&view=all', array('magicname'=>$_G['setting']['magics']['thunder']), array('alert' => 'right', 'showdialog' => 1, 'locationtime' => true)); } function show() { magicshowtips(lang('magic/thunder', 'thunder_info')); } } ?>