<?
function insert_log_welc()
{
global $cook_login, $html_header, $mblogin, $ct, $adm_passw, $cook_passw, $msg;

$login_info="
<table width='100%'>
<tr><td align='left'>
<font FACE='ARIAL, HELVETICA' size='-2' color='#aa0000'>
<b>
".$msg['Welcome_m']." $cook_login ! 
&nbsp; &nbsp; 
";
if ($mblogin==''){
$login_info=$login_info."
<a href='index.php?md=browse&mblogin=$cook_login&visunvis=1' >
".$msg['Your_ads_m']."</a> 
 &nbsp; 
<a href='mbprf.php'>
".$msg['Your_Profile_m']."</a> 
";
}
$login_info=$login_info."
</b></font>
</td>
<td align='right'>
<font FACE='ARIAL, HELVETICA' size='-2'>
<b>
<a href='index.php?md=mblogout&ct=$ct' >".$msg['Log_out_m']."</a>
</b></font>
</td></tr></table>
";
if ($adm_passw==$cook_passw){$login_info="";}
$html_header=ereg_replace('<!--login_info-->', $login_info, $html_header);
}
?>