require_once 'modules/CustomView/CustomView.php'; require_once 'modules/PickList/PickListUtils.php'; require_once 'modules/Invoice/Invoice.php'; require_once 'modules/Quotes/Quotes.php'; require_once 'modules/PurchaseOrder/PurchaseOrder.php'; require_once 'modules/SalesOrder/SalesOrder.php'; require_once 'include/utils/Session.php'; coreBOS_Session::init(); // Set the current language and the language strings, if not already set. setCurrentLanguage(); global $allow_exports, $app_strings; $current_user = new Users(); if (isset($_SESSION['authenticated_user_id'])) { $result = $current_user->retrieveCurrentUserInfoFromFile($_SESSION['authenticated_user_id'], "Users"); if ($result == null) { coreBOS_Session::destroy(); header("Location: index.php?action=Login&module=Users"); exit; } } //Security Check if (isPermitted($_REQUEST['module'], "Export") == "no") { $allow_exports = "none"; } if ($allow_exports == 'none' || $allow_exports == 'admin' && !is_admin($current_user)) { ?> <script type='text/javascript'> alert("<?php echo $app_strings['NOT_PERMITTED_TO_EXPORT']; ?> ");