www.gusucode.com > Tatter Tools 0.961 SE GB2312 简体中文版 > upload/admin/article_trackback_pop.php
<? include("../inc_global.php"); include("../inc_function.php"); check_authority(); if ($mode == "delete") { put_query("delete from t3_".$dbid."_tblog where no = '$exenum'"); header("Location: article_trackback_pop.php?no=$no"); exit; } $sql = " select category1, category2, title, body, user_id, image_file_path1, image_file_path2, regdate, is_public from t3_".$dbid." where no = '$no' "; list ( $category1, $category2, $title, $body, $user_id, $image_file_path1, $image_file_path2, $regdate, $is_public ) = mysql_fetch_array(mysql_query($sql)); if ($mode == "send") { $plink = $s_root_path."index.php?pl=$no"; $body = str_trans_rev($body); $body = str_tag_truncate(attach_image(0, $body, $s_root_path, $r_root_path, $attach_path.$image_file_path1.$image_file_path2)); unset($n1, $n2); while ($n1 = strpos($body, "[#M_")) { $n2 = strpos($body, "_M#]"); if (!$n2 || $n1 > $n2) break; $body = substr($body, 0, $n1).substr($body, $n2+4); } $data ="url=".rawurlencode($plink)."&title=".rawurlencode($title)."&blog_name=".rawurlencode($p_title)."&excerpt=".rawurlencode($body); $result = send_packet($url, $data); if (strpos($result, "error>1</error")) $alert = "Trackback引用传送失败.-_-|||."; else { put_query("insert into t3_".$dbid."_tblog (pno, regdate, ping_url) values ($no, '".time()."', '$url')"); $alert = "Trackback引用传送已成功发送.^.^Y"; } ?> <script type="text/javascript"> alert('<?=$alert?>'); window.location.href='article_trackback_pop.php?no=<?=$no?>'; </script> <? exit; } admin_pop_header(""); ?> <script type="text/javascript"> function onclick_send(form) { trim_all(form); if (isNull(form.url,'请输入引用通告传送地址')) return false; if (!confirm('将传送引用通告到输入的网址?您确定吗?\t')) return false; form.submit(); } function onclick_delete(form, num) { trim_all(form); if (!confirm('删除该地址传送引用通告?\t')) return false; form.mode.value = 'delete'; form.exenum.value = num; form.submit(); } </script> <head> <meta http-equiv="Content-Type" content="text/html; charset=GB2312"> <meta name="keywords" content="TT,TatterTools,Skin,php"> <meta name="description" content="Meyu,梦游,华人中文网"> <meta name="generator" content="TatterTools中文BLOG"> <meta name="MSSmartTagsPreventParsing" content="TRUE"> <meta http-equiv="MSThemeCompatible" content="Yes"> </head> <form method="post" name="trackback" action="<?=$PHP_SELF?>"> <input type="hidden" name="mode" value="send"> <input type="hidden" name="exenum"> <input type="hidden" name="no" value="<?=$no?>"> <table width="100%" style="margin:6 0 3 0"><tr> <td width="24" align="right"><img src="../images/num_06.gif" height="17" alt=""></td> <td width="9"><img src="../images/ver_01.gif" width="9" height="17" alt=""></td> <td><img src="../images/cap_06.gif" height="17" alt=""></td> </tr></table> <? print_content_line(); ?> <table class="content_back1" cellpadding="0" cellspacing="0" width="100%"><tr> <td style="padding:10 0 10 0"> <table cellpadding="0" cellspacing="0" style="margin-bottom:5"><tr> <td width="80" align="right" style="padding-top:3">传送主题 :: </td> <td style="padding-top:3"><b><?=$title?></b></td> </tr></table> <table cellpadding="0" cellspacing="0"><tr> <td width="80" align="right" style="padding-top:3">引用地址 :: </td> <td><input class="text" type="text" name="url" style="width:383;" onkeydown="if (event.keyCode == 13) { onclick_insert(category1); return false; }"></td> <td style="padding-left:5"><img class="ib" src="../images/b_send.gif" width="53" height="17" onclick="onclick_send(trackback);" alt=""></td> </tr></table> <? $sql = "select no, regdate, ping_url from t3_".$dbid."_tblog where pno = '$no' order by no desc"; $result = @mysql_query($sql); if (mysql_num_rows ($result)) { ?> <table><tr><td></td></tr></table> <? input_block(); ?> <table cellpadding="0" cellspacing="0" style="margin-top:5"><tr> <td width="80" valign="top" align="right" style="padding-top:6">引用文章 :: </td> <td style="padding-top:2"> <? while(list($no, $regdate, $ping_url) = @mysql_fetch_array($result)) { ?> <table><tr> <td class="h1"><?=get_timevalue0($regdate, 1)?> |</td> <td class="h1" style="padding-left:2;color:#3F5EA5"><?=$ping_url?></td> <td class="h1" style="padding-left:2"><a href="#" onclick="onclick_delete(trackback, '<?=$no?>'); return false;">x</a></td> </tr></table> <? } ?> </td> </tr></table> <? } ?> </td> </tr></table> <? print_content_line(); ?> <table cellpadding="0" cellspacing="0" width="100%"><tr> <td height="35" align="right" style="padding-right:13"><img class="ib" src="../images/b_close.gif" width="53" height="17" onclick="window.close();" alt=""></td> </tr></table> </form> <? admin_pop_footer(""); ?>