Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 4e285497 authored by Estéban Ristich's avatar Estéban Ristich
Browse files

Fix Issue #62 Add recipe file verification

parent e9d97bf5
......@@ -17,10 +17,19 @@ unset($erreur);
$description = param_post('description');
$equipment_id = param_post('equipment');
$supplier_id = param_post('company');
$recipe = param_post('recipe');
$date = param_post('date');
$intervention_id = param_post('id');
$recipe = '';
if (isset($_FILES["recipe"])) {
$recipe = $_FILES['recipe']['name'];
$recipe = str_replace(' ', '_', $recipe);
$recipe = str_replace('é', 'e', $recipe);
$recipe = str_replace('è', 'e', $recipe);
$recipe = str_replace('à', 'a', $notice);
}
$pdo = connect_db_or_alert();
$new = True;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment