[Devel] [GIT] OpenBioMaps GIT repository, branch master updated: .

git at vocs.unideb.hu git at vocs.unideb.hu
Sat Sep 8 00:34:16 CEST 2018


    The project "OpenBioMaps GIT repository":

    The branch, master has been updated
       via  4888b5b34c6cdd1ee043298337ca9ca2159ffa9a (commit)
       via  39de078d48ab05705c79cd4017458ac5061304a7 (commit)
       via  cf67a60956f0a881084a7065ed0db1d0849b1ed6 (commit)
      from  a459cf24e50fb7280cf892e411d531968b450fc0 (commit)


- Log -----------------------------------------------------------------
commit 4888b5b34c6cdd1ee043298337ca9ca2159ffa9a
Author: Bán Miklós <banm at vocs.unideb.hu>
Date:   Sat Sep 8 00:34:08 2018 +0200

.

commit 39de078d48ab05705c79cd4017458ac5061304a7
Author: Bán Miklós <banm at vocs.unideb.hu>
Date:   Sat Sep 8 00:26:48 2018 +0200

removing magic numbers, improving db_updates

Magic number: user_status changed to:
banned,normal,master,operator,assistant

project_users -> user_status automatically ALTERED BY new db_updates

db_updates:

require_once('db_updates.php');
db_updates('project user status to varchar');

this function is only a small burden for code execution and can make
custom updates on the db.

To use this new functions you should create a new table in biomaps:

CREATE TABLE db_updates (
status boolean DEFAULT false NOT NULL,
datum date DEFAULT now() NOT NULL,
revision character varying(64) NOT NULL
);
ALTER TABLE ONLY db_updates
ADD CONSTRAINT db_updates_pkey PRIMARY KEY (revision);

commit cf67a60956f0a881084a7065ed0db1d0849b1ed6
Author: Bán Miklós <banm at vocs.unideb.hu>
Date:   Fri Sep 7 22:08:50 2018 +0200

Elimintaing magic numbers

All changes are backward compatible!

numeric ACC_LEVEL, MOD_LEVEL can be replaced with
'public','login','group' words
In new project these string will be used.

numeric sensitivity value in *_rules tables van be replaced with
'public','no-geom','restricted','only-owner' words
In new project these string will be used.

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

Summary of changes:
 libs/.common_pg_funcs.php.swi        | Bin 270336 -> 290816 bytes
 libs/common_pg_funcs.php             |  28 +++----
 libs/create_new_project.php          |   4 +-
 libs/db_funcs.php                    |  59 +++++++-------
 libs/db_updates.php                  | 145 +++++++++++++++++++++++------------
 libs/interface.php                   |  14 ++--
 libs/languages.php                   |   3 +-
 libs/languages/admin-en.php          |   4 +-
 libs/languages/admin-hu.php          |   4 +-
 libs/languages/admin-ro.php          |   4 +-
 libs/mod_project.php                 |   3 +
 libs/modules/identify_point.php      |   8 +-
 libs/modules/results_asCSV.php       |   4 +-
 libs/modules/results_asGPX.php       |   4 +-
 libs/modules/results_asJSON.php      |   4 +-
 libs/modules/results_asList.php      |   4 +-
 libs/modules/results_asStable.php    |   4 +-
 libs/modules/results_specieslist.php |   2 +-
 libs/modules/results_summary.php     |   2 +-
 libs/profile.php                     |  16 ++--
 libs/project_admin.php               |  11 ++-
 libs/results_builder.php             |  18 ++---
 pds/common_pg_funcs.php              |   9 ++-
 23 files changed, 207 insertions(+), 147 deletions(-)

-- 
OpenBioMaps GIT repository


More information about the Devel mailing list