* \brief manage all the export to CSV or PDF * act can be * */ define('ALLOWED', 1); require_once '../include/constant.php'; global $g_user, $cn, $g_parameter; require_once NOALYSS_INCLUDE . '/class_database.php'; require_once NOALYSS_INCLUDE . '/class_user.php'; $gDossier = dossier::id(); $cn = new Database($gDossier); mb_internal_encoding("UTF-8"); $g_user = new User($cn); $g_user->Check(); $action = $g_user->check_dossier($gDossier); set_language(); if ($action == 'X' || !isset($_GET['act']) || $g_user->check_print($_GET['act']) == 0) { echo alert(_('Accès interdit')); redirect("do.php?" . dossier::get()); exit; } // get file and execute it $action = HtmlInput::default_value_get('act', null); if ($action == null) { die(_('Appel invalide')); } $prfile = $cn->get_value("select me_file from menu_ref where me_code=\$1", array($action)); if ($prfile == "") { die(_('Export impossible')); } require_once $prfile;