skymvc/library/cls_stole.php
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/*
$this->loadClass("stole",false,false);
$st= new stole();
$st->getContent("http://www.skymvc.com/");
$st->cutHtml('<ul class="data-list">');
$arr=$st->preg_all('<a class=\"aurl\" href=\"({url=.*})\">');
print_r($arr);
*/
class stole{
public $content;
public $charset;
public $domain;
public $dir;
public $iswap=0;
public $isCurl=true;
public function __construct(){
}
public function getContent($url,$proxy=""){
$url=str_replace("&","&",$url);
$url=str_replace("/../","/",$url);
$url=str_replace("////","//",$url);
$this->dir=dirname($url)."/";
$a=parse_url($url);
$this->domain=$a['scheme']."://".$a['host']."/";
if($proxy==""){
if($this->isCurl){
$this->content=$this->curl_get_contents($url,$proxy);
}else{
$this->content=file_get_contents($url);
}
}else{
$this->content=$this->curl_get_contents($url,$proxy);
}
if(empty($this->content)) return false;
//替换链接位置
$this->content=$this->replace_src();
//替换图片
$this->content=preg_replace("/<input([^>]*)type=\"image\"([^>]*)>/i","<img \\1 \\2>",$this->content);
$this->charset=$this->getCharset();
if($this->charset!="utf-8"){
$this->content=mb_convert_encoding($this->content,"utf-8",$this->charset);
}
}
function curl_get_contents($url,$proxy=""){
$ch=curl_init();
if(!empty($proxy)){
后面还有 194 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。