Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grew
grew_match
Commits
d38c1b78
Commit
d38c1b78
authored
Dec 05, 2020
by
Bruno Guillaume
Browse files
pattern file is useless, data in “infos.json” instead
parent
3ce958aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.php
View file @
d38c1b78
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment