Skip to content

Commit

Permalink
fix : getenv(null)
Browse files Browse the repository at this point in the history
  • Loading branch information
qkqpttgf authored Jan 27, 2022
1 parent c6f8c1c commit c0fdfd3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,10 @@ function main($path)
return output('Please visit <a href="' . $tmp . '">' . $tmp . '</a>.', 301, [ 'Location' => $tmp ]);
}
if ($_SERVER['admin']) {
if (!$_SERVER['disktag']) $_SERVER['disktag'] = '';
if (!class_exists($_GET['AddDisk'])) require 'disk' . $slash . $_GET['AddDisk'] . '.php';
$drive = new $_GET['AddDisk']($_GET['disktag']);
return $drive->AddDisk();
$drive = new $_GET['AddDisk']($_GET['disktag']);
return $drive->AddDisk();
} else {
$url = $_SERVER['PHP_SELF'];
/*if ($_GET) {
Expand Down

0 comments on commit c0fdfd3

Please sign in to comment.