|
|
@@ -25,7 +25,7 @@ if (core::ifPost("from") AND core::getPost("from") == $name["files"]) {
|
|
|
}
|
|
|
} elseif ($_FILES[$name["files"]]['type'] != "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") {
|
|
|
alert::recError("Seuls les fichiers Excel au format xlsx sont acceptés");
|
|
|
- header("Location: /?p=".$name["returnKo"]);
|
|
|
+ header("Location: /".$name["returnKo"] . ".html");
|
|
|
exit();
|
|
|
} else {
|
|
|
|
|
|
@@ -71,7 +71,7 @@ if (core::ifPost("from") AND core::getPost("from") == $name["files"]) {
|
|
|
($excelValues[7] != "site_nom") ? alert::recError("La 8em colonne doit se nommer site_nom") : "";
|
|
|
($excelValues[8] != "od_login") ? alert::recError("La 9em colonne doit se nommer od_login") : "";
|
|
|
|
|
|
- header("Location: /?p=".$name["returnKo"]);
|
|
|
+ header("Location: /".$name["returnKo"] . ".html");
|
|
|
exit();
|
|
|
}
|
|
|
|
|
|
@@ -103,7 +103,7 @@ if (core::ifPost("from") AND core::getPost("from") == $name["files"]) {
|
|
|
db::execute();
|
|
|
} catch (Exception $ex) { echo $ex;
|
|
|
alert::recError("Erreur sur l'import du fichier " . $_FILES[$name["files"]]['name']);
|
|
|
- header("Location: /?p=".$name["returnKo"]);
|
|
|
+ header("Location: /".$name["returnKo"] . ".html");
|
|
|
exit();
|
|
|
}
|
|
|
|
|
|
@@ -112,7 +112,7 @@ if (core::ifPost("from") AND core::getPost("from") == $name["files"]) {
|
|
|
|
|
|
$md5File = file::record($_FILES[$name["files"]]);
|
|
|
if($md5File == FALSE){
|
|
|
- header("Location: /?p=proweb-historique-excel");
|
|
|
+ header("Location: /proweb-historique-excel.html");
|
|
|
exit();
|
|
|
}
|
|
|
|
|
|
@@ -130,7 +130,7 @@ if (core::ifPost("from") AND core::getPost("from") == $name["files"]) {
|
|
|
db::execute();
|
|
|
} catch (Exception $ex) {
|
|
|
alert::recError("Erreur sur l'import du fichier " . $_FILES[$name["files"]]['name']);
|
|
|
- header("Location: /?p=proweb-historique-excel");
|
|
|
+ header("Location: /proweb-historique-excel.html");
|
|
|
exit();
|
|
|
}
|
|
|
|
|
|
@@ -138,14 +138,14 @@ if (core::ifPost("from") AND core::getPost("from") == $name["files"]) {
|
|
|
|
|
|
json::create($name["json"]);
|
|
|
alert::recSuccess("Le fichier " . $_FILES[$name["files"]]['name'] . " a été chargé avec succès");
|
|
|
- header("Location: /?p=".$name["returnOk"]);
|
|
|
+ header("Location: /".$name["returnOk"] . ".html");
|
|
|
exit();
|
|
|
} else {
|
|
|
alert::recError("Erreur lors du chargement du fichier : " . $_FILES[$name["files"]]['name']);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- header("Location: /?p=".$name["returnKo"]);
|
|
|
+ header("Location: /".$name["returnKo"] . ".html");
|
|
|
exit();
|
|
|
} else {
|
|
|
header('HTTP/1.0 401 Unauthorized');
|