文章目录[隐藏]
源码在这里求破解
回复讨论(解决方案)
注释掉的哪行有点问题,只能参照别的文件自己修补下了
其他地方的应该是没有问题。
<?phpif ( defined( "IN_DISCUZ" ) ){ exit( "Access Denied" );}define( "S_PLUGINNAME", "singcere_wxpublic" );require_once( DISCUZ_ROOT."./source/plugin/singcere_wxpublic/function/function_singcere_core.php" );require_once( DISCUZ_ROOT."./source/plugin/singcere_wxpublic/gc.class.php" );require_once( s_libfile( "api/weixin/wechatcallback" ) );require_once( s_libfile( "cmdhelper" ) );global $_G;$wechat = new wechatcallback( getpluginparam( "token" ) );if ( $_GET['echostr'] ){ $wechat->valid( ); exit( );}if ( $_GET['debug'] == 1 ){ if ( $_SERVER['REQUEST_METHOD'] == "GET" ) { $gc = new GC( "singcere_wxpublic.plugin", 0 ); $gc->validate( 43200, "showmessage" ); global $_G; header( "Content-type: text/html; charset=utf-8" ); $wxlogo = file_exists( $_G['setting']['attachurl']."/singcere_file/singcere_wxpublic/wxlogo.jpg" ) ? $_G['setting']['attachurl']."/singcere_file/singcere_wxpublic/wxlogo.jpg" : "source/plugin/singcere_wxpublic/template/src/images/wx.jpg"; $sitename = str_convert_encoding( $_G['setting']['bbname'], CHARSET, "utf-8" ); $page = in_array( $_GET['page'], array( "welcome", "guide", "code" ) ) ? $_GET['page'] : "welcome"; include( template( "singcere_wxpublic:".$page ) ); } else { header( "Content-type: text/html; charset=utf-8" ); global $_G; global $syscmdlist; global $cuscmdlist; global $postobj; $postobj = $wechat->getMsg( ); $ch = new cmdhelper( $postobj ); $gc = new GC( "singcere_wxpublic.plugin", 0 ); if ( $gc->validate( 43200, "text" ) ) { $wechat->responseMsg( $ch->send( $gc->validate( 43200, "text", "The website has not been authorized (Singcere.net)" ) ) ); } define( "IN_WEIXIN", 1 ); if ( getpluginparam( "close" ) ) { /*$wechat->responseMsg( getpluginparam( "close_notice" )( getpluginparam( "close_notice" ) ) );*/ exit( ); } switch ( $postobj->MsgType ) { case "text" : $content = str_convert_encoding( trim( $postobj->Content ), "UTF-8", CHARSET ); break; case "image" : $_GET['action'] = "publish"; require( DISCUZ_ROOT."source/plugin/singcere_wxpublic/ishare.inc.php" ); exit( ); case "event" : $content = str_convert_encoding( trim( $postobj->Event ), "UTF-8", CHARSET ); } $cmd = explode( $_G['cache']['plugin']['singcere_wxpublic']['separator'], $content, 2 ); if ( $cmd[0] == "subscribe" ) { $salutation = str_replace( "{bbname}", $_G['setting']['bbname'], getpluginparam( "salutation" ) ); $wechat->responseMsg( $ch->send( $salutation ) ); exit( ); } $ch->init( ); $wechat->responseMsg( $ch->exec( ) ); }}?>
注释掉的哪行有点问题,只能参照别的文件自己修补下了
其他地方的应该是没有问题。
<?phpif ( defined( "IN_DISCUZ" ) ){ exit( "Access Denied" );}define( "S_PLUGINNAME", "singcere_wxpublic" );require_once( DISCUZ_ROOT."./source/plugin/singcere_wxpublic/function/function_singcere_core.php" );require_once( DISCUZ_ROOT."./source/plugin/singcere_wxpublic/gc.class.php" );require_once( s_libfile( "api/weixin/wechatcallback" ) );require_once( s_libfile( "cmdhelper" ) );global $_G;$wechat = new wechatcallback( getpluginparam( "token" ) );if ( $_GET['echostr'] ){ $wechat->valid( ); exit( );}if ( $_GET['debug'] == 1 ){ if ( $_SERVER['REQUEST_METHOD'] == "GET" ) { $gc = new GC( "singcere_wxpublic.plugin", 0 ); $gc->validate( 43200, "showmessage" ); global $_G; header( "Content-type: text/html; charset=utf-8" ); $wxlogo = file_exists( $_G['setting']['attachurl']."/singcere_file/singcere_wxpublic/wxlogo.jpg" ) ? $_G['setting']['attachurl']."/singcere_file/singcere_wxpublic/wxlogo.jpg" : "source/plugin/singcere_wxpublic/template/src/images/wx.jpg"; $sitename = str_convert_encoding( $_G['setting']['bbname'], CHARSET, "utf-8" ); $page = in_array( $_GET['page'], array( "welcome", "guide", "code" ) ) ? $_GET['page'] : "welcome"; include( template( "singcere_wxpublic:".$page ) ); } else { header( "Content-type: text/html; charset=utf-8" ); global $_G; global $syscmdlist; global $cuscmdlist; global $postobj; $postobj = $wechat->getMsg( ); $ch = new cmdhelper( $postobj ); $gc = new GC( "singcere_wxpublic.plugin", 0 ); if ( $gc->validate( 43200, "text" ) ) { $wechat->responseMsg( $ch->send( $gc->validate( 43200, "text", "The website has not been authorized (Singcere.net)" ) ) ); } define( "IN_WEIXIN", 1 ); if ( getpluginparam( "close" ) ) { /*$wechat->responseMsg( getpluginparam( "close_notice" )( getpluginparam( "close_notice" ) ) );*/ exit( ); } switch ( $postobj->MsgType ) { case "text" : $content = str_convert_encoding( trim( $postobj->Content ), "UTF-8", CHARSET ); break; case "image" : $_GET['action'] = "publish"; require( DISCUZ_ROOT."source/plugin/singcere_wxpublic/ishare.inc<em style="color:transparent">本文来源gao.dai.ma.com搞@代*码#网</em><a>搞代gaodaima码</a>.php" ); exit( ); case "event" : $content = str_convert_encoding( trim( $postobj->Event ), "UTF-8", CHARSET ); } $cmd = explode( $_G['cache']['plugin']['singcere_wxpublic']['separator'], $content, 2 ); if ( $cmd[0] == "subscribe" ) { $salutation = str_replace( "{bbname}", $_G['setting']['bbname'], getpluginparam( "salutation" ) ); $wechat->responseMsg( $ch->send( $salutation ) ); exit( ); } $ch->init( ); $wechat->responseMsg( $ch->exec( ) ); }}?>
在请教个问题,就是为什么他会一直提示 The website has not been authorized (Singcere.net) 有没有办法让他不提示这个呢 怎么取消这个验证