Rev 1156 | Rev 1282 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1156 | Rev 1279 | ||
---|---|---|---|
Line 207... | Line 207... | ||
207 | * @param string $text |
207 | * @param string $text |
208 | * @return void |
208 | * @return void |
209 | * @throws OIDplusException |
209 | * @throws OIDplusException |
210 | */ |
210 | */ |
211 | public function modifyContent(string $id, string &$title, string &$icon, string &$text) { |
211 | public function modifyContent(string $id, string &$title, string &$icon, string &$text) { |
212 | $text .= '<br><img src="'.OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/page_pictogram.png" height="15" alt=""> <a href="'.OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'whois/webwhois.php?query='.urlencode($id).'" class="gray_footer_font" target="_blank">'._L('Whois').'</a>'; |
212 | $payload = '<br><img src="'.OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/page_pictogram.png" height="15" alt=""> <a href="'.OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'whois/webwhois.php?query='.urlencode($id).'" class="gray_footer_font" target="_blank">'._L('Whois').'</a>'; |
213 | - | ||
214 | $obj = OIDplusObject::parse($id); |
213 | $obj = OIDplusObject::parse($id); |
215 | if ($obj && $obj->userHasParentalWriteRights()) { |
214 | if ($obj && $obj->userHasParentalWriteRights()) { |
216 | $text .= '<br><span class="gray_footer_font">'._L('OID-WHOIS Auth Token for displaying full object information: %1 (only applies if the this or superior objects are marked confidential)','<b>'.self::genWhoisAuthToken($id).'</b>').'</span>'; |
215 | $payload .= '<br><span class="gray_footer_font">'._L('OID-WHOIS Auth Token for displaying full object information: %1 (only applies if the this or superior objects are marked confidential)','<b>'.self::genWhoisAuthToken($id).'</b>').'</span>'; |
217 | $text .= '<br><span class="gray_footer_font">'._L('OID-WHOIS Auth Token for displaying full RA information: %1 (only applies if the RA has set the privacy-flag)','<b>'.self::genWhoisAuthToken('ra:'.$obj->getRaMail()).'</b>').'</span>'; |
216 | $payload .= '<br><span class="gray_footer_font">'._L('OID-WHOIS Auth Token for displaying full RA information: %1 (only applies if the RA has set the privacy-flag)','<b>'.self::genWhoisAuthToken('ra:'.$obj->getRaMail()).'</b>').'</span>'; |
218 | } |
217 | } |
219 | 218 | ||
- | 219 | $text = str_replace('<!-- MARKER 6 -->', '<!-- MARKER 6 -->'.$payload, $text); |
|
220 | } |
220 | } |
221 | 221 | ||
222 | /** |
222 | /** |
223 | * @param string $request |
223 | * @param string $request |
224 | * @return array|false |
224 | * @return array|false |