Initial rewiring
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user