Remove debug section from display
- Removed visible debug information section - Debug data collection remains in code for future troubleshooting - Clean user interface now shows only results 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4fa3e07784
commit
8d9d7d87db
1 changed files with 0 additions and 38 deletions
38
index.php
38
index.php
|
|
@ -331,44 +331,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
</form>
|
||||
</div> <!-- end protected-content -->
|
||||
|
||||
<!-- DEBUG SECTION - Always show after POST -->
|
||||
<?php if ($_SERVER['REQUEST_METHOD'] === 'POST'): ?>
|
||||
<div class="result" style="background-color: #fff3cd; border: 2px solid #ffc107; padding: 15px; margin-top: 20px;">
|
||||
<h2>🔍 DEBUG INFORMATION</h2>
|
||||
|
||||
<div style="margin-bottom: 15px;">
|
||||
<strong>POST Request Received:</strong> Yes<br>
|
||||
<strong>Box URL:</strong> <?php echo htmlspecialchars($boxUrl ?? 'Not set'); ?><br>
|
||||
<strong>Username:</strong> <?php echo htmlspecialchars($username ?? 'Not set'); ?><br>
|
||||
<strong>File ID:</strong> <?php echo htmlspecialchars($fileId ?? 'Not extracted'); ?><br>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($debugInfo)): ?>
|
||||
<div style="background: white; padding: 10px; border-radius: 4px; margin-bottom: 10px;">
|
||||
<h3>Debug Info:</h3>
|
||||
<pre style="max-height: 300px; overflow: auto;"><?php echo htmlspecialchars(print_r($debugInfo, true)); ?></pre>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div style="background: white; padding: 10px; border-radius: 4px; margin-bottom: 10px;">
|
||||
<h3>$result variable:</h3>
|
||||
<strong>isset($result):</strong> <?php echo isset($result) ? 'TRUE' : 'FALSE'; ?><br>
|
||||
<strong>is_null($result):</strong> <?php echo is_null($result) ? 'TRUE' : 'FALSE'; ?><br>
|
||||
<strong>Type:</strong> <?php echo gettype($result); ?><br>
|
||||
<?php if ($result): ?>
|
||||
<pre style="max-height: 300px; overflow: auto;"><?php echo htmlspecialchars(print_r($result, true)); ?></pre>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div style="background: white; padding: 10px; border-radius: 4px;">
|
||||
<h3>$error variable:</h3>
|
||||
<strong>isset($error):</strong> <?php echo isset($error) ? 'TRUE' : 'FALSE'; ?><br>
|
||||
<strong>Value:</strong> <?php echo htmlspecialchars($error ?? 'NULL'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<!-- END DEBUG SECTION -->
|
||||
|
||||
<?php if (isset($result) || isset($error)): ?>
|
||||
<div class="result">
|
||||
<h2>Result</h2>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue