Subversion Repositories oidplus

Rev

Rev 1283 | Rev 1338 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1283 Rev 1288
Line 113... Line 113...
113
                        // Use this if webwhois.php matches the currently uploaded Internet Draft:
113
                        // Use this if webwhois.php matches the currently uploaded Internet Draft:
114
                        $out['text'] .= '<p>'._L('RFC Internet Draft').': <a target="_blank" href="https://datatracker.ietf.org/doc/draft-viathinksoft-oidip/">draft-viathinksoft-oidip-05</a></p>';
114
                        $out['text'] .= '<p>'._L('RFC Internet Draft').': <a target="_blank" href="https://datatracker.ietf.org/doc/draft-viathinksoft-oidip/">draft-viathinksoft-oidip-05</a></p>';
115
                        // Use this if webwhois.php implements something which is not yet uploaded to IETF:
115
                        // Use this if webwhois.php implements something which is not yet uploaded to IETF:
116
                        //$out['text'] .= '<p>'._L('RFC Internet Draft').': <a href="'.OIDplus::webpath(__DIR__.'/whois/rfc/draft-viathinksoft-oidip-06.txt', true).'" target="_blank">draft-viathinksoft-oidip-06</a></p>';
116
                        //$out['text'] .= '<p>'._L('RFC Internet Draft').': <a href="'.OIDplus::webpath(__DIR__.'/whois/rfc/draft-viathinksoft-oidip-06.txt', true).'" target="_blank">draft-viathinksoft-oidip-06</a></p>';
117
                        # ---
117
                        # ---
118
                        $out['text'] .= '<h2>'._L('Parameters for new request').'</h2>';
-
 
119
                        $out['text'] .= '<noscript>';
118
                        $out['text'] .= '<noscript>';
120
                        $out['text'] .= '<p>'._L('You need to enable JavaScript to use the login area.').'</p>';
119
                        $out['text'] .= '<p><font color="red">'._L('You need to enable JavaScript to use the login area.').'</font></p>';
121
                        $out['text'] .= '</noscript>';
120
                        $out['text'] .= '</noscript>';
122
                        $out['text'] .= '<div id="oidipArea" style="display:none">';
121
                        $out['text'] .= '<div id="oidipArea" style="display:none">';
-
 
122
                        $out['text'] .= '<h2>'._L('Parameters for new request').'</h2>';
123
                        # ---
123
                        # ---
124
                        $out['text'] .= _L('Requested object including namespace, e.g. %1','<code>oid:2.999</code>').'<br>';
124
                        $out['text'] .= _L('Requested object including namespace, e.g. %1','<code>oid:2.999</code>').'<br>';
125
                        $out['text'] .= '<input type="text" id="whois_query" name="query" value="'.htmlentities($example).'" onkeyup="OIDplusPagePublicWhois.refresh_whois_url_bar()">';
125
                        $out['text'] .= '<input type="text" id="whois_query" name="query" value="'.htmlentities($example).'" onkeyup="OIDplusPagePublicWhois.refresh_whois_url_bar()">';
126
                        $out['text'] .= '&nbsp;<span id="whois_query_invalid" style="display:none"><font color="red"><b>('._L('Invalid').')</b></font></span>';
126
                        $out['text'] .= '&nbsp;<span id="whois_query_invalid" style="display:none"><font color="red"><b>('._L('Invalid').')</b></font></span>';
127
                        $out['text'] .= '<br><br>';
127
                        $out['text'] .= '<br><br>';
Line 210... Line 210...
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
                $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>';
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
                $obj = OIDplusObject::parse($id);
213
                $obj = OIDplusObject::parse($id);
214
                if ($obj && $obj->userHasParentalWriteRights()) {
214
                if ($obj && $obj->userHasParentalWriteRights()) {
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>';
215
                        $payload .= '<br><span class="gray_footer_font">'._L('OID-IP 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>';
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>';
216
                        $payload .= '<br><span class="gray_footer_font">'._L('OID-IP 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>';
217
                }
217
                }
218
 
218
 
219
                $text = str_replace('<!-- MARKER 6 -->', '<!-- MARKER 6 -->'.$payload, $text);
219
                $text = str_replace('<!-- MARKER 6 -->', '<!-- MARKER 6 -->'.$payload, $text);
220
        }
220
        }
221
 
221