$action = (isset($_POST['f_action'])) ? clean_texte($_POST['f_action']) : ''; $type = (isset($_POST['f_type'])) ? clean_texte($_POST['f_type']) : ''; $aff_classe_txt = (isset($_POST['f_aff_classe'])) ? clean_texte($_POST['f_aff_classe']) : ''; $aff_classe_id = (isset($_POST['f_aff_classe'])) ? clean_entier(substr($_POST['f_aff_classe'],1)) : 0; $aff_periode = (isset($_POST['f_aff_periode'])) ? clean_entier($_POST['f_aff_periode']) : 0; $date_debut = (isset($_POST['f_date_debut'])) ? clean_texte($_POST['f_date_debut']) : ''; $date_fin = (isset($_POST['f_date_fin'])) ? clean_texte($_POST['f_date_fin']) : ''; $ref = (isset($_POST['f_ref'])) ? clean_texte($_POST['f_ref']) : ''; $date = (isset($_POST['f_date'])) ? clean_texte($_POST['f_date']) : ''; $date_fr = (isset($_POST['f_date_fr'])) ? clean_texte($_POST['f_date_fr']) : ''; $date_mysql = (isset($_POST['f_date_mysql'])) ? clean_texte($_POST['f_date_mysql']) : ''; $date_visible = (isset($_POST['f_date_visible'])) ? clean_texte($_POST['f_date_visible']) : ''; // Peut valoir une date (JJ/MM/AAAA) ou "identique" $date_autoeval = (isset($_POST['f_date_autoeval'])) ? clean_texte($_POST['f_date_autoeval']) : ''; // Peut valoir une date (JJ/MM/AAAA) ou "sans objet" $description = (isset($_POST['f_description'])) ? clean_texte($_POST['f_description']) : ''; $doc_sujet = (isset($_POST['f_doc_sujet'])) ? clean_fichier($_POST['f_doc_sujet']) : ''; $doc_corrige = (isset($_POST['f_doc_corrige'])) ? clean_fichier($_POST['f_doc_corrige']) : ''; $groupe = (isset($_POST['f_groupe'])) ? clean_texte($_POST['f_groupe']) : ''; $groupe_nom = (isset($_POST['f_groupe_nom'])) ? clean_texte($_POST['f_groupe_nom']) : ''; $cart_contenu = (isset($_POST['f_contenu'])) ? clean_texte($_POST['f_contenu']) : ''; $cart_detail = (isset($_POST['f_detail'])) ? clean_texte($_POST['f_detail']) : ''; $orientation = (isset($_POST['f_orientation'])) ? clean_texte($_POST['f_orientation']) : ''; $marge_min = (isset($_POST['f_marge_min'])) ? clean_texte($_POST['f_marge_min']) : ''; $couleur = (isset($_POST['f_couleur'])) ? clean_texte($_POST['f_couleur']) : ''; $only_req = (isset($_POST['f_restriction_req'])) ? true : false; $doc_objet = (isset($_POST['f_doc_objet'])) ? clean_texte($_POST['f_doc_objet']) : ''; $doc_nom = (isset($_POST['f_doc_nom'])) ? clean_texte($_POST['f_doc_nom']) : ''; $timestamp = (isset($_POST['timestamp'])) ? (float)$_POST['timestamp'] : time(); // Pas de (int) car sur les systèmes 32-bit, le max est 2147483647 alors que js envoie davantage (http://fr.php.net/manual/fr/language.types.integer.php#103506) $dossier_export = './__tmp/export/'; $dossier_devoir = './__tmp/devoir/'.$_SESSION['BASE'].'/'; $fnom_export = 'saisie_'.$_SESSION['BASE'].'_'.$_SESSION['USER_ID'].'_'.$ref.'_'.$timestamp;
/** * Code inclus commun aux pages * [./releves_bilans__releve_items_matiere.ajax.php] * [./releves_bilans__releve_items_multimatiere.ajax.php] * [./releves_bilans__releve_items_selection.ajax.php] * */ /* $type_individuel $type_synthese $type_bulletin $format matiere selection multimatiere */ $dossier = './__tmp/export/'; $fichier_nom = 'releve_item_'.$format.'_'.clean_fichier($groupe_nom).'_<REPLACE>_'.fabriquer_fin_nom_fichier(); if(!$aff_coef) { $texte_coef = ''; } if(!$aff_socle) { $texte_socle = ''; } if(!$aff_lien) { $texte_lien_avant = ''; } if(!$aff_lien) { $texte_lien_apres = ''; } $date_complement = ($retroactif=='oui') ? ' (notes antérieures comptées).' : '.'; $texte_periode = 'Du '.$date_debut.' au '.$date_fin.$date_complement; $tab_titre = array('matiere'=>'d\'items - '.$matiere_nom , 'multimatiere'=>'d\'items pluridisciplinaire' , 'selection'=>'d\'items sélectionnés'); $info_ponderation_complete = ($with_coef) ? '(pondérée)' : '(non pondérée)' ; $info_ponderation_courte = ($with_coef) ? 'pondérée' : 'simple' ; // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /*
* sans même la garantie implicite de COMMERCIALISABILITÉ ni d’ADÉQUATION À UN OBJECTIF PARTICULIER. * Consultez la Licence Générale Publique GNU pour plus de détails. * * Vous devriez avoir reçu une copie de la Licence Générale Publique GNU avec SACoche ; * si ce n’est pas le cas, consultez : <http://www.gnu.org/licenses/>. * */ /** * Code inclus commun aux pages * [./releves_bilans__releve_synthese_matiere.ajax.php] * [./releves_bilans__releve_synthese_multimatiere.ajax.php] */ $dossier = './__tmp/export/'; $fichier_nom = 'releve_synthese_'.$format.'_'.clean_fichier($groupe_nom).'_'.fabriquer_fin_nom_fichier(); if(!$aff_coef) { $texte_coef = ''; } if(!$aff_socle) { $texte_socle = ''; } if(!$aff_lien) { $texte_lien_avant = ''; } if(!$aff_lien) { $texte_lien_apres = ''; } $date_complement = ($retroactif=='oui') ? ' (évaluations antérieures comptabilisées).' : '.'; $texte_periode = 'Du '.$date_debut.' au '.$date_fin.$date_complement ; $tab_titre = array('matiere'=>'d\'une matière' , 'multimatiere'=>'multidisciplinaire'); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /* * Libérer de la place mémoire car les scripts de bilans sont assez gourmands. * Supprimer $DB_TAB ne fonctionne pas si on ne force pas auparavant la fermeture de la connexion. * SebR devrait peut-être envisager d'ajouter une méthode qui libère cette mémoire, si c'est possible...