Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 945 → Rev 946

/trunk/.htaccess
0,0 → 1,7
<IfModule mod_rewrite.c>
RewriteEngine On
 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php?h404=%{REQUEST_URI} [L,QSA]
</IfModule>
/trunk/TODO
7,13 → 7,20
- a possibility to export&transfer all data between OIDplus'es: Attention: Do not use this XML Export/Import to exchange, backup or restore data between OIDplus systems!
- a possibility to 'construct' my own object types in UI (1: specify list of their fields and 2: choose "oid-like/forward" com.example.api or "domain-like/reverse" api.example.com naming scheme), so they would appear as the whole new type
 
RDAP:
- Extend handle404() to handle more things required by the RFC, as well as more object types
- "HTTP 404" rewrite: Also implement for NGINX and IIS, see .htaccess
- More TODO see GitHub repository https://github.com/frdl/oidplus-frdlweb-rdap/issues
 
GS1 plugin:
- prefilterQuery: If we query a gs1 which has a check digit, we should be redirected to the number without checkdigit.
But... how do we know if the last digit is a checkdigit or if it is a longer number with a missing check-digit?
 
Application Identifier (aid) Object Type Plugin:
- When aid_decoder.inc.php finds a mistake, should we forbid to create the AID? But some companies might already use invalid identifiers.
- Category "F": Offer a "random ID" button (+ enter desired length), like we did for GUID
- Link to ViaThinkSoft-Foreign-AID
 
Implement RDAP!
 
New Object Type plugins:
- LSID ?
- International Geo Sample Number ?
/trunk/includes/classes/OIDplusPagePlugin.class.php
26,6 → 26,7
public function gui($id, &$out, &$handled) {}
public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') {}
public function tree_search($request) {}
public function handle404($request) { return false; }
 
public function csrfUnlock($actionID) {
// override this method if you want that your plugin
/trunk/index.php
29,6 → 29,18
 
$static_node_id = isset($_REQUEST['goto']) ? $_REQUEST['goto'] : 'oidplus:system';
 
if (isset($_REQUEST['h404'])) {
$handled = false;
$plugins = OIDplus::getPagePlugins();
foreach ($plugins as $plugin) {
if ($plugin->handle404($_REQUEST['h404'])) $handled = true;
}
if (!$handled) {
header('Location:'.OIDplus::webpath().'?goto='.urlencode('oidplus:err:'.$_REQUEST['h404']));
die();
}
}
 
$static_node_id = OIDplus::prefilterQuery($static_node_id, false);
 
$static = OIDplus::gui()->generateContentPage($static_node_id);