- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
<?
$url = file_get_contents("url страницы");
$js = "<script";
$endjs = "</script>";
$test = 0;
$i = 1;
while($test == 0)
{
$q = strpos($url, $js);
$q++;
$y = strpos($url,$endjs);
$y++;
$url = substr($url, $q, $y);
if($url == false)
{
$test = 1;
}else{
$i++;
}
}
echo"<br>Удалено скриптов: " .$i. "<br>";
$url = htmlspecialchars("$url", ENT_QUOTES);
echo $url;
?>
hidespb 13.04.2011 11:39 # +2
Govnocoder#0xFF 13.04.2011 12:02 # +2
Ебал её рука?
Lure Of Chaos 13.04.2011 13:50 # +10
Govnocoder#0xFF 13.04.2011 17:58 # 0
guest 30.04.2011 00:15 # 0