Skip to content

Commit

Permalink
try fix : getenv(null)
Browse files Browse the repository at this point in the history
  • Loading branch information
qkqpttgf committed Jan 20, 2022
1 parent c5e7cab commit be58a17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common.php
Expand Up @@ -222,6 +222,7 @@ function main($path)
return output('Please visit <a href="' . $tmp . '">' . $tmp . '</a>.', 301, [ 'Location' => $tmp ]);
}
if ($_SERVER['admin']) {
$_SERVER['disktag'] = '';
if (!class_exists($_GET['AddDisk'])) require 'disk' . $slash . $_GET['AddDisk'] . '.php';
$drive = new $_GET['AddDisk']($_GET['disktag']);
return $drive->AddDisk();
Expand Down

0 comments on commit be58a17

Please sign in to comment.