Initial rewiring

This commit is contained in:
“VeLiTi”
2025-01-30 13:43:02 +01:00
parent 6f1cc27ec4
commit 390a6e9f4f
14 changed files with 38 additions and 38 deletions

View File

@@ -3,15 +3,15 @@ defined('admin') or exit;
// Capture post data
if (isset($_POST['language_US'], $_POST['language_NL'])) {
// Save templates
file_put_contents('../custom/translations_US.php', $_POST['language_US']);
file_put_contents('../custom/translations_NL.php', $_POST['language_NL']);
file_put_contents('../custom/translations/translations_US.php', $_POST['language_US']);
file_put_contents('../custom/translations/translations_NL.php', $_POST['language_NL']);
header('Location: index.php?page=language&success_msg=1');
exit;
}
// Read language_US template PHP file
$contents = file_get_contents('../custom/translations_US.php');
$contents = file_get_contents('../custom/translations/translations_US.php');
// Read language template PHP file
$contents2 = file_get_contents('../custom/translations_NL.php');
$contents2 = file_get_contents('../custom/translations/translations_NL.php');
// Handle success messages
if (isset($_GET['success_msg'])) {
if ($_GET['success_msg'] == 1) {