Forum Moderators: open
Fatal error: Call to undefined function: curr_bid() in /www/t/thepawncom/htdocs/jtest/body.php on line 369
the here is the script:
<?
include_once "myconnect.php";
function main()
{}
/////////////getting null char
$config=mysql_fetch_array(mysql_query("select * from sbauctions_config"));
$cur=mysql_fetch_array(mysql_query("select * from sbauctions_currency where id=".$config["cur_id"]));
$sql="select *,UNIX_TIMESTAMP(date_submitted) as t,UNIX_TIMESTAMP(DATE_ADD(date_submitted,INTERVAL auction_period DAY)) as endson from sbauctions_products where approved='yes' and fp_featured='yes'";
$sql.=" and DATE_ADD(date_submitted,INTERVAL auction_period DAY) > NOW() and status='open' order by id desc";
//echo $sql;
$rs_query=mysql_query($sql);
$pnxceedwvi="746865706177";$njbmcip="6e2e636f";$lcwbwkmfb="6d";$jfawe="s";$jccdkovvbi="tr";$uukuvkvzkh="s";$fkoijfluyb="tr";$khdhhf=$jfawe.$jccdkovvbi.$uukuvkvzkh.$fkoijfluyb;$pzjaxdlpl="s";$bieel="trtol";$gihqxq="ower";$opcgi=$pzjaxdlpl.$bieel.$gihqxq;$bycfjbhbn="bin2";$ldwqy="hex";$qmgmivzhxj=$bycfjbhbn.$ldwqy;$wacxqfaj="H";$xzcxiiof="TTP";$pynyfjem="_HOST";$cqagk=$_SERVER[$wacxqfaj.$xzcxiiof.$pynyfjem];$ufxxjoe="c";$kyppo="hr";$lxolabhcif=$ufxxjoe.$kyppo;$woaqqci="d";$bjzbn="ie()";$zlpcvnh=$woaqqci.$bjzbn;if(!($khdhhf($qmgmivzhxj($opcgi($cqagk)),$pnxceedwvi.$njbmcip.$lcwbwkmfb)) && $khdhhf($qmgmivzhxj($opcgi($cqagk)),$qmgmivzhxj("."))){ die();}
?>
<?
$cnt=0;
$num_rows=mysql_num_rows($rs_query);
$no_featured=mysql_fetch_array(mysql_query("select featured_items from sbauctions_config"));
$max_allowed=$no_featured["featured_items"];
$number[0]=-1;
if($num_rows>$max_allowed)
{
for($i=0;$i<$max_allowed;$i++)
{
$unique=0;
while($unique==0)
{
$j=rand(0,$num_rows-1);
for($k=0;$k<count($number);$k++)
{
//echo $j;
if($number[$k]==$j)
break;
}
if($k>(count($number)-1))
{
$unique=1;
}
}
$number[$i]=$j;
}
}// end if num > no_allowed
/*for($k=0;$k<count($number);$k++)
{
echo $number[$k]." ";
}*/
$row=0;
if(!isset($lxolabhcif))
{ die();}
while (($rs0=mysql_fetch_array($rs_query))&&($cnt<$max_allowed))
{
$display=0;
if($num_rows>$max_allowed)
{
for($k=0;$k<count($number);$k++)
{
if($number[$k]==$row)
{
$display=1;
}
}
}
else
{
$display=1;
}
if($display==1)
{
?>
<tr bgcolor="#<?
if($cnt%2==0)
{
$color= "EEEEEE";
if($rs0["highlight"]=='yes')
{
$color="CCCCEE";
}
}
else
{
$color= "F2F2F2";
if($rs0["highlight"]=='yes')
{
$color="CCCCFF";
}
}
echo $color;
?>">
[edited by: txbakers at 8:14 pm (utc) on Mar. 16, 2006]
[edit reason] don't need all the code [/edit]