mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 08:24:24 -05:00
latest copy
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
<?php
|
||||
if (!empty($_POST)) {
|
||||
|
||||
if (DIRECTORY_SEPARATOR === '/') {
|
||||
file_put_contents("../d2um.conf", $_POST['path'].DIRECTORY_SEPARATOR);
|
||||
}
|
||||
|
||||
if (DIRECTORY_SEPARATOR === '\\') {
|
||||
file_put_contents("../d2um.conf", $_POST['path'].DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'global'.DIRECTORY_SEPARATOR.'excel'.DIRECTORY_SEPARATOR);
|
||||
}
|
||||
header('Location: /');
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user