Ejemplo n.º 1
0
 /**
  * @see	\wcf\system\bbcode\IBBCode::getParsedTag()
  */
 public function getParsedTag(array $openingTag, $content, array $closingTag, BBCodeParser $parser)
 {
     $email = '';
     if (isset($openingTag['attributes'][0])) {
         $email = $openingTag['attributes'][0];
     }
     $email = StringUtil::decodeHTML($email);
     return '<a href="mailto:' . StringUtil::encodeAllChars($email) . '">' . $content . '</a>';
 }
 /**
  * @see	\wcf\page\IPage::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('encodedEmailAddress' => StringUtil::encodeAllChars(LEGAL_NOTICE_EMAIL_ADDRESS), 'allowSpidersToIndexThisPage' => true));
 }
Ejemplo n.º 3
0
 /**
  * Returns the encoded email address.
  * 
  * @return	string
  */
 public function getEncodedEmail()
 {
     return StringUtil::encodeAllChars($this->email);
 }