?? article.php
字號:
<?php
session_start();
include "Conn/conn.php";
$file_id1=$_GET[file_id];
$bool = false;
$str=array("大","更","創","天","科","客","博","技","立","新");
$word=strlen($str);
for($i=0;$i<4;$i++){
$num=rand(0,$word*2-1); //$word=$word*2-1
$img=$img."<img src=' images/checkcode/".$num.".gif' width='16' height='16'>"; //顯示隨機圖片
$pic=$pic.$str[$num]; //將圖片轉換成數組中的文字
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="CSS/style.css" rel="stylesheet">
<title>瀏覽博客文章及評論</title>
<script src="JS/check.js" language="javascript">
</script>
<script language="javascript">
function r_check(){
if (document.myform.txt_content.value==""){
alert("評論內容不能為空!");myform.txt_content.focus();return false;
}
}
function d_chk(urlstr){
if(confirm("確定要刪除選中的項目嗎?一旦刪除將不能恢復!")){
return true;
}
else
return false;
}
function fri_chk(){
if(confirm("確定要刪除選中的項目嗎?一旦刪除將不能恢復!")){
return true;
}
else
return false;
}
</script>
</head>
<body style="MARGIN-TOP: 0px; VERTICAL-ALIGN: top; PADDING-TOP: 0px; TEXT-ALIGN: center">
<TABLE width="757" cellPadding=0 cellSpacing=0 style="WIDTH: 755px">
<TBODY>
<TR>
<TD style="VERTICAL-ALIGN: bottom; HEIGHT: 6px" colSpan=3>
<table width="100%" height="149" border="0" cellpadding="0" cellspacing="0" background="images/F_head.jpg">
<tr>
<td height="51" align="right">
<br>
<table width="262" border="0" cellspacing="0" cellpadding="0">
<tr align="left">
<td width="26" height="20"><a href="index.php"></a></td>
<td width="71" class="word_white"><a href="index.php"><span style="FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none">首 頁</span></a></td>
<td width="87"><a href="file.php"><span style="FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none">我的博客</span></a></td>
<td width="55"><a href="<?php echo (!isset($_SESSION[username])?'Regpro.php':'safe.php'); ?>"><span style="FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none"><?php echo (!isset($_SESSION[username])?"博客注冊":"安全退出"); ?></span></a></td>
<td width="23"> </td>
</tr>
</table>
<br></td>
</tr>
<tr>
<td height="66" align="right"><p> </p></td>
</tr>
<tr>
<form name="form" method="post" action="checkuser.php">
<td height="20" valign="baseline">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" align="left" valign="baseline" style=" text-indent:50px;">
<?php
if(!isset($_SESSION[username])){
?>
用戶名:
<input name=txt_user size="10">
密
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -