remove debug raw data
This commit is contained in:
@@ -406,17 +406,6 @@ class AssetTab extends CommonDBTM
|
|||||||
|
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
||||||
echo '<details class="mt-2" style="cursor:pointer;color:#666;font-size:0.85em">';
|
|
||||||
echo '<summary>' . htmlspecialchars(__('API raw data (debug)', 'urbackup')) . '</summary>';
|
|
||||||
echo '<pre style="max-height:300px;overflow:auto;background:#f5f5f5;padding:8px;border:1px solid #ddd;font-size:0.8em">';
|
|
||||||
echo "--- client_settings ---\n\n";
|
|
||||||
echo htmlspecialchars(json_encode($settings, JSON_PRETTY_PRINT));
|
|
||||||
echo "\n\n--- client_status ---\n\n";
|
|
||||||
echo htmlspecialchars(json_encode($status, JSON_PRETTY_PRINT));
|
|
||||||
echo "\n\n--- recent_backups ---\n\n";
|
|
||||||
echo htmlspecialchars(json_encode($api_data['recent_backups'] ?? [], JSON_PRETTY_PRINT));
|
|
||||||
echo '</pre>';
|
|
||||||
echo '</details>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -695,10 +684,6 @@ class AssetTab extends CommonDBTM
|
|||||||
|
|
||||||
echo "<textarea name='default_dirs' rows='4' cols='80'>" . htmlspecialchars($display) . "</textarea><br>";
|
echo "<textarea name='default_dirs' rows='4' cols='80'>" . htmlspecialchars($display) . "</textarea><br>";
|
||||||
|
|
||||||
echo '<div style="color:#999;font-size:0.8em">';
|
|
||||||
echo 'raw: ' . htmlspecialchars(json_encode($raw));
|
|
||||||
echo '</div>';
|
|
||||||
|
|
||||||
echo Html::submit(__('Save'), [
|
echo Html::submit(__('Save'), [
|
||||||
'name' => 'execute',
|
'name' => 'execute',
|
||||||
'class' => 'btn btn-primary',
|
'class' => 'btn btn-primary',
|
||||||
|
|||||||
Reference in New Issue
Block a user