"") {//print"p is set
and comp is $comp
"; //$temp=stripos($keyin,'.P');print"temp is $temp
"; $page=substr($keyin,($comp+2)); //$temp=stripos($keyin,'P'); $HostID=substr($keyin,0,$comp); } else{$page=1;$HostID=$keyin;//in case of no".P1" } //----------------------Function Area------------------------------------------------------ function findRange($pages,$MaxList) {global $begin; global $end; global $perpage; global $ListPages; $perpage=5; $Rest=$MaxList%$perpage; $ListPages=ceil($MaxList/$perpage); $begin=($perpage*($pages-1)); }//end CalRange Function //print"keyin is $keyin and host id is -$HostID- and page is -$page-
"; $Input="SELECT * FROM `others_hosts` WHERE `runid` = '$HostID'"; $link=mysql_connect("localhost","freeh13_others","Bar007++")or die ("can not access to mysql".mysql_error()); mysql_select_db('freeh13_freehosting'); if (isset($_COOKIE['fhf'])){ //cookie is set $whatCookie=mysql_real_escape_string($_COOKIE['fhf']); if(!$cookiecheck=mysql_query("SELECT user_name,uid FROM user_index WHERE wroteCookie='$whatCookie'")){$wrong=1;$report_arr[]="Could not query cookie while review page is loading(#BTYKYIOJTY8675).";} $uname=mysql_fetch_array($cookiecheck); if($cookiecheck){mysql_free_result($cookiecheck);}; if ($uname[user_name]<>''){ //found user $uid=$uname[uid]; $ok=TRUE; }//end found user else{$ok=FALSE;} }//end cookie is set $result=mysql_query("$Input"); $query_row=mysql_num_rows($result); //print"found $query_row
"; if (($query_row>0) AND ($page>0)){// found this host $read=mysql_fetch_array($result); $resultR=mysql_query("SELECT COUNT(`ID`) FROM `file_reviews` WHERE`ID`='$read[ID]'"); $reviews=mysql_fetch_array($resultR); findRange($page,$reviews[0]); mysql_free_result($resultR); //print"input is SELECT COUNT(`ID`) FROM `file_reviews` WHERE`ID`=$read[ID], listpages is $ListPages, page is $page and reviews is $reviews[0]
"; //print"listpage is $ListPages and page is $page and reviews is $reviews[0].
"; if ($ListPages==0){$ListPages=1;} if (($ListPages>=1) AND ($page<=$ListPages)) {// show all include"ShowFileRbody.php"; } else{include"oops.html";} mysql_free_result($result); mysql_close($link); }else{include"oops.html";}?>