-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgen_json.php
More file actions
26 lines (26 loc) · 777 Bytes
/
gen_json.php
File metadata and controls
26 lines (26 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/*"allow_type_pre": "1",
* "allow_type_post": "1",
* "allow_category_1": "1",
* "allow_category_2": "1",
* "allow_category_3": "1",
* "allow_category_4": "1",
* "allow_category_5": "1",
*/
$data = array(
'js_allow_type' => array(
'allow_type_pre' => '1',
'allow_type_post' => '1',
)
);
file_put_contents('json_type.txt',json_encode($data));
$json_2 = array(
'js_allow_category' => array(
"allow_category_1"=> "1",
"allow_category_2"=> "1",
"allow_category_3"=> "1",
"allow_category_4"=> "1",
"allow_category_5"=> "1",
)
);
file_put_contents('json_cate.txt',json_encode($json_2));