$r=$empire->fetch1("select befromid,sitename,siteurl from {$dbtbpre}enewsbefrom where sitename='$befrom' limit 1");         
  if(empty($r[befromid]))           
{return $befrom;}           
$return_befrom="<a href='".$r[siteurl]."' target="_blank">".$r[sitename]."</a>";