|  |  | @@ -9,16 +9,6 @@ if (!defined('DEDEINC')) exit ('dedebiz'); | 
		
	
		
			
			|  |  |  | * @license        GNU GPL v2 (https://www.dedebiz.com/license) | 
		
	
		
			
			|  |  |  | * @link           https://www.dedebiz.com | 
		
	
		
			
			|  |  |  | */ | 
		
	
		
			
			|  |  |  | /** | 
		
	
		
			
			|  |  |  | *  获取软件连接 | 
		
	
		
			
			|  |  |  | * | 
		
	
		
			
			|  |  |  | * @access    public | 
		
	
		
			
			|  |  |  | * @param     string  $fvalue  默认值 | 
		
	
		
			
			|  |  |  | * @param     object  $ctag  解析标签 | 
		
	
		
			
			|  |  |  | * @param     object  $refObj  引用对象 | 
		
	
		
			
			|  |  |  | * @param     bool  $downloadpage  下载页面 | 
		
	
		
			
			|  |  |  | * @return    string | 
		
	
		
			
			|  |  |  | */ | 
		
	
		
			
			|  |  |  | function ch_softlinks($fvalue, &$ctag, &$refObj, $fname = '', $downloadpage = false) | 
		
	
		
			
			|  |  |  | { | 
		
	
		
			
			|  |  |  | global $dsql; | 
		
	
	
		
			
				|  |  | @@ -65,14 +55,14 @@ function ch_softlinks_all($fvalue, &$ctag, &$refObj, &$row) | 
		
	
		
			
			|  |  |  | $link = trim($ctag->GetInnerText()); | 
		
	
		
			
			|  |  |  | $serverName = trim($ctag->GetAtt('text')); | 
		
	
		
			
			|  |  |  | $islocal = trim($ctag->GetAtt('islocal')); | 
		
	
		
			
			|  |  |  | if (isset($sertype_arr[$serverName]) && $islinktype && $sertype_arr[$serverName] != $link_type) continue; | 
		
	
		
			
			|  |  |  | if (isset($sertype_arr[$serverName]) && $islinktype) continue; | 
		
	
		
			
			|  |  |  | //分析本地链接 | 
		
	
		
			
			|  |  |  | if (!isset($firstLink) && $islocal == 1) $firstLink = $link; | 
		
	
		
			
			|  |  |  | if ($islocal == 1 && $row['islocal'] != 1) continue; | 
		
	
		
			
			|  |  |  | //支持http,迅雷下载,ftp,flashget | 
		
	
		
			
			|  |  |  | if (!preg_match("#^http:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link)) { | 
		
	
		
			
			|  |  |  | $link = $link; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // if (!preg_match("#^http:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link)) { | 
		
	
		
			
			|  |  |  | //     $link = $link; | 
		
	
		
			
			|  |  |  | // } | 
		
	
		
			
			|  |  |  | $downloads = getDownloads($link); | 
		
	
		
			
			|  |  |  | $uhash = substr(md5($link), 0, 24); | 
		
	
		
			
			|  |  |  | if ($row['gotojump'] == 1) { | 
		
	
	
		
			
				|  |  | 
 |