Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1287 → Rev 1288

/trunk/TODO
8,6 → 8,7
* Everywhere where url_get_contents() is used, we need to check url_get_contents_available() too.
- Not good: url_*_contents() throws an Exception if not available, but returns false if URL is not available. That's inconsistant...
- Idea: If we enter "oid:2.999.123" in the goto box, and only "oid:2.999" exists, should we recommend the user to look at 2.999?
- <font color="red"> replace with CSS class
 
Future:
- Check if we can also support these databases listed at the PHP documentation:
/trunk/doc/developer_notes/path_functions.md
10,6 → 10,24
| Local path URL
--------------------------+---------------------------------------------------------------------------------
|
Canonical form of the | n/a OIDplus::canonicalURL(null)
URL in the browser | Example: https://www.example.com/oidplus/?goto=abc&lang=de
(Params preserved and | OIDplus::canonicalURL('def')
ordered) | Example: https://www.example.com/oidplus/?goto=def&lang=de
|
|
URL of the system | n/a OIDplus::getSystemUrl(OIDplus::PATH_RELATIVE)
| Example: ../
| OIDplus::getSystemUrl(OIDplus::PATH_RELATIVE_TO_ROOT)
| Example: /oidplus/
| OIDplus::getSystemUrl(OIDplus::PATH_RELATIVE_TO_ROOT_CANONICAL)
| Example: /oidplus/ (if baseconfig CANONICAL_SYSTEM_URL is set)
| OIDplus::getSystemUrl(OIDplus::PATH_ABSOLUTE)
| Example: http://www.example.com/oidplus/
| OIDplus::getSystemUrl(OIDplus::PATH_ABSOLUTE_CANONICAL)
| Example: http://www.example.org/oidplus/ (if baseconfig CANONICAL_SYSTEM_URL is set)
|
|
Get relative path | OIDplus::localpath(null, true) OIDplus::webpath(null, OIDplus::PATH_RELATIVE)
to base directory | Example: ../ Example: ../
| or
/trunk/plugins/viathinksoft/adminPages/400_oidinfo_export/OIDplusPageAdminOIDInfoExport.class.php
605,7 → 605,7
}
 
$out['text'] = '<noscript>';
$out['text'] .= '<p>'._L('You need to enable JavaScript to use the login area.').'</p>';
$out['text'] .= '<p><font color="red">'._L('You need to enable JavaScript to use the login area.').'</font></p>';
$out['text'] .= '</noscript>';
 
$out['text'] .= '<br><div id="dataTransferArea" style="visibility: hidden"><div id="dataTransferTab" class="container" style="width:100%;">';
/trunk/plugins/viathinksoft/language/dede/messages.xml
4494,34 → 4494,34
</message>
<message>
<source><![CDATA[
OID-IRI notation
OID-IP Auth Token for displaying full RA information: %1 (only applies if the RA has set the privacy-flag)
]]></source>
<target><![CDATA[
OID-IRI-Notation
OID-IP Auth Token zum Anzeigen von vollen Informationen zur Registrierungsstelle (nur erforderlich, wenn diese ihre Kontaktdaten geschützt hat): %1
]]></target>
</message>
<message>
<source><![CDATA[
OID-Info.com import/export
OID-IP Auth Token for displaying full object information: %1 (only applies if the this or superior objects are marked confidential)
]]></source>
<target><![CDATA[
OID-Info.com Import/Export
OID-IP Auth Token zum Anzeigen von vollen Informationen zum Objekt (nur erforderlich, wenn das Objekt oder darüberliegende Objekte versteckt sind): %1
]]></target>
</message>
<message>
<source><![CDATA[
OID-WHOIS Auth Token for displaying full RA information: %1 (only applies if the RA has set the privacy-flag)
OID-IRI notation
]]></source>
<target><![CDATA[
OID-WHOIS Auth Token zum Anzeigen von vollen Informationen zur Registrierungsstelle (nur erforderlich, wenn diese ihre Kontaktdaten geschützt hat): %1
OID-IRI-Notation
]]></target>
</message>
<message>
<source><![CDATA[
OID-WHOIS Auth Token for displaying full object information: %1 (only applies if the this or superior objects are marked confidential)
OID-Info.com import/export
]]></source>
<target><![CDATA[
OID-WHOIS Auth Token zum Anzeigen von vollen Informationen zum Objekt (nur erforderlich, wenn das Objekt oder darüberliegende Objekte versteckt sind): %1
OID-Info.com Import/Export
]]></target>
</message>
<message>
/trunk/plugins/viathinksoft/publicPages/000_objects/OIDplusPagePublicObjects.class.php
953,7 → 953,7
 
