Initial commit
This commit is contained in:
16
actions/save-settings.php
Normal file
16
actions/save-settings.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
|
||||
$type = $_GET["type"];
|
||||
$value = $_GET["value"];
|
||||
|
||||
$settings = json_decode(file_get_contents("../settings.json"), true);
|
||||
|
||||
$settings[$type] = $value;
|
||||
|
||||
file_put_contents("../temp.json",json_encode($settings, true));
|
||||
|
||||
|
||||
print("true");
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user