Example #1
0
 <?php 
// only load configuration for activated plugins
$ini['pluginsConfig'] = $_SESSION['pluginsConfig'];
// add allGroups if not defined in XML config
if (!$ini['map']['allGroups']) {
    $ini['map']['allGroups']['group'] = $_SESSION['allGroups'];
}
?>
 
 PM.ini = <?php 
echo PMCommon::parseJSON($ini, false);
?>
 ;
 
 <?php 
echo PMCommon::writeJSArrays();
?>
 
 $.merge(PM.categoriesClosed, <?php 
echo "['" . implode("','", $_SESSION['categoriesClosed']) . "']";
?>
);

// Query layers: modify query results in js
PM.modifyQueryResultsFunctions = [<?php 
if (count($plugin_jsModifyQueryResultsFunctions) > 0) {
    echo "'" . implode("','", $plugin_jsModifyQueryResultsFunctions) . "'";
}
?>
];