| Current Path : /var/www/html/venkat/check/ |
| Current File : /var/www/html/venkat/check/copymain.php |
<?php
$section1 = $_GET["match"];
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
$section = strstr($section1, ':', true);
$ff = substr($section1, strrpos($section1, ':')+1);
$uploaddir = "file/".$section."/";
$result1 =explode('|', $ff);
$k = 0;
while(isset($result1[$k]))
{
$uploadfile2[$k] = $uploaddir.$result1[$k];
$k++;
}
//$file11 = strstr($ff, '|', true);
//$file21 = substr($section1, strrpos($section1, '|')+1);
//$uploadfile3 = $uploaddir.$file21;
?>
<body bgcolor="#F0F8FF"> <center>
<h2> <font color="blue"> Program Similarity Window</font> </h2>
<br> <center>
<table width="100%" border="1" cellpadding="0">
<tr>
<?php
$i = 0;
$m = 0;
while ($i < $k)
{
if ($m > 1)
{
echo "</tr> <tr>";
$m = 0;
}
?>
<td> <center> <h4> <?php echo("Program Name : ".$result1[$i]); ?> </h3> </center>
<br> <?php echo ("<pre>".htmlspecialchars(shell_exec("cat $uploadfile2[$i]"))."</pre>"); ?> </td>
<?php
$m++;
$i++;
}
?>
</tr>
</table> </center>
<?php
?>