![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/gocodeme.com/public_html/BACKUP/ |
<?php
header('Content-Type: text/html; charset=utf-8');
// Function to test URL accessibility
function testUrl($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$error = curl_error($ch);
curl_close($ch);
return [
'http_code' => $httpCode,
'error' => $error,
'working' => $httpCode === 200
];
}
// Function to scan files for specific content
function scanFiles($pattern, $searchTerm) {
$files = glob($pattern);
$results = [];
foreach ($files as $file) {
$content = file_get_contents($file);
if (strpos($content, $searchTerm) !== false) {
$results[] = $file;
}
}
return $results;
}
// Test the broken URL
$brokenUrl = 'https://soundstudiopro.com/audiofiles.php?id=8cd1c23483097cc26fac73049ea0302d';
$testResult = testUrl($brokenUrl);
// Scan for files containing the broken URL
$filesWithBrokenUrl = scanFiles('*.php', '8cd1c23483097cc26fac73049ea0302d');
$filesWithSoundstudiopro = scanFiles('*.php', 'soundstudiopro.com');
$filesWithAndrew = scanFiles('*.php', 'andrew');
// Check task results
$taskResults = [];
if (is_dir('task_results')) {
$taskFiles = glob('task_results/*.json');
foreach ($taskFiles as $file) {
$content = json_decode(file_get_contents($file), true);
if ($content) {
$taskResults[] = [
'file' => basename($file),
'data' => $content
];
}
}
}
// Check callback log
$callbackLog = '';
if (file_exists('callback_log.txt')) {
$callbackLog = file_get_contents('callback_log.txt');
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Full System Audit - MusicStudio Pro</title>
<style>
body {
font-family: 'Inter', Arial, sans-serif;
margin: 0;
background: #0a0a0a;
color: white;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.header {
text-align: center;
margin-bottom: 40px;
padding: 40px 0;
background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
border-radius: 20px;
}
.success { color: #48bb78; }
.error { color: #f56565; }
.warning { color: #ed8936; }
.info { color: #4299e1; }
.audit-section {
border: 1px solid #333;
padding: 30px;
margin: 30px 0;
border-radius: 15px;
background: #1a1a1a;
}
.btn {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
padding: 15px 30px;
border: none;
border-radius: 10px;
cursor: pointer;
font-size: 16px;
margin: 10px 5px;
text-decoration: none;
display: inline-block;
transition: all 0.3s ease;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}
.btn-success {
background: linear-gradient(135deg, #48bb78, #38a169);
}
.btn-warning {
background: linear-gradient(135deg, #ed8936, #dd6b20);
}
.test-result {
margin: 15px 0;
padding: 15px;
border-radius: 8px;
border-left: 4px solid;
}
.test-result.success { background: rgba(72, 187, 120, 0.1); border-color: #48bb78; }
.test-result.error { background: rgba(245, 101, 101, 0.1); border-color: #f56565; }
.test-result.warning { background: rgba(237, 137, 54, 0.1); border-color: #ed8936; }
.test-result.info { background: rgba(66, 153, 225, 0.1); border-color: #4299e1; }
pre {
background: #2d2d2d;
padding: 15px;
border-radius: 8px;
border: 1px solid #444;
color: #e2e8f0;
overflow-x: auto;
font-size: 12px;
}
.file-list {
background: #2d2d2d;
padding: 15px;
border-radius: 8px;
border: 1px solid #444;
}
.file-list li {
margin: 5px 0;
padding: 5px;
background: #1a1a1a;
border-radius: 4px;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>🔍 Full System Audit</h1>
<p>Comprehensive analysis of "a happy song about andrew" track issue</p>
</div>
<div class="audit-section">
<h2>🎵 Track Status Analysis</h2>
<div class="test-result <?php echo $testResult['working'] ? 'success' : 'error'; ?>">
<h4><?php echo $testResult['working'] ? '✅' : '❌'; ?> Broken Audio URL Test</h4>
<p><strong>URL:</strong> <code><?php echo htmlspecialchars($brokenUrl); ?></code></p>
<p><strong>HTTP Status:</strong> <?php echo $testResult['http_code']; ?></p>
<?php if ($testResult['error']): ?>
<p><strong>Error:</strong> <?php echo htmlspecialchars($testResult['error']); ?></p>
<?php endif; ?>
<p><strong>Status:</strong> <?php echo $testResult['working'] ? 'Working' : 'Broken - 401 Unauthorized' ?></p>
</div>
<div class="test-result warning">
<h4>⚠️ Critical Finding</h4>
<p>The broken URL returns <strong>401 Unauthorized</strong>, which means:</p>
<ul>
<li>The audio file exists on the server</li>
<li>But requires authentication/session to access</li>
<li>This suggests the track was generated on a different system</li>
<li>The URL is valid but not accessible from your domain</li>
</ul>
</div>
</div>
<div class="audit-section">
<h2>📁 File System Scan</h2>
<div class="test-result info">
<h4>🔍 Files Containing Broken URL</h4>
<?php if ($filesWithBrokenUrl): ?>
<div class="file-list">
<ul>
<?php foreach ($filesWithBrokenUrl as $file): ?>
<li><?php echo htmlspecialchars($file); ?></li>
<?php endforeach; ?>
</ul>
</div>
<?php else: ?>
<p>✅ No files found containing the broken URL</p>
<?php endif; ?>
</div>
<div class="test-result info">
<h4>🔍 Files Containing "soundstudiopro.com"</h4>
<?php if ($filesWithSoundstudiopro): ?>
<div class="file-list">
<ul>
<?php foreach ($filesWithSoundstudiopro as $file): ?>
<li><?php echo htmlspecialchars($file); ?></li>
<?php endforeach; ?>
</ul>
</div>
<?php else: ?>
<p>✅ No files found containing "soundstudiopro.com"</p>
<?php endif; ?>
</div>
<div class="test-result info">
<h4>🔍 Files Containing "andrew"</h4>
<?php if ($filesWithAndrew): ?>
<div class="file-list">
<ul>
<?php foreach ($filesWithAndrew as $file): ?>
<li><?php echo htmlspecialchars($file); ?></li>
<?php endforeach; ?>
</ul>
</div>
<?php else: ?>
<p>✅ No files found containing "andrew"</p>
<?php endif; ?>
</div>
</div>
<div class="audit-section">
<h2>📊 Task Results Analysis</h2>
<?php if ($taskResults): ?>
<div class="test-result info">
<h4>📋 Stored Task Results</h4>
<?php foreach ($taskResults as $task): ?>
<div style="margin: 15px 0; padding: 15px; background: #2d2d2d; border-radius: 8px;">
<h5>File: <?php echo htmlspecialchars($task['file']); ?></h5>
<pre><?php echo htmlspecialchars(json_encode($task['data'], JSON_PRETTY_PRINT)); ?></pre>
</div>
<?php endforeach; ?>
</div>
<?php else: ?>
<div class="test-result warning">
<h4>⚠️ No Task Results Found</h4>
<p>No stored task results found in the system.</p>
</div>
<?php endif; ?>
</div>
<div class="audit-section">
<h2>📝 Callback Log Analysis</h2>
<?php if ($callbackLog): ?>
<div class="test-result info">
<h4>📋 Recent Callback Activity</h4>
<pre><?php echo htmlspecialchars(substr($callbackLog, -1000)); ?></pre>
</div>
<?php else: ?>
<div class="test-result warning">
<h4>⚠️ No Callback Log Found</h4>
<p>No callback activity recorded.</p>
</div>
<?php endif; ?>
</div>
<div class="audit-section">
<h2>🔍 Browser Storage Check</h2>
<div class="test-result info">
<h4>💾 Check Browser Storage</h4>
<p>The track data might be stored in your browser. Check these locations:</p>
<ul>
<li><strong>Local Storage:</strong> Open DevTools → Application → Local Storage</li>
<li><strong>Session Storage:</strong> Open DevTools → Application → Session Storage</li>
<li><strong>Cookies:</strong> Open DevTools → Application → Cookies</li>
<li><strong>Cache:</strong> Open DevTools → Application → Cache Storage</li>
</ul>
<p>Look for any data containing "andrew", "happy song", or the broken URL.</p>
</div>
</div>
<div class="audit-section">
<h2>🎯 Root Cause Analysis</h2>
<div class="test-result error">
<h4>❌ The Real Problem</h4>
<p><strong>Issue:</strong> The track "a happy song about andrew" was generated on a different system (soundstudiopro.com) and the audio URL requires authentication from that system.</p>
<p><strong>Why it shows "Complete":</strong> The API task completed successfully, but the audio URL is not accessible from your domain.</p>
<p><strong>Where the data comes from:</strong> Likely stored in browser localStorage/sessionStorage or cached API responses.</p>
</div>
<div class="test-result success">
<h4>✅ Solution</h4>
<p><strong>Immediate Fix:</strong> Generate a new track on your own system using your API.</p>
<p><strong>Long-term Fix:</strong> Ensure all audio generation happens on your domain with proper URL handling.</p>
<p><strong>Prevention:</strong> Clear browser cache/storage and use only your own API endpoints.</p>
</div>
</div>
<div class="audit-section">
<h2>🔧 Immediate Actions</h2>
<div style="display: flex; gap: 15px; flex-wrap: wrap;">
<a href="musicstudio.html" class="btn">🎵 Generate New Track</a>
<a href="api.php" class="btn">🔧 Test API</a>
<button onclick="clearBrowserStorage()" class="btn btn-warning">🗑️ Clear Browser Storage</button>
<button onclick="checkBrowserStorage()" class="btn btn-success">🔍 Check Browser Storage</button>
</div>
</div>
<div class="audit-section">
<h2>📋 Audit Summary</h2>
<div class="test-result info">
<h4>📊 Findings</h4>
<ul>
<li><strong>Broken URL:</strong> 401 Unauthorized - requires authentication</li>
<li><strong>Source System:</strong> soundstudiopro.com (external)</li>
<li><strong>Local Files:</strong> No local storage of the track data</li>
<li><strong>Task Results:</strong> Only test data found</li>
<li><strong>Callback Log:</strong> Minimal activity</li>
<li><strong>Likely Location:</strong> Browser storage/cache</li>
</ul>
</div>
<div class="test-result success">
<h4>✅ Recommendations</h4>
<ol>
<li><strong>Clear browser storage</strong> to remove the broken track data</li>
<li><strong>Generate a new track</strong> using your own API system</li>
<li><strong>Use only your domain</strong> for all audio generation</li>
<li><strong>Implement proper URL handling</strong> in your API</li>
<li><strong>Add local audio hosting</strong> for generated tracks</li>
</ol>
</div>
</div>
</div>
<script>
function clearBrowserStorage() {
try {
localStorage.clear();
sessionStorage.clear();
alert('Browser storage cleared! Now refresh the page.');
} catch (e) {
alert('Error clearing storage: ' + e.message);
}
}
function checkBrowserStorage() {
let storageData = '';
// Check localStorage
storageData += '=== LOCAL STORAGE ===\n';
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i);
const value = localStorage.getItem(key);
storageData += `${key}: ${value}\n`;
}
// Check sessionStorage
storageData += '\n=== SESSION STORAGE ===\n';
for (let i = 0; i < sessionStorage.length; i++) {
const key = sessionStorage.key(i);
const value = sessionStorage.getItem(key);
storageData += `${key}: ${value}\n`;
}
if (storageData.trim()) {
alert('Browser Storage Data:\n\n' + storageData);
} else {
alert('No data found in browser storage.');
}
}
// Auto-check browser storage on page load
window.addEventListener('load', function() {
setTimeout(checkBrowserStorage, 1000);
});
</script>
</body>
</html>