ok thnx.. i am sending lines.. list.php from line 3213 to line 3245
echo "
";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$ext = getext($item[2]);
$mysock = getimagesize("$item[2]");
$imagesizeWH = imageResize($mysock[0], $mysock[1], 150);
$ime = "<img src="$item[2]" $imagesizeWH alt="*"/>";
$lnk = "<a href="121download121.php?id=$item[0]">$ime
$item[1] - Download</a>";
$downloads = "Downloads: $item[4]";
$dateadded = date("d/m/y", $item[5]);
$dateadded1 = "Date Added: $dateadded";
if(candelvl($uid, $item[0]))
{
$delnk = "<a href=\"121genproc121.php?action=delvlt&sid=$sid&vid=$item[0]\">[x]</a>";
}else{
$delnk = "";
}
if($who!="")
{
$byusr="";
}else{
$unick = getnick_uid($item[3]);
$ulnk = "<a href=\"index.php?action=viewuser&sid=$sid&who=$item[3]\">$unick</a>";
$byusr = "Added By: $ulnk";
}
echo "$lnk
$byusr $delnk
$dateadded1
$downloads
";
}
core.php from line 584 to 604
//////////////////////////////////////RESIZE IMAGE
function imageResize($width, $height, $target) {
//takes the larger size of the width and height and applies the
//formula accordingly...this is so this script will work
//dynamically with any size image
$percentage = ($target / $width);
//gets the new value and applies the percentage, then rounds the value
$width = round($width * $percentage);
$height = round($height * $percentage);
//returns the new sizes in html image tag format...this is so you
//can plug this function inside an image tag and just get the
return "width="$width" height="$height"";
}
pls give solution.:(