+/*
+ This function should be called whenever we want to extend core access level system
+ with new security areas and/or sections i.e.:
+ . on any page with non-standard security areas
+ . in security roles editor
+ The call should be placed between session.inc inclusion and page() call.
+*/
+function add_access_extensions()
+{
+ global $path_to_root, $security_areas, $security_sections, $installed_extensions;
+
+ foreach($installed_extensions as $ext) {
+ if (@$ext['active'] && isset($ext['acc_file']))
+ include($path_to_root.($ext['type'] == 'plugin' ? '/modules/':'/').$ext['path'].'/'.$ext['acc_file']);
+ }
+}
+