<?php $scriptStartTime = microtime(true); $autoinit = false; require_once dirname(__FILE__) . '/../../etc/config.php'; require_once R3_LIB_DIR . 'eco_app.php'; initLog(); // Initialize ezLog register_shutdown_function('shutdown'); R3AppInit('admin', array('dbini' => true)); /** * Logout the user and redirect to the right page (login) */ $auth->logout(); $logoutAddress = $dbini->getValue('APPLICATION', 'LOGOUT_ADDRESS', 'login.php'); /* Attach status */ if (isset($_REQUEST['status'])) { if (strpos($logoutAddress, '?') === false) { $logoutAddress .= '?status=' . $_REQUEST['status']; } else { $logoutAddress .= '&status=' . $_REQUEST['status']; } } Header("Location: {$logoutAddress}");
define('R3_WEB_TMP_URL', R3_APP_URL . 'cache/print/'); // print tmp define('R3_WEB_TMP_DIR', R3_APP_ROOT . 'web/cache/print/'); // print tmp } define('GC_PREVIEW_MAP_LAYERGROUP_LIST', null); $auth_options = array('settings_table' => 'auth.settings', 'applications_table' => 'auth.applications', 'users_groups_table' => 'auth.users_groups', 'users_table' => 'auth.users', 'domains_table' => 'auth.domains', 'application_code' => APPLICATION_CODE, 'groups_table' => 'auth.groups', 'groups_acl_table' => 'auth.groups_acl', 'users_acl_table' => 'auth.users_acl', 'users_ip_table' => 'auth.users_ip', 'domains_applications_table' => 'auth.domains_applications', 'domains_name_table' => 'auth.domains_name', 'acnames_table' => 'auth.acnames', 'log_table' => 'auth.logs', 'table' => 'auth.users', 'usernamecol' => 'us_login', 'passwordcol' => 'us_password', 'cryptType' => 'md5', 'auto_quote' => false, 'db_where' => '1=1', 'enable_logging' => true, 'access_log_lifetime' => -1, 'login_log_lifetime' => -1, 'update_status_skip_time' => 5 * 60, 'debug' => false, 'result_buffering' => false); /* ------------------------------ Session Settings ------------------------------ */ $sessionOpt = array('name' => APPLICATION_CODE, 'timeout' => 24 * 60 * 60, 'warning_timeout' => 24 * 60 * 60 - 120, 'cookie_path' => '/'); require_once R3_LIB_DIR . 'r3locale.php'; if (!isset($autoinit) || $autoinit == true) { require_once R3_LIB_DIR . 'eco_app.php'; if (!isset($isUserManager)) { $isUserManager = false; } R3AppInit('admin', array('auth' => !$isUserManager, 'auth_manager' => true, 'dbini' => true)); } $framesetReload = isset($isUserManager) && $isUserManager === true; /** * xCSS config */ $xcssConfig = array('path_to_css_dir' => R3_WEB_CSS_DIR, 'compress_output_to_master' => true, 'minify_output' => true, 'xCSS_files' => array('vars.xcss' => 'vars.css', 'simpletable.xcss' => 'simpletable.css', 'default.xcss' => 'default.css', 'menu.xcss' => 'menu.css', 'ui.all.xcss' => 'ui.all.css'), 'reset_files' => array(), 'hook_files' => array()); $jsPacker = array('files' => array('jquery.all.js' => array('jquery/jquery.js', 'jquery/jquery-ui/jquery-ui.js', 'jquery/plugins/jquery.form.js', 'jquery/plugins/jquery.MultiFile.js', 'jquery/plugins/jquery.printElement.js'), 'jquery.all.i18n.<LANG>.js' => array('jquery/jquery-ui/i18n/jquery.ui.datepicker-<LANG>.js'), 'ecogis2_core.all.js' => array('jscore/r3.core.js', 'jscore/r3.form.js', 'jscore/r3.print.js', 'jscore/r3.help.js', 'jscore/r3.inputnumber.js', 'jscore/r3.previewmap.js', 'jscore/r3.thumbnail.js'), 'gisclient_part1.all.js' => array('../admin/gisclient/js/PanZoomBar.js', '../admin/gisclient/external/proj4js/proj4.js'), 'gisclient_part1.all.i18n.<LANG>.js' => array('../admin/gisclient/languages/lang-<LANG>.js'), 'gisclient_part2.all.js' => array('../admin/gisclient/js/widgetGisClient.js', '../admin/gisclient/js/searchEngine.js', '../admin/gisclient/js/gcTool.js', '../admin/gisclient/js/gcTool/zoomToMaxExtent.js', '../admin/gisclient/js/gcTool/zoomToHistoryPrevious.js', '../admin/gisclient/js/gcTool/zoomToHistoryNext.js', '../admin/gisclient/js/gcTool/pan.js', '../admin/gisclient/js/gcTool/zoomIn.js', '../admin/gisclient/js/gcTool/zoomOut.js', '../admin/gisclient/js/gcTool/measureLine.js', '../admin/gisclient/js/gcTool/measureArea.js', '../admin/gisclient/js/gcTool/drawFeature.js', '../admin/gisclient/js/gcTool/reloadLayers.js', '../admin/gisclient/js/gcTool/redline.js', '../admin/gisclient/js/gcTool/toolTip.js', '../admin/gisclient/js/gcTool/mapPrint.js', '../admin/gisclient/js/gcTool/selectBox.js', '../admin/gisclient/js/gcTool/selectPoint.js', '../admin/gisclient/js/gcTool/selectFeatures.js', '../admin/gisclient/js/searchEngine.js', '../admin/gisclient/js/gcComponent.js', '../admin/gisclient/js/gcComponent/gcLayersManager.js', '../admin/gisclient/js/gcComponent/gcLayerTree.js', '../admin/gisclient/js/gcComponent/gcLegendTree.js', '../admin/gisclient/js/gcComponent/mapInfo.js', '../admin/gisclient/js/gcComponent/snapPoint.js', '../admin/gisclient/js/gcComponent/referenceMap.js', '../admin/gisclient/js/gcComponent/scaleDropDown.js', '../admin/gisclient/js/gcComponent/mapImageDialog.js', '../admin/gisclient/js/gcComponent/searchForm.js', '../admin/gisclient/js/gcComponent/layerTools.js', '../admin/gisclient/js/gcComponent/customSearch.js', '../admin/gisclient/js/gcComponent/errorHandler.js', '../admin/gisclient/js/gcComponent/loadingHandler.js', '../admin/gisclient/js/gcComponent/customSearch.js', '../admin/gisclient_modules/dialogToPopup/dialogToPopup.js', '../admin/gisclient/js/gcComponent/contextHandler.js', '../admin/gisclient/external/jstree/jquery.jstree.min.js', '../admin/gisclient/external/plugin-jquery/jquery.maxzindex.js')), 'JS_files' => array('framework.js', 'eco_app.js', 'eco_utils.js', 'menu.js', 'r3_help.js', 'openfunc.js', 'mapopenfunc.js', 'jquery_extend.js', 'action_catalog.js', 'building.js', 'consumption.js', 'consumption_tree.js', 'customer.js', 'device.js', 'document.js', 'energy_source_udm.js', 'global_action_builder.js', 'global_consumption_row.js', 'global_plain.js', 'global_plain_row.js', 'global_plain_sum.js', 'global_plain_table.js', 'global_result.js', 'global_result_table.js', 'global_result_table_builder.js', 'global_strategy.js', 'meter.js', 'sensor_data.js', 'simulation.js', 'street_lighting.js', 'street_lighting_consumption.js', 'utility.js', 'work.js', 'setup_table_column.js', 'global_result_import.js', 'stat_general.js')); if (defined('R3_APP_URL')) { // Alitrmenti fa casino con command line tools, perchè la constante è inesistente define('GC_MAP_SET_URL', R3_APP_URL . 'author/'); define('GC_INITMAP_URL', GC_MAP_SET_URL . 'services/gcmap.php?jsonformat=true&'); define('GC_APP_ROOT_URL', R3_APP_URL . 'admin/gisclient/'); define('GC_URL', R3_APP_URL . 'admin/gisclient.php'); } define('R3_STAT_FROM_TEXT_1', 'fino a %s');
<?php $scriptStartTime = microtime(true); $autoinit = false; require_once dirname(__FILE__) . '/../../etc/config.php'; require_once R3_LIB_DIR . 'eco_app.php'; register_shutdown_function('shutdown'); /* ---------------- Startup ----------------------------------- */ R3AppInit('admin', array('auth' => true, 'auth_manager' => false)); if (!$auth->isAuth()) { Header("location: logout.php?status=" . $auth->getStatusText()); die; } if (!$auth->hasPerm('SHOW', 'BUILDING')) { // If no permission go to the user manager (for installation) Header("location: app_manager.php?page=user_manager&init"); die; } if ($auth->getConfigValue('APPLICATION', 'MODE') == 'FRAME') { Header("location: app_manager.php?on=building&init"); } else { Header("location: list.php?on=building&init"); }