? 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/modules/blog/
File Upload :
Current File : /home/admin/public_html/modules/blog/list_index_page2.php

<?
session_start();
require_once('../../../config.php');
require_once('../../../libs/MySql.php');
require_once('../../../libs/MySqlDB.php');
require_once('../../../libs/function.php');
require_once('../../../libs/global.php');
require_once('../../../libs/backoff_ajax.php');		
require_once('../../../libs/backoff.php');	
require_once('../../../libs/xajax/xajax.inc.php');
require_once('../../../libs/xajax/xajaxExtend.php');	
require_once('../../modules/users/mod_user.php');

$db=new MySql;
$xajax = new xajaxExtend;

$id= $_GET[id];

function inser_index($value)
{
	global $db;
	$objResponse = new xajaxResponse();
	$id=$value;
	$db->Query("DELETE FROM contents_recommend WHERE ContentRecommendRanking = '".$_GET['id']."' ");
	$dataa=Array('ContentID'=>$value,'ContentRecommendRanking'=> $_GET[id]);
	$db->Insert('contents_recommend',$dataa);


	$objResponse->addAlert('บันทึกเรียบร้อยค่ะ');
	$objResponse->addRedirect("list_index_page2.php?id=$_GET[id]");
	
	
	return $objResponse;
}
$xajax->registerFunction("inser_index");


$xajax->processRequests();
if ($_SESSION["la"] == 1){
$data=$db->getDataOneRow('contents_recommend',"$id",'ContentRecommendRanking');
}else{
$data=$db->getDataOneRow('contents_recommend',"$id",'ContentRecommendRanking');
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>แสดงผล gallery หน้าแรก</title>
<?php 
$xajax->printJavascript('../../../libs/xajax');
?>
</head>

<body>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post" enctype="multipart/form-data">
  <table width="500" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#AAAAAA">
    <tr>
      <td width="490" align="center">เลือกบทความ</td>
    </tr>
    <tr>
      <td align="center"><? 
				echo  "<input type=hidden name={$data['ContentID']} size=20 id={$data['ContentID']} value='".$data['ContentID']."'>";
				echo  "<select  class=\"backend_inputbox\" onchange=\"xajax_inser_index(this.value)\">
          <option>--หมวดหมู่--</option>";
		  if ($_SESSION["la"] == 1){
		  $sql=$db->Query("SELECT * FROM contents WHERE CatID = 134 Order By ContentID DESC");
}else{
		  $sql=$db->Query("SELECT * FROM contents WHERE CatID = 134 Order By ContentID DESC");
}

		  while($rs1=mysql_fetch_array($sql)){
		  	if($rs1[ContentID] == $data['ContentID']){
		  		echo "<option value=\"".$rs1[ContentID]."\" selected=\"selected\">".$rs1[ContentName]."</option>";
		  	}else{
		  		echo "<option value=\"".$rs1[ContentID]."\">".$rs1[ContentName]."</option>";
		  	}
		  }
        echo "</select>";
							?>
      </td>
    </tr>
    <tr>
      <td align="center">&nbsp;</td>
    </tr>
  </table>
</form>
</body>
</html>

T1KUS90T
  root-grov@210.1.60.28:~$