get_channel(); $address = (($channel) ? $channel['channel_address'] : ''); //future expansion $observer = get_observer(); $lines = @file($f); if($lines) { foreach($lines as $x) { if(preg_match('/^([a-zA-Z].*?):(.*?)$/ism',$x,$matches)) { $ret[$matches[1]] = trim(str_replace(array('$baseurl','$nick'),array($baseurl,$address),$matches[2])); } } } if(! $ret['photo']) $ret['photo'] = $baseurl . '/' . get_default_profile_photo(80); return $ret; }