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.141.45.90
Current Path : /var/www/html/ibm/ |
| Current File : /var/www/html/ibm/displayMarksCards.php |
<?php
$orgUrl = $_GET['org_url'];
$uploadUrl = $_GET['upload_url'];
$ch = curl_init($orgUrl);
curl_setopt($ch, CURLOPT_NOBODY, true);
$data = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
?>
<html>
<head>
</head>
<body>
<div>
<div style="width:39vw;height:100vh;float:left">
<h1>Document uploaded by student </h1>
<embed src="<?php echo $uploadUrl ?>" style="width:48vw;height:90vh;" />
</div>
<div style="width:49vw;height:100vh;float:right">
<?php
if($httpCode == '200') {
echo "<h1>Document found at university </h1><embed src=".$orgUrl." style='width:48vw;height:90vh;' />";
}
else {
echo "<h1 style='color:red'>Document Not found at university </h1> ";
}
?>
</div>
</div>
</body>
</html>
|