[Devel] [GIT] OpenBioMaps GIT repository, branch devel_2.2 updated: pds api improvements

banm at vocs.unideb.hu banm at vocs.unideb.hu
Wed Oct 25 13:13:59 CEST 2017


    The project "OpenBioMaps GIT repository":

    The branch, devel_2.2 has been updated
       via  df76caf9db62ca197743c379cd61ae93bd548c05 (commit)
      from  95b8bceba96520bb6400f8fd49fdf7190f17bfce (commit)


- Log -----------------------------------------------------------------
commit df76caf9db62ca197743c379cd61ae93bd548c05
Author: Bán Miklós <banm at vocs.unideb.hu>
Date:   Wed Oct 25 13:07:51 2017 +0200

pds api improvements
supporting well formatted URLs - using this feature use the
define('SHINYURL',true);
in local_vars.php and
some examples from .htaccess file:
-# load queries
RewriteRule ^LQ/(.*)/includes/(.*)$ /biomaps/projects/dinpi/includes/$2 [NC,L]
RewriteRule ^LQ/(.*)/css/(.*)$ /biomaps/projects/dinpi/css/$2 [NC,L]
RewriteRule ^LQ/(.*)/meta/$ /biomaps/projects/dinpi/index.php?loadmeta=$1 [NC,L]
RewriteRule ^LQ/(.*)/data/$ /biomaps/projects/dinpi/index.php?loaddata=$1 [NC,L]
RewriteRule ^LQ/(.*)/map/$ /biomaps/projects/dinpi/index.php?LQ=$1 [NC,L]
RewriteRule ^LQ/(.*)/$ /biomaps/projects/dinpi/index.php?loadmeta=$1 [NC,L]

-# load data sheet
RewriteRule ^data/(.*)/includes/(.*)$ /biomaps/projects/dinpi/includes/$2 [NC,L]
RewriteRule ^data/(.*)/css/(.*)$ /biomaps/projects/dinpi/css/$2 [NC,L]
RewriteRule ^data/(.*)/history/$ /biomaps/projects/dinpi/index.php?history=data&id=$1 [NC,L]
RewriteRule ^data/(.*)/$ /biomaps/projects/dinpi/index.php?data&id=$1 [NC,L]
RewriteRule ^meta/upload/(.*)/includes/(.*)$ /biomaps/projects/dinpi/includes/$2 [NC,L]
RewriteRule ^meta/upload/(.*)/css/(.*)$ /biomaps/projects/dinpi/css/$2 [NC,L]
RewriteRule ^meta/upload/(.*)/$ /biomaps/projects/dinpi/index.php?history=upload&id=$1 [NC,L]

-# user profile page
RewriteRule ^user/(.*)/includes/(.*)$ /biomaps/projects/dinpi/includes/$2 [NC,L]
RewriteRule ^user/(.*)/css/(.*)$ /biomaps/projects/dinpi/css/$2 [NC,L]
RewriteRule ^user/(.*)/$ /biomaps/projects/dinpi/index.php?userprofile&id=$1 [NC,L]

-# doi meta page
RewriteRule ^(10.18426)/(.*)/$ /projects/dinpi/index.php?loaddoi=$1/$2 [NC,L]

-----------------------------------------------------------------------

Summary of changes:
 Images/UMS_REPOSITORY/repository.db                |   6 +
 Images/bird_leg.png                                | Bin 0 -> 23738 bytes
 Images/bird_leg_sw.png                             | Bin 0 -> 22637 bytes
 index.php                                          |   6 +-
 oauth/resource.php                                 |   4 +-
 pds/common_pg_funcs.php                            | 152 +++-------------
 pds/pds_class.php                                  |  19 +-
 pds/service.php                                    |   7 +
 .../initial/root/UMS_REPOSITORY/repository.db      |  54 ++++++
 templates/initial/root/index.php                   | 201 ++++++++++++++++++++-
 10 files changed, 304 insertions(+), 145 deletions(-)
 create mode 100644 Images/bird_leg.png
 create mode 100644 Images/bird_leg_sw.png

-- 
OpenBioMaps GIT repository


More information about the Devel mailing list