Commit d38c1b78 authored by Bruno Guillaume's avatar Bruno Guillaume
Browse files

pattern file is useless, data in “infos.json” instead

parent 3ce958aa
......@@ -29,11 +29,8 @@ function new_() {
$old = umask(0);
mkdir($dir . $id, 0777);
umask($old);
$pattern = fopen($dir . $id . "/pattern","w");
fwrite($pattern, $_POST['pattern']);
fclose($pattern);
$infos = fopen($dir . $id . "/infos","w");
$infos = fopen($dir . $id . "/infos.json","w");
fwrite($infos, json_encode ($_POST));
fclose($infos);
......
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