- 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
<?php
header('Access-Control-Allow-Origin: http://domain/');
$file = file_get_contents($_GET['parse']);
$title = explode("<title>", $file);
$title = explode("</title>", $title[1]);
$title = $title[0];
$arr = explode("</head>", $file);
$arr = $arr[0];
$arr = explode("<head>", $arr);
$arr = $arr[1];
$arr = str_replace("name", "id", $arr);
$arr = str_replace("content", "value", $arr);
$arr = str_replace("meta", "input", $arr);
$arr = str_replace("link", "//", $arr);
$arr = str_replace("script", "//", $arr);
$arr = str_replace("type", "//", $arr);
$arr = str_replace("charset", "//", $arr);
$arr = str_replace("src", "//", $arr);
$arr = str_replace("href", "//", $arr);
$arr = str_replace("http", "//", $arr);
$arr = str_replace("java", "//", $arr);
$arr = str_replace("media", "//", $arr);
$arr = str_replace("html", "//", $arr);
print "<input id=\"title\" value=\"{$title}\">";
print $arr;
?>