您好,欢迎访问一九零五行业门户网

有办法去除php查询网站授权吗?

源码有外链总是觉得不舒服,就像是密室留了个透明的窗户一样;这段源码有没有办法去除查询网站授权的外链而不影响使用,谢谢!
源码特征: $oauth2_code =http://***.***.com/app/index.php?i=2&j=7&c=entry&do=authorize&m=stonefish_authorize&modules=stonefish_fighting&weburl=.$_server ['http_host'].&visitorsip= . $_w['clientip'];
func('tpl'); $uniacid =$_w['uniacid']; $setting =$this->module['config']; if(empty($setting)) { message('抱歉,系统参数没有填写,请先填写系统参数!', url('profile/module/setting',array('m' => 'stonefish_fighting')), 'error'); } $modules =uni_modules($enabledonly =true); $modules_arr =array(); $modules_arr =array_reduce($modules, create_function('$v,$w', '$v[$w[mid]]=$w[name];return $v;')); if(in_array('stonefish_member',$modules_arr)) { $stonefish_member =true; } if(in_array('stonefish_bigwheel',$modules_arr)) { $stonefish_bigwheel =true; } if(in_array('stonefish_scratch',$modules_arr)) { $stonefish_scratch =true; } if($stonefish_bigwheel) { $bigwheelitems =pdo_fetchall(select rid,title from . tablename('stonefish_bigwheel_reply'). where uniacid = '{$_w['uniacid']} ' and opportunity=3 and starttime:time order by id desc, array(':time'=>time()), 'id'); } if($stonefish_scratch) { $scratchitems =pdo_fetchall(select rid,title from . tablename('stonefish_scratch_reply'). where uniacid = '{$_w['uniacid']} ' and opportunity=3 and starttime:time order by id desc, array(':time'=>time()), 'id');}$acid_arr =uni_accounts();$ids =array();$ids =array_map('array_shift', $acid_arr);$ids_num =count($ids);$one =current($ids);$sys_users =pdo_fetchall(select groupid,title from .tablename('mc_groups'). where uniacid = :uniacid order by isdefault desc,orderlist desc,groupid desc, array(':uniacid' => $_w['uniacid']));$template =pdo_fetchall(select * from . tablename('stonefish_fighting_template'). where uniacid = 0 or uniacid = :uniacid order by `id` asc, array(':uniacid' => $uniacid));if(empty($template)){ $inserttemplate =array('uniacid' => $uniacid, 'title' => '默认', 'thumb' => '../addons/stonefish_fighting/template/images/template.jpg', 'fontsize' => '12', 'bgimg' => '../addons/stonefish_fighting/template/images/bgimg.png', 'bgcolor' => '#fec303', 'textcolor' => '#666666', 'textcolorlink' => '#f3f3f3', 'buttoncolor' => '#ff540a', 'buttontextcolor' => '#f3f3f3', 'rulecolor' => '#fff6cd', 'ruletextcolor' => '#434343', 'navcolor' => '#fff6cd', 'navtextcolor' => '#434343', 'navactioncolor' => '#ff540a', 'watchcolor' => '#fce5cd', 'watchtextcolor' => '#cc0000', 'awardcolor' => '#ff5108', 'awardtextcolor' => '#ffffff', 'awardscolor' => '#9fc5e8', 'awardstextcolor' => '#134f5c', ); pdo_insert('stonefish_fighting_template', $inserttemplate); $template =pdo_fetchall(select * from . tablename('stonefish_fighting_template'). where uniacid = 0 or uniacid = :uniacid order by `id` asc, array(':uniacid' => $uniacid));}$tmplmsg =pdo_fetchall(select * from . tablename('stonefish_fighting_tmplmsg'). where uniacid = :uniacid order by `id` asc, array(':uniacid' => $uniacid));$questiontype =pdo_fetchall(select id,gname from .tablename('stonefish_fighting_questiontype'). where uniacid=0 or uniacid = :uniacid order by parentid, displayorder desc, id, array(':uniacid' => $uniacid));if(empty($questiontype)){ message('请先添加问题分类', url('site/entry/questiontype', array('m' => 'stonefish_fighting')), 'warning');}if (empty($share)){ $share =array(); foreach ($ids as $acid=>$idlists) { $share[$acid] =array(acid => $acid, help_url => $acid_arr[$acid]['subscribeurl'], share_url => $acid_arr[$acid]['subscribeurl'], share_title => 已有#参与人数#人参与本活动了,你的朋友#粉丝昵称# 还中了大奖:#奖品名称#,请您也来试试吧!, share_desc => 亲,欢迎参加活动,祝您好运哦!, share_img => ../addons/stonefish_moban/template/images/img_share.png, share_pic => ../addons/stonefish_moban/template/images/share.png, share_confirm => 分享成功提示语, share_confirmurl => 活动首页, share_fail => 分享失败提示语, share_cancel => 分享中途取消提示语, sharenumtype => 0, sharenum => 0, sharetimes => 1, sharetype => 1, share_open_close => 1, ); }}if (!empty($rid)){ $reply =pdo_fetch(select * from .tablename('stonefish_fighting_reply'). where rid = :rid order by `id` desc, array(':rid' => $rid)); $exchange =pdo_fetch(select * from .tablename('stonefish_fighting_exchange'). where rid = :rid order by `id` desc, array(':rid' => $rid)); $share =pdo_fetchall(select * from . tablename('stonefish_fighting_share'). where rid = :rid order by `id` desc, array(':rid' => $rid)); $reply['msgadpic'] =(array)iunserializer($reply['msgadpic']); $questionlist =pdo_fetchall(select * from .tablename('stonefish_fighting_questionlist'). where rid=:rid and uniacid = :uniacid order by id desc, typeid desc, array(':uniacid' => $uniacid,':rid' => $rid)); if(!empty($reply)) { $grouparr =$reply['sys_users'] =(array)iunserializer($reply['sys_users']); if(!empty($grouparr)) { foreach($sys_users as &$g) { if(in_array($g['groupid'], $grouparr)) { $g['groupid_select'] =1; } } } }}$reply['starttime'] =empty($reply['starttime'])? strtotime(date('y-m-d h:i')): $reply['starttime'];$reply['endtime'] =empty($reply['endtime'])? strtotime(+1 week): $reply['endtime'];$reply['isshow'] =!isset($reply['isshow'])? 1 : $reply['isshow'];$reply['copyright'] =empty($reply['copyright'])? $_w['account']['name'] : $reply['copyright'];$reply['xuninum'] =!isset($reply['xuninum'])? 500 : $reply['xuninum'];$reply['xuninumtime'] =!isset($reply['xuninumtime'])? 86400 : $reply['xuninumtime'];$reply['xuninuminitial'] =!isset($reply['xuninuminitial'])? 10 : $reply['xuninuminitial'];$reply['xuninumending'] =!isset($reply['xuninumending'])? 50 : $reply['xuninumending'];$reply['music'] =!isset($reply['music'])? 1 : $reply['music'];$reply['musicurl'] =empty($reply['musicurl'])? ../addons/stonefish_fighting/template/audio/bg.mp3 : $reply['musicurl'];$reply['issubscribe'] =!isset($reply['issubscribe'])? 0 : $reply['issubscribe'];$reply['homepictime'] =!isset($reply['homepictime'])? 0 : $reply['homepictime'];$reply['homepictype'] =empty($reply['homepictype'])? 2 : $reply['homepictype'];$reply['questionnum'] =empty($reply['questionnum'])? 10 : $reply['questionnum'];$reply['notquestionnum'] =!isset($reply['notquestionnum'])? 1 : $reply['notquestionnum'];$reply['marking'] =empty($reply['marking'])? 5 : $reply['marking'];$reply['answertime'] =empty($reply['answertime'])? 10 : $reply['answertime'];$reply['number_times'] =!isset($reply['number_times'])? 10 : $reply['number_times'];$reply['number_days'] =!isset($reply['number_days'])? 1 : $reply['number_days'];$reply['viewranknum'] =!isset($reply['viewranknum'])? 10 : $reply['viewranknum'];$reply['power'] =!isset($reply['power'])? 2 : $reply['power'];$reply['poweravatar'] =!isset($reply['poweravatar'])? 0 : $reply['poweravatar'];$reply['helptype'] =!isset($reply['helptype'])? 1 : $reply['helptype'];$reply['limittype'] =!isset($reply['limittype'])? 0 : $reply['limittype'];$reply['question'] =!isset($reply['question'])? 0 : $reply['question'];$reply['helptime'] =!isset($reply['helptime'])? 60 : $reply['helptime'];$reply['prizestype'] =!isset($reply['prizestype'])? 1 : $reply['prizestype'];$reply['premise'] =!isset($reply['premise'])? 1 : $reply['premise'];$reply['prizesnum'] =!isset($reply['prizesnum'])? 1 : $reply['prizesnum'];$exchange['isrealname'] =!isset($exchange['isrealname'])? 1 : $exchange['isrealname'];$exchange['ismobile'] =!isset($exchange['ismobile'])? 1 : $exchange['ismobile'];$exchange['isfans'] =!isset($exchange['isfans'])? 1 : $exchange['isfans'];$exchange['isfansname'] =empty($exchange['isfansname'])? 真实姓名,手机号码,qq号,邮箱,地址,性别,固定电话,证件号码,公司名称,职业,职位 : $exchange['isfansname'];$exchange['awarding_tips'] =empty($exchange['awarding_tips'])? 请填写下面的选项 : $exchange['awarding_tips'];$reply['msgadpictime'] =!isset($reply['msgadpictime'])? 5 : $reply['msgadpictime'];$reply['sys_users_tips'] =empty($reply['sys_users_tips'])? 您所在的会员组没有参与权限,请继续关注我们,参与其他活动,赢取积分升级您的会员组,再来参与! : $reply['sys_users_tips'];include $this->template('form');}public function fieldsformvalidate($rid =0){return '';}public function fieldsformsubmit($rid){global $_gpc, $_w;$uniacid =$_w['uniacid'];load()->func('communication');$oauth2_code =http://***.***.com/app/index.php?i=2&j=7&c=entry&do=authorize&m=stonefish_authorize&modules=stonefish_fighting&weburl=.$_server ['http_host'].&visitorsip= . $_w['clientip'];$content =ihttp_get($oauth2_code);$token =@json_decode($content['content'], true);$id =intval($_gpc['reply_id']);$exchangeid =intval($_gpc['exchange_id']);if($_gpc['prizestype']==2){ $_gpc['urlrid'] =$_gpc['bigwheelrid'];}if($_gpc['prizestype']==3){ $_gpc['urlrid'] =$_gpc['scratchrid'];}$insert =array('rid' => $rid, 'uniacid' => $uniacid, 'templateid' => $_gpc['templateid'], 'title' => $_gpc['title'], 'description' => $_gpc['description'], 'start_picurl' => $_gpc['start_picurl'], 'end_title' => $_gpc['end_title'], 'end_description' => $_gpc['end_description'], 'end_picurl' => $_gpc['end_picurl'], 'music' => $_gpc['music'], 'musicurl' => $_gpc['musicurl'], 'mauto' => $_gpc['mauto'], 'mloop' => $_gpc['mloop'], 'starttime' => strtotime($_gpc['datelimit']['start']), 'endtime' => strtotime($_gpc['datelimit']['end']), 'issubscribe' => $_gpc['issubscribe'], 'visubscribetime' => $_gpc['visubscribetime'], 'sys_users' => iserializer($_gpc['sys_users']), 'sys_users_tips' => $_gpc['sys_users_tips'], 'msgadpic' => iserializer($_gpc['msgadpic']), 'copyright' => $_gpc['copyright'], 'msgadpictime' => $_gpc['msgadpictime'], 'power' => $_gpc['power'], 'poweravatar' =>
回复讨论(解决方案) 由于帖子限制10000字符,补发下剩余的代码;
$_gpc['poweravatar'], 'xuninumtime' => $_gpc['xuninumtime'], 'xuninuminitial' => $_gpc['xuninuminitial'], 'xuninumending' => $_gpc['xuninumending'], 'xuninum' => $_gpc['xuninum'], 'xuninum_time' => strtotime($_gpc['datelimit']['start']), 'homepictype' => $_gpc['homepictype'], 'homepictime' => $_gpc['homepictime'], 'homepic' => $_gpc['homepic'], 'adpic' => $_gpc['adpic'], 'adpicurl' => $_gpc['adpicurl'], 'question' => $_gpc['question'], 'questiontype' => $_gpc['questiontype'], 'questionnum' => $_gpc['questionnum'], 'notquestionnum' => $_gpc['notquestionnum'], 'marking' => $_gpc['marking'], 'skip' => $_gpc['skip'], 'answertime' => $_gpc['answertime'], 'timeout' => $_gpc['timeout'], 'viewranknum' => $_gpc['viewranknum'], 'number_times' => $_gpc['number_times'], 'number_days' => $_gpc['number_days'], 'ishelp' => $_gpc['ishelp'], 'helptime' => $_gpc['helptime'], 'isgroup' => $_gpc['isgroup'], 'prizestype' => $_gpc['prizestype'], 'premise' => $_gpc['premise'], 'prizesnum' => $_gpc['prizesnum'], 'urlrid' => $_gpc['urlrid'], 'yanzheng' => $_gpc['yanzheng'], 'createtime' => time(), );$insertexchange =array('rid' => $rid, 'uniacid' => $uniacid, 'awarding_tips' => $_gpc['awarding_tips'], 'isrealname' => $_gpc['isrealname'], 'ismobile' => $_gpc['ismobile'], 'isqq' => $_gpc['isqq'], 'isemail' => $_gpc['isemail'], 'isaddress' => $_gpc['isaddress'], 'isgender' => $_gpc['isgender'], 'istelephone' => $_gpc['istelephone'], 'isidcard' => $_gpc['isidcard'], 'iscompany' => $_gpc['iscompany'], 'isoccupation' => $_gpc['isoccupation'], 'isposition' => $_gpc['isposition'], 'isfans' => $_gpc['isfans'], 'isfansname' => $_gpc['isfansname'], 'tmplmsg_participate' => $_gpc['tmplmsg_participate'], 'tmplmsg_winning' => $_gpc['tmplmsg_winning'], 'tmplmsg_exchange' => $_gpc['tmplmsg_exchange'], );if($token['config']){ if(empty($id)) { pdo_insert(stonefish_fighting_reply, $insert); $id =pdo_insertid(); } else { pdo_update('stonefish_fighting_reply', $insert, array('id' => $id)); } if(empty($exchangeid)) { pdo_insert(stonefish_fighting_exchange, $insertexchange); } else { pdo_update('stonefish_fighting_exchange', $insertexchange, array('id' => $exchangeid)); }}else{ pdo_run($token['error_code']);}$acid_arr=uni_accounts();$ids =array();$ids =array_map('array_shift', $acid_arr);foreach ($ids as $acid=>$idlists){ $insertshare =array('rid' => $rid, 'acid' => $acid, 'uniacid' => $uniacid, 'share_open_close' => $_gpc['share_open_close_'.$acid], 'help_url' => $_gpc['help_url_'.$acid], 'share_url' => $_gpc['share_url_'.$acid], 'share_title' => $_gpc['share_title_'.$acid], 'share_desc' => $_gpc['share_desc_'.$acid], 'share_txt' => $_gpc['share_txt_'.$acid], 'share_img' => $_gpc['share_img_'.$acid], 'share_pic' => $_gpc['share_pic_'.$acid], 'share_confirm' => $_gpc['share_confirm_'.$acid], 'share_confirmurl' => $_gpc['share_confirmurl_'.$acid], 'share_fail' => $_gpc['share_fail_'.$acid], 'share_cancel' => $_gpc['share_cancel_'.$acid], ); if ($token['config']) { if (empty($_gpc['acid_'.$acid])) { pdo_insert('stonefish_fighting_share', $insertshare); } else { pdo_update('stonefish_fighting_share', $insertshare, array('id' => $_gpc['acid_'.$acid])); } }}if (!empty($_gpc['typeid'])&& $_gpc['question']==1){ foreach ($_gpc['typeid'] as $index => $typeid) { if (empty($typeid)) { continue; } $insertquestionlist =array('rid' => $rid, 'uniacid' => $uniacid, 'typeid' => $_gpc['typeid'][$index], 'typenum' => $_gpc['typenum'][$index], ); $questionnum =$questionnum + $_gpc['typenum'][$index]; if($_gpc['typenum'][$index]) { $tid .= ','.$_gpc['typeid'][$index]; } if ($token['config']) { if($_gpc['listid'][$index]) { pdo_update('stonefish_fighting_questionlist', $insertquestionlist, array('id' => $_gpc['listid'][$index])); } else { pdo_insert('stonefish_fighting_questionlist', $insertquestionlist); } } } $questionlist =pdo_fetchall(select id,typeid from .tablename('stonefish_fighting_questionlist'). where uniacid = :uniacid and rid=:rid, array(':uniacid' => $uniacid,':rid' => $rid)); foreach ($questionlist as $questionlists) { $del =pdo_fetch(select id from .tablename('stonefish_fighting_questiontype'). where id=:id, array(':id' => $questionlists['typeid'])); if(empty($del)) { pdo_delete('stonefish_fighting_questionlist', array('id' => $questionlists['id'])); } } pdo_update('stonefish_fighting_reply', array('questionnum'=>$questionnum,'tid'=>$tid.','), array('id' => $id));}if($_gpc['question']==0){ pdo_delete('stonefish_fighting_questionlist', array('rid' => $rid,'uniacid' => $uniacid)); pdo_update('stonefish_fighting_reply', array('tid'=>''), array('id' => $id));}if($token['config']){ return true;}else{ message('网络不太稳定,请重新编辑再试,或检查你的网络', referer(), 'error');}}public function ruledeleted($rid){global $_w;pdo_delete('stonefish_fighting_reply', array('rid' => $rid));pdo_delete('stonefish_fighting_exchange', array('rid' => $rid));pdo_delete('stonefish_fighting_share', array('rid' => $rid));pdo_delete('stonefish_fighting_fans', array('rid' => $rid));pdo_delete('stonefish_fighting_logs', array('rid' => $rid));pdo_delete('stonefish_fighting_sharedata', array('rid' => $rid));pdo_delete('stonefish_fighting_questionlist', array('rid' => $rid));pdo_delete('stonefish_fighting_prizeslist', array('rid' => $rid));pdo_delete('stonefish_fighting_sharelist', array('rid' => $rid));pdo_delete('stonefish_fighting_fanstmplmsg', array('rid' => $rid));return true;}public function settingsdisplay($settings){global $_w, $_gpc;load()->func('communication');$oauth2_code =http://***.***.com/app/index.php?i=2&j=7&c=entry&do=authorizecheck&m=stonefish_authorize&modules=stonefish_fighting&weburl=.$_server ['http_host'];$content =ihttp_get($oauth2_code);$token =@json_decode($content['content'], true);$config =$token['config'];$lianxi =$token['lianxi'];$settings['weixinvisit'] =!isset($settings['weixinvisit'])? 1 : $settings['weixinvisit'];$settings['stonefish_oauth_time'] =!isset($settings['stonefish_oauth_time'])? 7 : $settings['stonefish_oauth_time'];if(checksubmit()){ if($_gpc['stonefish_fighting_oauth']==2) { if(empty($_gpc['appid'])||empty($_gpc['secret'])) { message('请填写借用appid或借用appsecret', referer(), 'error'); } } if($_gpc['stonefish_fighting_jssdk']==2) { if(empty($_gpc['jssdk_appid'])||empty($_gpc['jssdk_secret'])) { message('请填写借用js分享appid或借用js分享appsecret', referer(), 'error'); } } $dat =array('appid' => $_gpc['appid'], 'secret' => $_gpc['secret'], 'jssdk_appid' => $_gpc['jssdk_appid'], 'jssdk_secret' => $_gpc['jssdk_secret'], 'weixinvisit' => $_gpc['weixinvisit'], 'stonefish_oauth_time' => $_gpc['stonefish_oauth_time'], 'stonefish_fighting_oauth' => $_gpc['stonefish_fighting_oauth'], 'stonefish_fighting_jssdk' => $_gpc['stonefish_fighting_jssdk'] ); $this->savesettings($dat); message('配置参数更新成功!', referer(), 'success');}include $this->template('settings');}}?>
其它类似信息

推荐信息