? 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/Cart_Add.php

<?
@session_start();
ob_start();
if(empty($usermem)) 
//if(empty($_SESSION['usermem']))
{
echo "<script language='javascript'>alert('กรุณาเข้าระบบก่อนซื้อสินค้า');</script>";
echo "<meta http-equiv='refresh' content='0;URL=Login.php'>";
}else{
$id_product = $_GET[PrdID];

session_register("sess_idproduct");
session_register("sess_name_prd");
session_register("sess_price");
session_register("sess_num");
$today = date("d-m-Y");  

if (count($sess_idproduct)=="0") {
	$check=1;
} else  if (!in_array($id_product, $sess_idproduct)) {
	$check=1;
}

if ($check==1) {
	include "include/config.inc.php";
	$sql="select * from products where id='$id_product' ";
	$result=mysql_db_query($db,$sql);
	$rs=mysql_fetch_array($result);

	$sess_idproduct[]=$rs[productscode];
	$sess_name_prd[]=$rs[productsname];
	$sess_price[]=$rs[productsprice];

	$sess_num[]=1;


}
header("Location: Cart.php");
}
?>

T1KUS90T
  root-grov@210.1.60.28:~$