When to include which files
From MapbenderWiki
Contents |
conf/mapbender.conf
Includes the settings of the Mapbender installations. See mapbender.conf.
core/system.php
includes mapbender.conf.
System-relevant settings and constants, which will be most likely left untouched by the administrator. Also establishes a database connection.
Use this file if you want to work without sessions.
core/globalSettings.php
includes system.php.
Session-relevant settings and constants. Also starts the session.
http/php/mb_validateSession.php
includes globalSettings.php.
Checks if the user is logged in.
Shall be used wherever access control is not possible, like server side AJAX modules or basically any php under http which is not a module. However, all service operations are validated anyway.
http/php/mb_validatePermission.php
includes mb_validateSession.php.
Must be included in all Mapbender modules.
