|
@@ -19,9 +19,9 @@ class Dataoke
|
|
|
$data = $rt->all();
|
|
$data = $rt->all();
|
|
|
$data = array_unique($data);
|
|
$data = array_unique($data);
|
|
|
foreach ($data as $k => $url) {
|
|
foreach ($data as $k => $url) {
|
|
|
-// if (strstr($url, "tao.php") === false) {
|
|
|
|
|
-// continue;
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ if (strstr($url, "tao.php") === false) {
|
|
|
|
|
+ continue;
|
|
|
|
|
+ }
|
|
|
$query = parse_url($url);
|
|
$query = parse_url($url);
|
|
|
|
|
|
|
|
$t = parse_query($query['query']);
|
|
$t = parse_query($query['query']);
|
|
@@ -57,7 +57,14 @@ class Dataoke
|
|
|
} else {
|
|
} else {
|
|
|
$s = "";
|
|
$s = "";
|
|
|
}
|
|
}
|
|
|
- $new_url = "/category/" . $t['cid'] . ".html".$s;
|
|
|
|
|
|
|
+ if ($t['page']){
|
|
|
|
|
+ $new_url = "/category/".$t['cid']."/page_" . $t['page'] . ".html".$s;
|
|
|
|
|
+ $content = str_replace('"' . $url . '"', '"' . $new_url . '"', $content);
|
|
|
|
|
+ $url=htmlentities($url);
|
|
|
|
|
+ $content = str_replace('"' . $url . '"', '"' . $new_url . '"', $content);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $new_url = "/category/" . $t['cid'] . "/index.html".$s;
|
|
|
|
|
+ }
|
|
|
$content = str_replace('"' . $url . '"', '"' . $new_url . '"', $content);
|
|
$content = str_replace('"' . $url . '"', '"' . $new_url . '"', $content);
|
|
|
} else {
|
|
} else {
|
|
|
if ($t['id']) {
|
|
if ($t['id']) {
|