项目作者: level2-gis

项目描述 :
GIS portal and Administration part of Extended QGIS Web Client
高级语言: PHP
项目地址: git://github.com/level2-gis/gisportal.git
创建时间: 2017-07-07T05:47:01Z
项目社区:https://github.com/level2-gis/gisportal

开源协议:MIT License

下载


GIS portal and Administration part of Extended QGIS Web Client

Built with Codeigniter and Bootstrap.

Client part of EQWC is gisapp

Users

  • start page
  • registration
  • single login, browse projects with permission
  • profile page, set own language

Visit Demo for users by Level2

Administrators

Administrator is every user with admin=true in database.

  • view/create/edit/delete clients/projects/layers
  • set base or overlay layers for project (with order)
  • view/edit/delete users
  • delegate users to project
  • activate available plugins for project
  • upload/download QGIS Project file for QGIS Server
  • use QGIS project templates

admin1

Setup

You go through this after you setup gisapp!

This code relies on database from gisapp. Make sure you are running latest database version!

  1. Checkout into web root to have gisportal folder beside gisapp folder (EQWC)

    1. cd /var/www/html/
    2. git clone https://github.com/level2-gis/gisportal.git

    This got you latest code from master.

  2. Setup database connection in application/config/database.php

  3. Setup base site URL and default language in application/config/config.php
  4. Copy gisportal_template.php to gisportal.php in application/config/.
  5. Adjust gisportal specific settings in new gisportal.php file.
  6. Upgrade gisapp database with gisportal specifics. Details are in database/readme.txt.
  7. Edit header_logo.png in assets/img folder.
  8. Enable integration with gisportal in gisapp/client_common/settings.js
  9. To preserve session information from gisapp to gisportal you have to edit php.ini and change line

    1. session.name = PHPSESSID
    2. to
    3. session.name = sess_

    To match default session time from gisportal (7200 sec) edit line

    1. session.gc_maxlifetime = 1440
    2. to
    3. session.gc_maxlifetime = 7200

    This means that you login to gisportal and then browse all public projects or projects you have permission without
    new login.

  10. If you want users to confirm their registration by getting email to activate account you need to enable Email service below and set to TRUE
    option

    1. $config['email_activation']

    in application/third_party/ion_auth/config/ion_auth.php

  11. Navigate browser to http://your-server/gisportal/, you should see login page. Default login is admin, admin.

Email service

You need to configure email for password reset and other email actions from gisportal and gisapp.
Current email configuration is example for Gmail account to send emails using Google SMTP server. That means you don’t need to setup own mail server.
Edit application/config/email.php with your own Gmail access.

Read official Codeigniter documentation on all email preferences that can be set to configure using other mail servers.

Test mail - localhost example

If you have problems sending email check this settings for your Google account: Google-account-configuration

Shortening URL

Now your gisportal URL looks like this:

  1. Read [Shortening URL on Wiki](https://github.com/uprel/gisportal/wiki/Shortening-URL) to remove "/gisportal/index.php", like this:
  2. ```http://your-server/login

You can test this on provided Demo link above!

Translations

  1. Check if your language exists in system folder.
  2. If not get it from Codeigniter Translations
  3. Create folder with language name in application/language folder.
  4. Copy gisportal_lang.php from any other languages to new language folder and translate contents.
  5. Add new language in config/gisportal.php at the bottom: $config[‘available_languages’]. Here you can also remove unwanted languages.
  6. If you wish you can change default language in application/config/config.php.
  7. Get your language also for Bootstrap Table plugin and copy file to /assets/js/locale/ folder. Rename it to only contain language code, as other files in the folder (remove country code).

Styling top menu (navbar)

You can change black background to default gray by changing

  1. navbar-inverse
  2. to
  3. navbar-default

/application/views/templates/header_template.php

Or add lines below to /assets/css/style.css:

  1. .navbar-inverse {
  2. background-color: #222;
  3. border-color: #080808;
  4. }

And change colors as you wish.

Contributing

Support this project by DONATING.

You are also welcome to contribute to the project by testing, requesting new features, translating, submitting code, …
Read this tutorial about making changes to repositories.

Thank you!

Credits

Thanks to all translators, donators and special thanks to following companies for supporting this project:

  • Swescan, Sweden
  • GEL Consulting group, USA
  • Geonord, Norway
  • soljoy, Austria

Support

Contact us for:

  • support
  • custom development

Uroš Preložnik, http://level2.si

Gisportal (c) 2017 - 2025, Level2 Uroš Preložnik s.p.