mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 12:36:03 +00:00
latest copy
This commit is contained in:
parent
f14140fc72
commit
91c531be73
@ -1,6 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!empty($_POST)) {
|
if (!empty($_POST)) {
|
||||||
file_put_contents("../d2um.conf", $_POST['path'].DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'global'.DIRECTORY_SEPARATOR.'excel'.DIRECTORY_SEPARATOR);
|
|
||||||
|
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: /');
|
header('Location: /');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user