Ajout parse-ini.php
davvalent

davvalent commited on 2022-05-02 04:20:12
Showing 2 changed files, with 2 additions and 9 deletions.

... ...
@@ -6,3 +6,4 @@ vendor/
6 6
 # fichiers
7 7
 /composer.json
8 8
 /composer.lock
9
+/parse-ini.php
9 10
\ No newline at end of file
... ...
@@ -2,15 +2,7 @@
2 2
 
3 3
 if (!empty($_POST)) {
4 4
 
5
-  try {
6
-
7
-    if (!$infos = @parse_ini_file('../ts.ini'))
8
-      throw new Exception('réessayez plus tard.');
9
-
10
-  } catch (Exception $e) {
11
-      exit('Erreur : ' . $e->getMessage());
12
-  }
13
-
5
+  require 'parse-ini.php';
14 6
   require 'vendor/autoload.php';
15 7
 
16 8
   $config = array(
17 9