So the corresponding ASP processing code is as follows
Copy Code code as follows:
Dedearr=split (XIANGGUANID2,CHR (13)) ' Split array
For Dede=0 to UBound (Dedearr)-1 ' array length minus one, as the last two Chr (13) Wrap.
Dedearr2=split (Dedearr (Dede), "|")
DEDETITLE=DEDEARR2 (1)
DEDEURL=DEDEARR2 (0)
If dedetitle<> "" and dedeurl<> "" Then
xiangguanart2=xiangguanart2& "<li><a href=" "&dedeurl&" "title=" "&dedetitle&" "" target= "" _blank "" > "&dedetitle&" </a></li> "
End If
Next
End If
Reference to the processing Code of PHP (DEDECMS)
Copy Code code as follows:
$cfg _softinfos[' sites '] = ereg_replace ("\n{1,}", "\ n", Str_replace ("\ r", " \ n ", $cfg _softinfos[' sites ']);
$sites = explode ("\ n", Trim ($cfg _softinfos[' sites '));
foreach ($sites as $site)
{
if (trim ($site) = = ") continue;
List ($link, $serverName) = Explode (' | ', $site);
if (!eregi ("^ (HTTP|FTP)://", $firstLink)) $flink = Trim ($link). $firstLink;
Else $flink = $firstLink;
if ($cfg _softinfos[' gotojump ']==1) $flink = $phppath. " /download.php?open=1&aid= $aid &cid= $cid &link= ". UrlEncode (Base64_encode ($flink));
$temp = Str_replace ("~link~", $flink, $TEMPSTR);
$temp = Str_replace ("~server~", $serverName, $temp);
$downlinks. = $temp;
}
}