www.gusucode.com > Tatter Tools 0.961 SE GB2312 简体中文版 > upload/kview.php
<? include("inc_global.php"); include("inc_function.php"); $skin = new set_skin_keyword(); $d0 = $skin->s_s; $d1 = str_replace("[##_s_t3_##]", "<script src=lib.js></script>".$skin->s_t3, $d0); $sql = " select no, keyword, body, image_file_path1, image_file_path2, regdate, is_public from t3_".$dbid."_keyword where is_public = '1' and (keyword = '$kd' or no = '$kl') "; list ($no, $keyword, $body, $image_file_path1, $image_file_path2, $regdate, $is_public) = mysql_fetch_array(mysql_query($sql)); $kd_title = "$keyword"; $kd_desc = set_moreless(nl2brc(set_keyword(attach_image(1, $body, $s_root_path, $r_root_path, $attach_path.$image_file_path1.$image_file_path2), $is_sync)), $no); if (strpos($d1, "[##_s_blog_##]")) { unset($d2, $d3); $d2 = $skin->s_blog; $sql = " select no, category1, category2, title, user_id, image_file_path1, image_file_path2, regdate, rp_cnt from t3_".$dbid." where is_public = '1' and (title like ('%$kd%') or body like ('%$kd%')) order by no desc "; // print $sql; $result = @mysql_query($sql); while(list( $no, $category1, $category2, $title, $user_id, $image_file_path1, $image_file_path2, $regdate, $rp_cnt ) = @mysql_fetch_array($result)) { if (!$rp_cnt) unset($rp_cnt); if ($rp_cnt) $rp_cnt = "($rp_cnt)"; $d3_rp = $skin->s_blog_rep; $d3_rp = str_replace("[##_blog_rep_title_##]", $title, $d3_rp); $d3_rp = str_replace("[##_blog_rep_link_##]", "index.php?pl=$no", $d3_rp); $d3_rp = str_replace("[##_blog_rep_regdate_##]", get_timevalue1($regdate), $d3_rp); $d3_rp = str_replace("[##_blog_rep_rp_cnt_##]", $rp_cnt, $d3_rp); $d3 .= $d3_rp; } } $trow = (split("\^",$p_g_key_cache)); foreach ($trow as $k => $row) { if ($row == $kd) { $d3_rp = $skin->s_blog_rep; $d3_rp = str_replace("[##_blog_rep_title_##]", "", $d3_rp); $d3_rp = str_replace("[##_blog_rep_link_##]", $s_gkey_link."?kd=".urlencode($kd), $d3_rp); $d3_rp = str_replace("[##_blog_rep_regdate_##]", "", $d3_rp); $d3_rp = str_replace("[##_blog_rep_rp_cnt_##]", "", $d3_rp); $d3 .= $d3_rp; } } $d2 = str_replace("[##_blog_word_##]", $kd_title, $d2); $d2 = str_replace("[##_blog_desc_##]", $kd_desc, $d2); $d2 = str_replace("[##_blog_conform_##]", $kd_title, $d2); $d2 = str_replace("[##_s_blog_rep_##]", $d3, $d2); $d1 = str_replace("[##_s_blog_##]", $d2, $d1); print $d1; ?>