|
|
@@ -35,7 +35,7 @@ class Dataoke
|
|
|
if ($t['bids']) {
|
|
|
$q['bids'] = $t['bids'];
|
|
|
}
|
|
|
- if ($t['original_id']){
|
|
|
+ if ($t['original_id']) {
|
|
|
$q['original_id'] = $t['original_id'];
|
|
|
}
|
|
|
|
|
|
@@ -47,7 +47,15 @@ class Dataoke
|
|
|
} else {
|
|
|
$s = "";
|
|
|
}
|
|
|
- $new_url = "/kw/" . $t['kw'] . ".html" . $s;
|
|
|
+ if ($t['page']) {
|
|
|
+ $new_url = "/kw/" . $t['kw'] . "/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 = "/kw/" . $t['kw'] . "/index.html" . $s;
|
|
|
+ }
|
|
|
+// $new_url = "/kw/" . $t['kw'] . ".html" . $s;
|
|
|
$content = str_replace('"' . $url . '"', '"' . $new_url . '"', $content);
|
|
|
} else {
|
|
|
if ($t['cid']) {
|
|
|
@@ -57,13 +65,13 @@ class Dataoke
|
|
|
} else {
|
|
|
$s = "";
|
|
|
}
|
|
|
- if ($t['page']){
|
|
|
- $new_url = "/category/".$t['cid']."/page_" . $t['page'] . ".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);
|
|
|
+ $url = htmlentities($url);
|
|
|
$content = str_replace('"' . $url . '"', '"' . $new_url . '"', $content);
|
|
|
- }else{
|
|
|
- $new_url = "/category/" . $t['cid'] . "/index.html".$s;
|
|
|
+ } else {
|
|
|
+ $new_url = "/category/" . $t['cid'] . "/index.html" . $s;
|
|
|
}
|
|
|
$content = str_replace('"' . $url . '"', '"' . $new_url . '"', $content);
|
|
|
} else {
|
|
|
@@ -71,6 +79,12 @@ class Dataoke
|
|
|
$new_url = "/product/" . $t['id'] . ".html";
|
|
|
$content = str_replace('"' . $url . '"', '"' . $new_url . '"', $content);
|
|
|
}
|
|
|
+ if ($t['page'] && $t['r'] == 'l') {
|
|
|
+ $new_url = "/page_" . $t['page'] . ".html";
|
|
|
+ $content = str_replace('"' . $url . '"', '"' . $new_url . '"', $content);
|
|
|
+ $url = htmlentities($url);
|
|
|
+ $content = str_replace('"' . $url . '"', '"' . $new_url . '"', $content);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|