plus/bshare.php
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
require_once(dirname(__FILE__)."/../include/common.inc.php");
$dopost = isset($dopost)? $dopost : '';
/**
* 远程获取数据函数
* 例如:DownHost($url, '', 'GET', NULL, NULL, $user, $pass);
*
* @access public
* @param string 站点地址
* @param string 附加数据
* @param string 请求方法,GET POST方式
* @param string 显示agent
* @param int 端口号
* @param string 用户名,便于Authorization: Basic请求
* @param string 密码
* @param int 超限时间
* @return array
*/
function DownHost($host,$data='',$method='GET',$showagent=null,$port=null,$user='',$pwd='',$timeout=30)
{
$reval = array();
$parse = @parse_url($host);
if (empty($parse)) return false;
if ((int)$port>0) {
$parse['port'] = $port;
} elseif (!isset($parse['port'])) {
$parse['port'] = '80';
}
if(!empty($user)) $parse['user'] = $user;
if(!empty($pwd)) $parse['pass'] = $pwd;
$parse['host'] = str_replace(array('http://','https://'),array('','ssl://'),"$parse[scheme]://").$parse['host'];
if (!$fp=@fsockopen($parse['host'],$parse['port'],$errnum,$errstr,$timeout)) {
return false;
}
$method = strtoupper($method);
$wlength = $wdata = $responseText = '';
$parse['path'] = str_replace(array('\\','//'),'/',$parse['path'])."?$parse[query]";
$headers = '';
$agent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2)';
$headers .= "User-Agent: " . $agent . "\r\n";
$accept = 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*';
$headers .= "Accept: " . $accept . "\r\n";
if (! empty($parse['user']) || ! empty($parse['pass']))
$headers .= "Authorization: Basic " . base64_encode($parse['user'] . ":" . $parse['pass']) . "\r\n";
$content_type = '';
if(!empty($content_type))
{
$headers .= "Content-type: $content_type";
if ($content_type == "multipart/form-data")
$headers .= "; boundary=dede" . md5(uniqid(microtime()));
$headers .= "\r\n";
后面还有 77 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。