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/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/umedia3/inc//show_mediaicon.php
<?
function show_mediaicon($wh,$mode="show",$displaytitle="yes",$height=120,$width=200,$ratescore="no",$linktarget="") {
	//linktarget canuse [unlink]
	global $dcrURL;
	global $fontcolor;
	global $bgcolor;
	if ($linktarget=="") {
		if (barcodeval_get("webpage-o-clickmediausesamewindow")=="yes" ) {
			$linktarget="_top";
		} else {
			$linktarget="_blank";
		}
	}
	if ($fontcolor=="") {
		$fontcolor="black";
	}
	if ($bgcolor=="") {
		$bgcolor="black";
	}
	global $kw;
	$kw1=urldecode($kw);
	$kw1=urldecode($kw1);
	$kw1=urldecode($kw1);
	$kw1=stripslashes($kw1);
	$kw1=trim($kw1,'"');
	$kw=urlencode($kw);
	//echo "[$kw]";
		//$ftlistdb.='<div style="position:relative; top:20; left:25; height: 0; width:0;margin: 0;  padding:0;overflow:visible; background-color:red; " ><nobr>';
		$mdinfo=tmq("select * from media where randid='$wh' ");
		$mdinfo=tmq_fetch_array($mdinfo);

		$ftlist=tmq("select * from index_db where mid='$wh' ");
		$ftlist=tmq_fetch_array($ftlist);
		$ftlist=explode(',',$ftlist[fttypelist]);
		$ftlistdb="";
		$mddb=tmq_dump("dbfulltext_cate","code","name");
		//printr($mddb);
		while (list($k,$v)=each($ftlist)) {
					if ($v!="") {
						 $ftlistdb.="<img src='$dcrURL/_tmp/mediatype/$v.png' border=0 width=16 height=16 hspace=0 vspace=0 alt=\"".getlang($mddb[$v])."\" align=absmiddle><FONT style='font-size: 7;color:bbbbbb' >".getlang($mddb[$v])."</FONT>";
					}
		}
		//$ftlistdb.='</nobr></div>';

		$str.='<TABLE width=$width height=1 border=0 cellspacing=0 cellpadding=1 
		style="float:left; border-color: #999999; border-width: 0px; border-style: dotted; border-left-width: 0px;"
	style="" 
	sonmouseover="this.style.backgroundColor=\'#384354\';"
		sonmouseout="this.style.backgroundColor=\'transparent\';" >
	<TR>
		<TD align=center valign=middle 
		>';
		
		$cover=tmq("select * from media_ftitems where iscover='yes' and mid='$wh' ");
		if (tmq_num_rows($cover)!=0) {
			$cover=tmq_fetch_array($cover);
			$coverurl=get_fturl($cover);
			if ($cover[uploadtype]=="upload") {
				 $coverurl.=".thumb.jpg";
			}
		} else {
			$coverurl="$dcrURL/neoimg/nocovergray.png";
		}
				//$str.=$ftlistdb;
		$str.='<table cellpadding=0 cellspacing=4 border=0 width=1 height=1 bgcolor=white  style="border-color:$bgcolor;border-width:1;border-style:solid;">

';
$str.='
<tr >

<td align=center bgcolor=$fontcolor width=10%>';
if ($linktarget!='[unlink]') {
	$str.='<a 
	href="$dcrURL/index.php?mode=viewrecord&mid=$wh&kw=$kw" target="'.$linktarget.'">';
}
$str.='<img
style="border-width: 1px; border-color:747474; border-style:solid;"
border=0 height="$height" src="'.$coverurl.'"
></a></td>

</tr>
';
$str.='

</table>
';
$str.='
</TD>
	</TR>';

	if ($ratescore=="yes") {
      $str.='<TR height=24>
      <TD align=center valign=top>';
      $ratedb=tmq("select * from webpage_bibrating_sum where bibid='$wh' ",false);
      if (tmq_num_rows($ratedb)!=0) {
          $ratedb=tmq_fetch_array($ratedb);
          $scoredsp=number_format($ratedb[votescore],1);
          $scoretxt=floor(($ratedb[votescore]*20)/5);
          $scorecounttxt=number_format($ratedb[votecount]);
          $scoretxt=floor($scoretxt*5);
          
          $str.='<font  style="color:orange" class=smaller2>Rated:
          <B class=smaller2 style="color:orange">'.$scoredsp.'</B>/'.$scorecounttxt.' <img width=24 height=24 align=absmiddle src="$dcrURL/neoimg/bibrating/s'.$scoretxt.'.png" border=0></font>';
      }
      $str.='</TD>
      </TR>';
	}	
	if ($displaytitle=="yes") {
    if ($ratescore=="no") {
      $str.='<TR height=16>
      <TD align=center valign=top>'.$ftlistdb.'</TD>
      </TR>';
    }
	$tmptitle=marc_gettitle($wh);
	$fulltitle=$tmptitle;
	if (strlen($tmptitle)>47) {
		$tmptitle=substr($tmptitle,0,45)."..";
	}
    $str.='<TR height=45>
    <TD align=center valign=top style="padding-left: 5px;color: $fontcolor;">';
	if ($linktarget!='[unlink]') {
		$str.='<a href="$dcrURL/index.php?mode=viewrecord&mid=$wh&kw=$kw" style="color: $fontcolor;" class=smaller TITLE="'.$fulltitle.'"  target="'.$linktarget.'">';
	}
	$str.=$tmptitle.'</A></TD>
    </TR>';
	}
	$str.='</TABLE>';


	$str=str_replace('$dcrURL',$dcrURL,$str);
	$str=str_replace('$wh',$wh,$str);
	$str=str_replace('$fontcolor',$fontcolor,$str);
	$str=str_replace('$bgcolor',$bgcolor,$str);
	$str=str_replace('$height',$height,$str);	
	$str=str_replace('$width',$width,$str);		
	$kw1=addslashes($kw1);
	$str=str_replace('$kw',$kw1,$str);		
	if ($mode=="return") {
		 return $str;
	} else {
		echo $str;
	}
}
?>

Anon7 - 2022
AnonSec Team