if ($obj->userHasWriteRights()) {
$rand = ++self::$crudCounter;
$desc = '<noscript><p><b>'._L('You need to enable JavaScript to edit title or description of this object.').'</b></p>'.$desc.'</noscript>';
$desc = '<noscript><p><font color="red">'._L('You need to enable JavaScript to edit title or description of this object.').'</font></p>'.$desc.'</noscript>';
$desc .= '<div class="container box" style="display:none" id="descbox_'.$rand.'">';
$desc .= _L('Title').': <input type="text" name="title" id="titleedit" value="'.htmlentities($title).'"><br><br>'._L('Description').':<br>';
$desc .= self::showMCE('description', $description);
/trunk/plugins/viathinksoft/publicPages/090_login/OIDplusPagePublicLogin.class.php
157,7 → 157,7
$out['icon'] = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/login_icon.png';
 
$out['text'] = '<noscript>';
$out['text'] .= '<p>'._L('You need to enable JavaScript to use the login area.').'</p>';
$out['text'] .= '<p><font color="red">'._L('You need to enable JavaScript to use the login area.').'</font></p>';
$out['text'] .= '</noscript>';
 
$out['text'] .= '<div id="loginArea" style="visibility: hidden"><div id="loginTab" class="container" style="width:100%;">';
/trunk/plugins/viathinksoft/publicPages/100_whois/OIDplusPagePublicWhois.class.php
115,11 → 115,11
// Use this if webwhois.php implements something which is not yet uploaded to IETF:
//$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>';
# ---
$out['text'] .= '<h2>'._L('Parameters for new request').'</h2>';
$out['text'] .= '<noscript>';
$out['text'] .= '<p>'._L('You need to enable JavaScript to use the login area.').'</p>';
$out['text'] .= '<p><font color="red">'._L('You need to enable JavaScript to use the login area.').'</font></p>';
$out['text'] .= '</noscript>';
$out['text'] .= '<div id="oidipArea" style="display:none">';
$out['text'] .= '<h2>'._L('Parameters for new request').'</h2>';
# ---
$out['text'] .= _L('Requested object including namespace, e.g. %1','<code>oid:2.999</code>').'<br>';
$out['text'] .= '<input type="text" id="whois_query" name="query" value="'.htmlentities($example).'" onkeyup="OIDplusPagePublicWhois.refresh_whois_url_bar()">';
212,8 → 212,8
$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>';
$obj = OIDplusObject::parse($id);
if ($obj && $obj->userHasParentalWriteRights()) {
$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>';
$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>';
$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>';
$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>';
}
 
$text = str_replace('<!-- MARKER 6 -->', '<!-- MARKER 6 -->'.$payload, $text);
/trunk/plugins/viathinksoft/publicPages/100_whois/OIDplusPagePublicWhois.js
68,7 → 68,7
}
if (auth != "") query += "$auth="+auth;
// -------------------------------------------------------------
$("#whois_url_bar")[0].innerText = getSystemUrl() + 'plugins/viathinksoft/publicPages/100_whois/whois/webwhois.php?query=' + encodeURIComponent(query);
$("#whois_url_bar")[0].innerText = getSystemUrl(false) + 'plugins/viathinksoft/publicPages/100_whois/whois/webwhois.php?query=' + encodeURIComponent(query);
$("#whois_query_bar")[0].innerText = query;
}
 
/trunk/plugins/viathinksoft/publicPages/800_login_ldap/OIDplusPagePublicLoginLDAP.class.php
259,7 → 259,7
}
 
$out['text'] = '<noscript>';
$out['text'] .= '<p>'._L('You need to enable JavaScript to use the login area.').'</p>';
$out['text'] .= '<p><font color="red">'._L('You need to enable JavaScript to use the login area.').'</font></p>';
$out['text'] .= '</noscript>';
 
$out['text'] .= '<div id="loginLdapArea" style="visibility: hidden">';