<?php sleep(1); require_once('function.php'); //print_r($_POST); @session_start(); //µÃǨÊͺ IP if ($_SERVER['HTTP_CLIENT_IP']) { $IPADDRESS = $_SERVER['HTTP_CLIENT_IP']; } elseif (ereg("[0-9]",$_SERVER["HTTP_X_FORWARDED_FOR"] )) { $IPADDRESS = $_SERVER["HTTP_X_FORWARDED_FOR"]; } else { $IPADDRESS = $_SERVER["REMOTE_ADDR"]; } define("IPADDRESS",$IPADDRESS) ; session_register('IP'); $sql = "SELECT * FROM `content` WHERE `id` =$_POST[data1] "; //echo $sql; $t = new itm(); $data = $t->Qarray($sql); if(gettype($data)== "array" ){ $sqlb= "SELECT * FROM `menu` WHERE `id` =$_POST[data1] "; $dat = $t->Qarray($sqlb); $number = $_POST['data1']; $num = $data[0]['num']; $view = $data[0]['view']+1; $sql3 = "UPDATE `content` SET `view` = '$view', `L_IP` = '$IPADDRESS' WHERE `id` =$number"; //echo $sql3; $t->Qarray($sql3); $data = $t->Qarray($sql); ?> <table width="100%" border="0"> <tr> <td><hr /><h1><?php echo $data[0]['name']; ?> </h1> </td> </tr> <tr> <td> <?php echo $data[0]['detail']; ?><br /> <hr /></td> </tr> <tr> <td> à¢Õ¹â´Â : <?php echo $data[0]['postby']; ?> àÁ×èÍÇѹ·Õè : <?php echo $data[0]['date']; ?></td> </tr> <tr> <td>à»Ô´ÍèÒ¹ : <?php echo $data[0]['view']; ?></td> </tr> <tr> <td> à¢éÒªÁÅèÒÊØ´¨Ò¡ IP: <?php echo $data[0]['L_IP']; ?><a href="#f1_upload_form"></a></td> </tr> </table> <hr /> <br /> <div align="right"><a href="#f1_upload_form"><img src="images/go_down.gif" width="54" height="21" /></a></div><br /> <?php //------------------------------------------------------------------------------------------------------------------------ show comment //------------------------------------------------------------------------------------------------------------------------ show comment //------------------------------------------------------------------------------------------------------------------------ show comment //------------------------------------------------------------------------------------------------------------------------ show comment $id = $data[0]['id']; $sql = "SELECT * FROM `comment` WHERE `comment_id` = $id"; //echo $sql; $comment = $t->Qarray($sql); //print_r($comment); $m= 0; $i=1; if(gettype($comment)== "array" ){ foreach($comment as $d){ if($m==0){$color ="#CCFFCC"; $m=1; }else{ $color ="#CCFFFF"; $m=0; } ?> <table border="0" cellspacing="1" cellpadding="0" width="550" align="center" bgcolor="#0000FF"" > <tbody bgcolor="<?php echo $color; ?>"> <tr> <td><strong>¤ÇÒÁ¤Ô´àËç¹·Õè </strong><?php echo $i ;?> <?php if($_SESSION['user']){ echo "<a href=\"?file=comment.php&action=del&id=".$d['comment_date']."\" onclick=\"return confirm('Â×¹Âѹ¡ÒÃź ?');\"><img src=\"images/trash.gif\" /></a>"; } ?> <br /> <?php echo $d['comment_date']; ?></td> </tr> <tr> <td height="1"></td> </tr> <tr> <td><blockquote> <p><br /> <?php echo $d['comment_detail'] ;?><br /> <br /> <br /> </p> </blockquote></td> </tr> <tr> <td height="1"></td> </tr> <tr> <td><strong>â´Â : </strong><strong><?php echo $d['comment_name']; ?></strong> <strong>äÍ¾Õ : </strong><?php echo $d['comment_ip']; ?></td> </tr> </tbody> </table> <br /> <?php $i++; } } //------------------------------------------------------------------------------------------------------------------------ show comment //------------------------------------------------------------------------------------------------------------------------ show comment //------------------------------------------------------------------------------------------------------------------------ show comment //------------------------------------------------------------------------------------------------------------------------ show comment ?> <div id="f1_upload_form"></div> <div align="right"><a href="#navcontainer"><img src="images/go_up.gif" /></a> </div> <br /> <form id="form1" name="form1" method="post" action="modules/content/add.php" enctype="multipart/form-data" target="upload_target" onSubmit="startUpload();" ><table width="100%" border="0" bordercolor="#FFFFCC" bgcolor="#FFFFCC"> <tr> <td colspan="2" bgcolor="#FFFFCC"><div align="center">- ::-áÊ´§¤ÇÒÁ¤Ô´àËç¹à¡ÕèÂǡѺº·¤ÇÒÁ -::- </div></td> </tr> <tr> <td colspan="2" bgcolor="#FFFFCC"> <? include("FCKeditor/fckeditor.php") ; $oFCKeditor = new FCKeditor('A') ; $oFCKeditor->BasePath = 'FCKeditor/' ; $oFCKeditor->Width = '100%' ; $oFCKeditor->Height = '300' ; $oFCKeditor->Value = '' ; $oFCKeditor->Create() ; ?></td> </tr> <tr> <td width="37%" bgcolor="#FFFFCC"><div align="right">ª×èͼÙéâ¾Ê¤ÇÒÁ¤Ô´àËç¹ : </div></td> <td width="63%" bgcolor="#FFFFCC"><input name="name" type="text" id="name" /></td> </tr> <tr> <td bgcolor="#FFFFCC"><div align="right">ä;բͧ¤Ø³¤×Í :</div></td> <td bgcolor="#FFFFCC"><?php echo IPADDRESS; ?> <input name="id" type="hidden" id="id" value="<?php echo $data[0]['id']; ?>" /> <input name="ip" type="hidden" id="ip" value="<?php echo IPADDRESS; ?>"/></td> </tr> <tr> <td bgcolor="#FFFFCC"><div align="right">àÇÅÒã¹¢³Ð¹Õé¤×Í : </div></td> <td bgcolor="#FFFFCC"><?php echo $t->ThaiTimeConvert($timestamp="",$full="",$showtime=""); ?> <input name="date" type="hidden" id="date" value="<?php echo $t->ThaiTimeConvert($timestamp="",$full="",$showtime=""); ?>" /></td> </tr> <tr> <td bgcolor="#FFFFCC"><div align="right"></div></td> <td bgcolor="#FFFFCC"><input type="submit" name="Submit" value="áÊ´§¤ÇÒÁ¤Ô´àËç¹" /></td> </tr> </table> </form> <div align="center"> <?php }else{ $file_request = 'modules/error/error.php'; require_once($file_request); } ?> <br /> ¢éͤÇÒÁ·Õè·èÒ¹ä´éÍèÒ¹ à¡Ô´¨Ò¡¡ÒÃà¢Õ¹â´ÂÊÒ¸Òóª¹ áÅÐÊè§¢Öé¹ÁÒẺÍѵâ¹ÁÑµÔ à¨éҢͧÃкºäÁèÃѺ¼Ô´ªÍºµèÍ¢éͤÇÒÁã´æ·Ñé§ÊÔé¹ à¾ÃÒÐäÁèÊÒÁÒöÃкØä´éÇèÒà»ç¹¤ÇÒÁ¨ÃÔ§ËÃ×Í ª×èͼÙéà¢Õ¹·Õèä´éàË繤×ͪ×èͨÃÔ§ ¼ÙéÍèÒ¹¨Ö§¤ÇÃãªéÇÔ¨Òóҳ㹡ÒáÅÑ蹡Ãͧ áÅжéÒ·èÒ¹¾ºàËç¹¢éͤÇÒÁã´·Õè¢Ñ´µèÍ¡®ËÁÒÂáÅÐÈÕŸÃÃÁ ¡ÃسÒá¨é§ à¾×èÍãËé¼Ùé¤Çº¤ØÁÃкº·ÃÒºáÅзӡÒÃź¢éͤÇÒÁ¹Ñé¹ ÍÍ¡¨Ò¡ÃкºµèÍä» <br /> <br /> <br /> </div> //สวนที่ต้องการแทรก adsense code
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง