0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.147.82.108


Current Path : /var/www/oasis/kus/
Upload File :
Current File : /var/www/oasis/kus/docverify.php

<?php
	$v1 = $_GET['v1'];
	$varr = explode('_',$v1);
	if(count($varr) == 1)
	{
		$v1 = $varr[0];
		$v5 = '003';
		$v6 = 'MC';
	}
	else
	{
		$v1 = $varr[2];
		$v5 = $varr[0];
		$v6 = $varr[1];
	}
	
	$v2 = $_GET['v2'];//exam  A
	$v3 = $_GET['v3'];//year  20172

	$v4 = substr($v3,-1);//type 2
	$v3 = substr($v3, 0, -1);

	//mc_033_regno_exam_year_type.pdf
	$filename = $v6.'_'.$v5.'_'.$v1.'_'.$v2.'_'.$v3.'_'.$v4.'.pdf';
	//var_dump($filename);
	$url =  "https://kuvempu-university-marks-card-verification.s3.ap-south-1.amazonaws.com/003/ledger/".$filename;
	var_dump($url);
	die();
	$curl = curl_init();
	curl_setopt($curl, CURLOPT_URL, $url);
	curl_setopt($curl, CURLOPT_NOBODY, true);
	$response_hall = curl_exec($curl);
	$httpCode = curl_getinfo($curl , CURLINFO_HTTP_CODE);
	// var_dump($url);
	// var_dump($httpCode);die();
	if($httpCode == 200){
		Redirect($url, true);
	}
	else{
		$url = "https://kuvempu-university-marks-card-verification.s3.ap-south-1.amazonaws.com/003D/".$filename;
		Redirect($url, true);
	}

	
	

	function Redirect($url, $permanent = false)
	{
	    if (headers_sent() === false)
	    {
	        header('Location: ' . $url, true, ($permanent === true) ? 301 : 302);
	    }
	    else
	    {
	    	echo "header sent";
	    }
    	exit();
	} 
	
	
?>