الان توی خود کدها که اینا به صورت tahoma هست. آیا نیازی به تغییر دارند؟





/*--function draw_image()--*/


function draw_image ()






{






global $frm;






global $settings;






$q = 'select


date_format(date_added, \'%b %D, %Y\') as added,


hl_listings.*


from


hl_listings


where


(hl_listings.expiration = 0 || date_added + interval hl_listings.expiration day >= current_date)


and hl_listings.status = 1 and


id = ' . $frm['lid'];





$sth = mysql_query ($q);


$row = mysql_fetch_array ($sth);


if (!$row)


{


header ('Location: ' . $settings['site_logo_url']);


exit ();


}






$group=$row['group_id'];


$name=$row['name'];


$status=$row['hyip_status'];






$Date_1=date("Y-m-d h:i:s");


$Date_2=$row['date_added'];


$Date_List_1=explode("-",$Date_1);


$Date_List_2=explode("-",$Date_2);


$d1=mktime(0,0,0,$Date_List_1[1],$Date_List_1[2],$Date_List_1[0]);


$d2=mktime(0,0,0,$Date_List_2[1],$Date_List_2[2],$Date_List_2[0]);





//added


$added="ثبت:".$row['added'];


//monited xx days


$Days=round(($d1-$d2)/3600/24);


$monited=" نمایش : ".$Days." روز";









$img=imagecreatefrompng('images/monitorbutton.png');





$colors = array ();


$colors['pay'] = imagecolorallocatehex ($img, '#498302');


$colors['wait'] = imagecolorallocatehex ($img, '#0000FF');


$colors['problem'] = imagecolorallocatehex ($img, '#FF9900');


$colors['notpay'] = imagecolorallocatehex ($img, '#FF0000');


$colors['black'] = imagecolorallocatehex ($img, '#000000');









$colors['name']= imagecolorallocatehex ($img, '#000000');


$colors['sitename']= imagecolorallocatehex ($img, '#000000');









$namestrlen($name)>16) ? substr($name, 0, 13). '...' : $name);


$name1 = ImageTTFBbox(16, 0, "images/tahoma.ttf", $name);
$w =170;
$tw2 = $name1[2] - $name1[0];
$th2 = $name1[5] - $name1[3];
$left2 = (($w - $tw2)/2);


ImageTTFText($img, 16, 0, $left2, 23, $colors['sitename'], "images/tahoma.ttf", $name);