Files
webgui/plugins/dynamix/include/update.file.php
Eric Schultz 30ca111094 initial commit
2015-10-24 10:17:28 -07:00

20 lines
628 B
PHP

<?PHP
/* Copyright 2015, Lime Technology
* Copyright 2015, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
?>
<?
// write syslinux file
write_log("Saving file $file");
exec("mkdir -p ".dirname($file));
file_put_contents($file, str_replace(array("\r\n","\r"), "\n", $_POST['text']));
// discard settings
$save = false;
?>