推荐使用Bandwagon建站

适用于绝大多数由discuz程序构建的网站
原理:随机访问用户空间获取金币

<?php
$useList = array(
                                '用户1'=>'密码1',
                                '用户2'=>'密码2'
                                );

foreach($useList as $k=>$v){
        locSign($k,$v);
}
function locSign($use,$pwd){
        $html = http_post('https://www.hostloc.com/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=1','fastloginfield=username&username='.urlencode($use).'&cookietime=2592000&password='.urlencode($pwd).'&quickforward=yes&handlekey=ls');
        if(!strrpos($html,'window.location.href')){echo $use.' login error<br>';return false;}
        $cookie = getCookie($html,'Set-Cookie: ',';');
        for($i=26200; $i<=26210; $i++){
                $html = http_get("https://www.hostloc.com/space-uid-{$i}.html",$cookie);
        }
        echo $use.' Sign ok!!!<br>';
}
function http_get($url,$cookie) {
        $curl = curl_init($url);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($curl, CURLOPT_HTTPHEADER,array('User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0','Cookie: '.$cookie));
        curl_setopt($curl, CURLOPT_TIMEOUT, 20);
        $src = curl_exec($curl);
        curl_close($curl);
        return $src;
}
function http_post($url,$body){
        $ch = curl_init();  
        curl_setopt($ch, CURLOPT_URL,$url);  
        curl_setopt($ch, CURLOPT_HEADER, TRUE);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_TIMEOUT, 20);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
        $result = curl_exec($ch);  
        curl_close($ch);  
        return $result;    
}
function getCookie($str,$leftStr,$rightStr){
        if(strrpos($str,$leftStr) == false || strrpos($str,$rightStr) == false){return '';}
        $arr1 = explode($leftStr,$str);$i = 0;$cookie = '';
        foreach($arr1 as $k=>$v){$i++;if($i > 1){$arr2 = explode($rightStr,$v);$cookie .= $arr2[0].'; ';}}
        return $cookie;
}

推荐使用dnspod的D监控和360网站监控

example,增加一个*google.com

  ".google.com",
  "||google.com",

也可以直接参考别的在线pac进行编写
将pac文件替换为如下代码

var proxy = "PROXY 127.0.0.1:1080;";

var domains = {
  "google.com": 1,
  "ipip.net": 1,
  "namechep.com": 1
};

var direct = 'DIRECT;';

var hasOwnProperty = Object.hasOwnProperty;

function FindProxyForURL(url, host) {
    if (host == "www.so.com") {
        return "PROXY 360.itzmx.com:80";
    }

    var suffix;
    var pos = host.lastIndexOf('.');
    while(1) {
        suffix = host.substring(pos + 1);
        if (suffix == "360.cn")
            if (url.indexOf('http://') == 0)
                return "PROXY 360.itzmx.com:80";
        if (hasOwnProperty.call(domains, suffix)) {
            return proxy;
        }
        if (pos <= 0) {
            break;
        }
        pos = host.lastIndexOf('.', pos - 1);
    }
    return direct;
}

可以看出,我添加了namechep、ipip、google的网址,更新pac后你可以访问ipip.net查看是否生效

过滤了置顶帖,也未写权限隐藏,需要可自行添加

 <?php foreach($forumlist_show as $_forum) { ?>
    <a href="<?php echo url("forum-$_forum[fid]");?>">
      <?php echo $_forum['name'];?>
    </a>
 <?php
  $_threadlist = thread__find_by_fid($_forum['fid'], 1, 6);
  //6表示每个列表显示6个帖子。
  thread_list_access_filter($_threadlist, $gid);
 ?>
  <ul>
   <?php foreach($_threadlist as $_thread) { ?>
    <li>
     <a href="<?php echo url("thread-$_thread[tid]");?>">
      <?php echo $_thread['subject'];?>
     </a>
    </li>
      <?php } ?>
   </ul>
 <?php } ?>

参考自ok0816.com

我遇到此问题是因为在viewhtm/footer.inc.htm把下面这段删掉了



<?php $browser = get__browser();?>
    <?php if($browser['name'] == 'ie') { ?>
    <script src="<?php echo $conf['view_url'];?>js/es6-shim.js<?php echo $static_version;?>"></script>
    <?php } ?>
    <script src="lang/<?php echo $conf['lang'];?>/bbs.js<?php echo $static_version;?>"></script>
    <script src="<?php echo $conf['view_url'];?>js/jquery-3.1.0.js<?php echo $static_version;?>"></script>
    <script src="<?php echo $conf['view_url'];?>js/popper.js<?php echo $static_version;?>"></script>
    <script src="<?php echo $conf['view_url'];?>js/bootstrap.js<?php echo $static_version;?>"></script>
    <script src="<?php echo $conf['view_url'];?>js/xiuno.js<?php echo $static_version;?>"></script>
    <script src="<?php echo $conf['view_url'];?>js/bootstrap-plugin.js<?php echo $static_version;?>"></script>
    <script src="<?php echo $conf['view_url'];?>js/async.js<?php echo $static_version;?>"></script>
    <script src="<?php echo $conf['view_url'];?>js/form.js<?php echo $static_version;?>"></script>
    <script>
    var debug = DEBUG = <?php echo DEBUG; ?>;
    var url_rewrite_on = <?php echo $conf['url_rewrite_on'];?>;
    var forumarr = <?php echo xn_json_encode($forumarr);?>;
    var fid = <?php echo $fid;?>;
    var uid = <?php echo intval($uid);?>;
    var gid = <?php echo intval($gid);?>;
    xn.options.water_image_url = '<?php echo $conf['logo_water_url'];?>';    // 水印图片 / watermark image
    </script>
    <script src="<?php echo $conf['view_url'];?>js/bbs.js<?php echo $static_version;?>"></script>

据说还有种原因就是js/jq冲突,这就要排除插件了