|
@@ -21,8 +21,8 @@ class QuotaController {
|
|
|
echo json_encode(['error' => 'Failed to get user quota', 'details' => implode("\n", $userOutput)]);
|
|
echo json_encode(['error' => 'Failed to get user quota', 'details' => implode("\n", $userOutput)]);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- error_log("DEBUG: Getting Quota for $username => " . implode("", $userOutput));
|
|
|
|
|
-// echo json_decode(print_r($userOutput));
|
|
|
|
|
|
|
+// error_log("DEBUG: Getting Quota for $username => " . implode("", $userOutput));
|
|
|
|
|
+ echo (implode($userOutput));
|
|
|
}
|
|
}
|
|
|
public static function getStats(): void {
|
|
public static function getStats(): void {
|
|
|
// get all quotas
|
|
// get all quotas
|
|
@@ -34,7 +34,7 @@ class QuotaController {
|
|
|
echo json_encode(['error' => 'Failed to get quota stats', 'details' => implode("\n", $userOutput)]);
|
|
echo json_encode(['error' => 'Failed to get quota stats', 'details' => implode("\n", $userOutput)]);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- echo $userOutput;
|
|
|
|
|
|
|
+ echo (implode($userOutput));
|
|
|
}
|
|
}
|
|
|
public static function setQuota($data): void {
|
|
public static function setQuota($data): void {
|
|
|
$username = $data['username'];
|
|
$username = $data['username'];
|