<span class="unnamed3">function post2() { <br> global $sid,$aid,$PHP_SELF; <br> グローバル $banner,$body,$poster,$email,$type,$CHAR_GB; <br> <br> <br> if(strlen($banner)==0 || strlen($body)==0 || strlen($poster)==0 || strlen($email)==0) { <br> echo " <br> <script language=javascript> <br> alert('恶糶ぃЧ俱'); <br> history.back(); <br> </スクリプト> <br> "; <br> 戻る; <br> } <br> <br> //$banner=AddSlashes($banner); <br> //$body=AddSlashes($body); <br> $rip=getenv('REMOTE_ADDR'); <br><br> $DROOT=getenv('DOCUMENT_ROOT'); <br> include("sql.php3"); <br> $db=mysql_connect($sql['host'], $sql['user'] , $sql['passwd']); <br> $now=date('Y')."-".date('m')."-".date('d')." ".date('H').":".date ('i').":".date('s'); <br> <br> if($CHAR_GB==1) { <br> include("CCharset.php3"); <br> $code=新しい CCharset; <br> $banner=$code->Gb_Big5($banner); <br> $body=$code->Gb_Big5($body); <br> $poster=$code->Gb_Big5($poster); <br> } <br> <br> if($type==1) { <br> $qsql="bbs_docs (aid,sid,banner,body,poster,email,pip,wdate) に挿入 <br> 値('$aid','$sid','$banner','$body','$poster','$email','$rip','$now')"; <br> } else { <br> $qsql="INSERT INTO bbs_subj (aid,banner,body,poster,email,pip,wdate) <br> values('$aid','$banner','$body' ,'$poster','$email','$rip','$now')"; <br> } <br> $rs=mysql_db_query($sql['db'],$qsql); <br> $id=mysql_insert_id(); <br> <br> <br> <br> if($type==0) { //笆mail_list <br> $qsql="INSERT INTO bbs_sml (sid,email)values('$id', '$email')"; <br> $rs=mysql_db_query($sql['db'],$qsql); <br> <br> } <br> if($type==0) Send_the_doc_to_mail_list($aid,$id,$id); <br> else Send_the_doc_to_mail_list($aid,$sid,$id); <br> //incdocs($aid); <br> if($type==0) { $sid=$rid=$id;} <br> else { $rid=$id;} <br> echo " <br> <script language=javascript> <br> document.location='$PHP_SELF?proc=view&aid=$aid&sid=$sid&rid=$rid' <br> <br> "; <br> <br>} <br>//===================================== ================================ <br>function search_docs($aid,$skey) { <br> $DROOT =getenv('DOCUMENT_ROOT'); <br> include("sql.php3"); <br> $db=mysql_connect($sql['host'], $sql['user'] , $sql['passwd']); <br> //$qsql="SELECT * from bbs_docs where sid='$id' および ('$skey' のようなバナー、'$skey' のようなポスター、または '$skey' のような本文) wdate DESC で注文"; <br> if($aid) $qsql="SELECT * from bbs_docs where aid='$aid' および ('$skey' のようなバナー、'$skey' のようなポスター、または '$skey' のような本文) wdate DESC で注文"; <br> else $qsql="SELECT * from bbs_docs where (「$skey」のようなバナー、「$skey」のようなポスター、または「$skey」のような本文) wdate DESC で注文"; <br> $rs=mysql_db_query($sql['db'],$qsql); <br> while($row=mysql_fetch_array($rs)) { <br> $id=$row['id']; <br> $banner=$row['banner']; <br> $poster=$row['poster']; <br> $views=$row['views']; <br> $wdate=sdatetime($row['wdate']); <br> $aid=$row['aid']; <br> $sid=$row['sid']; <br> <br> echo "<tr bgcolor="#F0F0F0">"; <br> echo "<td>"; <br/> echo "<a href=$PHP_SELF?proc=view&aid=$aid&sid=$sid&rid=$id>"; <br> echo " <font color=#836FFF>$banner</font>"; <br> echo "</a>"; <br> <br> echo "</td>"; <br/> echo "<td>"; <br/> echo $poster; <br/> echo "</td>"; <br/> echo "<td class='num'>"; <br> エコー「 」; <br> echo "</td>"; <br/> echo "<td class='num'>"; <br> echo $views; <br> echo "</td>"; <br/> echo "<td class='num'>"; <br> echo $wdate; <br> echo "</td>"; <br/> <br/> echo "</tr>"; <br> } <br> <br>} <br>//================================= ==================================== <br>function search() { <br> global $PHP_SELF ; <br> グローバル $key,$aid; <br> if(!strlen($key)) { <br> echo " <br> <script language=javascript> <br> history.back(); <br> </script> 」; <br> } <br> echo "<table width="85%" border="0" cellpadding="0" cellspacing="1" align="center" class="tablefont">"; <br> echo "<FORM name=mtab ENCTYPE=multipart/form-data METHOD=POST ACTION=$PHP_SELF?proc=search>"; <br> <br> echo "<tr><td>"; <br> <br> echo "<input type='hidden' name=aid value='$aid'>"; <br> echo "穓碝ゅ彻:"; <br> echo "<INPUT TYPE='TEXT' NAME='key' value='$key' size=25 class='tablefont'>"; <br> echo "<INPUT TYPE='Submit'value='琩高' class='tablefont'>"; <br> <br> echo "</td></tr>"; <br> echo "</FORM>"; <br> echo "</table>"; <br> <br> <br> $skey="%$key%"; <br> $DROOT=getenv('DOCUMENT_ROOT'); <br> include("sql.php3"); <br> $db=mysql_connect($sql['host'], $sql['user'] , $sql['passwd']); <br> if($aid) $qsql="SELECT * from bbs_subj where aid='$aid' および ('$skey' のようなバナー、'$skey' のようなポスター、または '$skey' のような本文) wdate DESC による注文"; <br> else $qsql="SELECT * from bbs_subj where (「$skey」のようなバナー、「$skey」のようなポスター、または「$skey」のような本文) wdate DESC で注文"; <br> //echo $qsql; <br> $rs=mysql_db_query($sql['db'],$qsql); <br> <br> echo "<table width="85%" border="0" cellpadding="0" cellspacing="1" align="center" bgcolor="#6CA6CD">"; <br> echo "<tr><td>"; <br> echo "<TABLE width=100% cellPadding=1 cellSpacing=1 bgcolor=white class='tablefont'>"; <br> echo "<tr bgcolor=#F1E1FF>"; <br> echo "<th >夹肈</th>"; <br> echo "<th>祇感染</th>"; <br> echo "<th width="30">莱</th>"; <br> echo "<th width="30"></th>"; <br> echo "<th width=70>ら戳</th>"; <br> echo "</tr>"; <br/> while($row=mysql_fetch_array($rs)) { <br/> $id=$row['id']; <br/> $paid=$row['aid']; <br/> $banner=$row['banner']; <br/> $poster=$row['poster']; <br/> $views=$row['views']; <br/> $wdate=sdatetime($row['wdate']); <br/> $docs=reAnum($id); <br/> echo "<tr bgcolor='#F0F8FF'>"; <br> echo "<td>"; <br/> echo "<a href=$PHP_SELF?proc=view&aid=$paid&sid=$id&rid=$id>"; <br> echo $banner; <br> echo "</a>"; <br> echo "</td>"; <br/> echo "<td>"; <br/> echo $poster; <br/> echo "</td>"; <br/> echo "<td class='num'>"; <br> echo $docs; <br> echo "</td>"; <br/> echo "<td class='num'>"; <br> echo $views; <br> echo "</td>"; <br/> echo "<td class='num'>"; <br> echo $wdate; <br> echo "</td>"; <br> echo "</tr>"; <br> <br> } <br> search_docs($aid,$skey); <br> echo "</td></tr></table>"; <br> echo"</td></tr></table>"; <br> <br> <br> <br> <br>} <br>//============================ ========================================= <br><br>if($ proc=="post2") { <br> setcookie("c_poster",$poster,time()+ 31536000); <br> setcookie("c_email",$email,time()+ 31536000); <br>} <br><br>//if($proc!="do_sel" && $proc!="post2" && $proc!="colloff" && $proc!="collon") include("frame_top") .php3"); <br>switch($proc) { <br> ケース検索: <br> search(); <br> 休憩; <br> ケース mail_list: <br> mail_list(); <br> 休憩; <br> ケース mail_friend: <br> mail_friend(); <br> 休憩; <br> ケース post2: <br> post2(); <br> 休憩; <br> 大文字と小文字の組み合わせ: <br> cook_cooloff(); <br> 休憩; <br> 大文字コロン: <br> cook_coolon(); <br> 休憩; <br> ケースビュー; <br> view(); <br> 休憩; <br> デフォルト: <br> エリア(); <br>Break; <br> } <br>//if($proc!="do_sel" && $proc!="post2" && $proc!="colloff" && $proc!="collon") include("frame_bottom. php3"); <br>?> <br><br>上記の最初の 5 つの記事が 1 ページです <p style="width:100%;text-align:center;margin:10px 0"> <br> <br> </p> <p style="width:100%;text-align:center;margin:10px 0"> </p> <p class="clear"></p> </table> </table> </tr></span>