PHP код:
GLOBAL $arr;
If(!$arr)
{
$arr = Array();
}
$ind = c("edit1")->text;
$mail = file_get_contents("http://rghost.ru/".$ind);
If(preg_match_all('#<a href="http://rghost.ru/download/(.+?)class#i', $mail, $text_arr))
{
$txt = '';
ForEach($text_arr[0] AS $Val)
{
$Val = StrToLower($Val);
If(!IsSet($arr[$Val]))
{
$txt .= "\n" . $Val;
}
$arr[$Val] = True;
}
c("listBox1")->text.= $txt;
}
c("listBox1")->items->delete(0);
c("listBox1")->items->delete(1);
c("listBox1")->text = str_replace('<a href="', '', c("listBox1")->text);
c("listBox1")->text = str_replace('" class', '', c("listBox1")->text);
c("listBox1")->text = str_replace('%', ' ', c("listBox1")->text);
c("button1")->enabled = false;
c("label1")->caption = "0";
Поясни пожалуйста как этот код работает?))не пониманию если честно как с помощью этого кода найти прямую ссылку