>  기사  >  백엔드 개발  >  英雄联盟资料库

英雄联盟资料库

WBOY
WBOY원래의
2016-07-25 09:01:412183검색
一个游戏资料库,查看英雄技能等等的,其实是小偷程序,目的是简化web页面,方便手机查看,英雄资料来自多玩英雄联盟资料库 效果看http://vwap.com.nu 源码说明在我的小站http://wapxz.tk/v/download.php?id=1030
  1. header("Content-Type: text/html; charset=utf-8");date_default_timezone_set("Asia/Shanghai");
  2. function li($p)
  3. {
  4. $l=file_get_contents("http://lol.duowan.com/s/heroes.html");
  5. preg_match_all('!
  6. (.*).*(.*).*!suU',$l,$list);
  7. $ay=ceil(count($list[1])/30);
  8. if($p==NULL){$p=1;}
  9. if($p$ay){die('error');}
  10. $sta=30*($p-1);
  11. $end=30*$p;
  12. for($p2=$sta;$p2{$ys=$p2%3;$m=$list[1][$p2];
  13. if($ys==2){$hh="
    ";}else{$hh="| ";}
  14. if($m!=NULL)
  15. {$l2=$l2."".$list[3][$p2]."".$hh;
  16. }
  17. }
  18. $l2=$l2."
    ";
  19. for($dy=1;$dy{if($dy!=$p)
  20. {$l2=$l2." ".$dy." ";}
  21. else
  22. {$l2=$l2." ".$dy." ";}
  23. }
  24. $time=date("Y.m.d H:i");
  25. $l2="英雄联盟—资料库|WAP在线
    英雄联盟—资料库
    ".$l2." [ ".$p." / ".$ay."]
为易首页.留言反馈 .相关说明
Time: ".$time."
Powered by Vst93
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.