PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...
If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.
"Untitled" by Anonymous [PHP]Actions: |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
protected function parseTargets ( $aCommentData ) { $sReplaceHTMLpre = "<a href>"; $sReplaceHTMLpost = "</a> "; foreach ( $aCommentData['targets'] as $kType => &$aTheseTargets ) { switch ( $kType ) { case 'user': foreach ( $aTheseTargets as &$vTargetID ) { $sReplaceHTMLpre = str_replace('href', 'href="'.FB_DOMAIN.'/profile?id='.$vTargetID.'&r=comment;'.$aCommentData['comment_id'].'&v=target;text;;"', $sReplaceHTMLpre); # Get name for this FB_UID # $aReplace[] = '/'.preg_quote($sReplaceHTMLpre.'@'.$_SESSION['fb.friends_info'][$vTargetID]['name'].$sReplaceHTMLpost).'/'; $vTargetID = '/@'.$vTargetID.' /'; # clean up, clean up, everybody... unset($fbUser); unset($tmp); } break; default: } } # Perform search & replace $aSearch = $aCommentData['targets']; $aCommentData['comment'] = preg_replace ( $aSearch, $aReplace, $aCommentData['comment']); return $aCommentData['comment']; } |