diff --git a/_pages.php b/_pages.php index b45d23f..1d3d040 100644 --- a/_pages.php +++ b/_pages.php @@ -41,7 +41,9 @@ pg('help', 'cfg page-help', 'help', '/help'); pg('about', 'cfg page-about', 'about', '/about'); pg('term', 'term', '', '/', 'title.term'); -pg('reset_screen', 'api', '', '/api/v1/clear', 'title.term'); +pg('reset_screen', 'api', '', '/api/v1/clear'); +pg('ini_export', 'api', '', '/cfg/system/export'); +pg('ini_import', 'api', '', '/cfg/system/import'); pg('index', 'api', '', '/', ''); diff --git a/lang/common.php b/lang/common.php index f2d6c75..59380bd 100644 --- a/lang/common.php +++ b/lang/common.php @@ -16,4 +16,6 @@ return [ 'menu.restore_hard' => '', 'menu.reset_screen' => '', 'menu.index' => '', + 'menu.ini_export' => '', + 'menu.ini_import' => '', ]; diff --git a/lang/en.php b/lang/en.php index c200871..9037046 100644 --- a/lang/en.php +++ b/lang/en.php @@ -229,6 +229,11 @@ return [ 'persist.restore_hard_explain' => '(This clears the WiFi config! Does not affect saved defaults or admin password.)', + 'backup.title' => 'Back-up Config File', + 'backup.explain' => 'All config except the admin password can be backed up and restored using an INI file.', + 'backup.export' => 'Export to file', + 'backup.import' => 'Import!', + // UART settings form 'uart.title' => 'Serial Port Parameters', diff --git a/pages/cfg_system.php b/pages/cfg_system.php index edae7c7..4df2b0a 100644 --- a/pages/cfg_system.php +++ b/pages/cfg_system.php @@ -27,6 +27,29 @@ + +