parent
04721295fa
commit
d4adc8233e
|
@ -262,6 +262,10 @@ function main($path)
|
||||||
|
|
||||||
// Add disk
|
// Add disk
|
||||||
if (isset($_GET['AddDisk'])) {
|
if (isset($_GET['AddDisk'])) {
|
||||||
|
if ($_GET['AddDisk']===true) {
|
||||||
|
$tmp = path_format($_SERVER['base_path'] . '/' . $path);
|
||||||
|
return output('Please visit <a href="' . $tmp . '">' . $tmp . '</a>.', 301, [ 'Location' => $tmp ]);
|
||||||
|
}
|
||||||
if ($_SERVER['admin']) {
|
if ($_SERVER['admin']) {
|
||||||
if (!class_exists($_GET['AddDisk'])) require 'disk' . $slash . $_GET['AddDisk'] . '.php';
|
if (!class_exists($_GET['AddDisk'])) require 'disk' . $slash . $_GET['AddDisk'] . '.php';
|
||||||
$drive = new $_GET['AddDisk']($_GET['disktag']);
|
$drive = new $_GET['AddDisk']($_GET['disktag']);
|
||||||
|
|
Loading…
Reference in New Issue