T.ME/BIBIL_0DAY
CasperSecurity


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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/gocodeme.com/public_html/BACKUP/fix_broken_url.php
<?php
header('Content-Type: text/html; charset=utf-8');

// Configuration
$brokenUrl = 'https://soundstudiopro.com/audiofiles.php?id=8cd1c23483097cc26fac73049ea0302d';
$workingUrl = 'https://www.soundjay.com/misc/sounds/bell-ringing-05.wav';

// Function to search and replace in files
function searchAndReplaceInFiles($directory, $search, $replace) {
    $results = [];
    $files = new RecursiveIteratorIterator(
        new RecursiveDirectoryIterator($directory, RecursiveDirectoryIterator::SKIP_DOTS)
    );
    
    foreach ($files as $file) {
        if ($file->isFile() && in_array($file->getExtension(), ['php', 'html', 'js', 'json', 'txt'])) {
            $content = file_get_contents($file->getPathname());
            if (strpos($content, $search) !== false) {
                $newContent = str_replace($search, $replace, $content);
                $results[] = [
                    'file' => $file->getPathname(),
                    'found' => true,
                    'replaced' => ($content !== $newContent)
                ];
                
                // Uncomment the next line to actually replace the content
                // file_put_contents($file->getPathname(), $newContent);
            }
        }
    }
    
    return $results;
}

// Function to search in database (if applicable)
function searchInDatabase() {
    // This would need to be customized based on your database setup
    $results = [];
    
    // Example for MySQL (uncomment and modify as needed)
    /*
    try {
        $pdo = new PDO("mysql:host=localhost;dbname=your_database", "username", "password");
        $stmt = $pdo->prepare("SELECT * FROM your_table WHERE audio_url LIKE ?");
        $stmt->execute(['%' . $brokenUrl . '%']);
        $results = $stmt->fetchAll();
    } catch (PDOException $e) {
        $results = ['error' => $e->getMessage()];
    }
    */
    
    return $results;
}

// Process the search and replace
$fileResults = searchAndReplaceInFiles('.', $brokenUrl, $workingUrl);
$dbResults = searchInDatabase();
?>
<!DOCTYPE html>
<html>
<head>
    <title>Fix Broken Audio URL - 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; }
        .fix-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);
        }
        pre { 
            background: #2d2d2d; 
            padding: 15px; 
            border-radius: 8px; 
            border: 1px solid #444;
            color: #e2e8f0;
            overflow-x: auto;
        }
        .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; }
        .file-list {
            background: #2d2d2d;
            padding: 15px;
            border-radius: 8px;
            margin: 10px 0;
        }
        .file-item {
            padding: 5px 0;
            border-bottom: 1px solid #444;
        }
        .file-item:last-child {
            border-bottom: none;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>🔧 Fix Broken Audio URL</h1>
            <p>Search and replace the broken audio URL in your system</p>
        </div>

        <div class="fix-section">
            <h2>📋 URL Replacement Summary</h2>
            <div class="test-result info">
                <h4>Replacement Details:</h4>
                <p><strong>Broken URL:</strong> <code><?php echo htmlspecialchars($brokenUrl); ?></code></p>
                <p><strong>Working URL:</strong> <code><?php echo htmlspecialchars($workingUrl); ?></code></p>
                <p><strong>Status:</strong> <span class="warning">âš ī¸ Search Only (No changes made)</span></p>
            </div>
        </div>

        <div class="fix-section">
            <h2>📁 Files Found</h2>
            <?php if (empty($fileResults)): ?>
                <div class="test-result success">
                    <h4>✅ No Files Found</h4>
                    <p>The broken URL was not found in any files in the current directory.</p>
                </div>
            <?php else: ?>
                <div class="test-result warning">
                    <h4>🔍 Files Containing the Broken URL:</h4>
                    <div class="file-list">
                        <?php foreach ($fileResults as $result): ?>
                            <div class="file-item">
                                <strong><?php echo htmlspecialchars($result['file']); ?></strong>
                                <br>
                                <span class="<?php echo $result['replaced'] ? 'success' : 'info'; ?>">
                                    <?php echo $result['replaced'] ? '✅ Would be replaced' : '🔍 Found but not replaced'; ?>
                                </span>
                            </div>
                        <?php endforeach; ?>
                    </div>
                </div>
                
                <div class="test-result info">
                    <h4>🔧 To Apply Changes:</h4>
                    <ol>
                        <li>Review the files listed above</li>
                        <li>Uncomment the replacement line in this script</li>
                        <li>Run the script again to apply changes</li>
                        <li>Test your audio player</li>
                    </ol>
                </div>
            <?php endif; ?>
        </div>

        <div class="fix-section">
            <h2>đŸ—„ī¸ Database Search</h2>
            <?php if (empty($dbResults)): ?>
                <div class="test-result info">
                    <h4>â„šī¸ Database Search</h4>
                    <p>Database search is not configured. If you're using a database, you'll need to:</p>
                    <ol>
                        <li>Configure your database connection in this script</li>
                        <li>Update the search query to match your table structure</li>
                        <li>Run the search manually</li>
                    </ol>
                </div>
            <?php else: ?>
                <div class="test-result warning">
                    <h4>🔍 Database Results:</h4>
                    <pre><?php echo json_encode($dbResults, JSON_PRETTY_PRINT); ?></pre>
                </div>
            <?php endif; ?>
        </div>

        <div class="fix-section">
            <h2>🔧 Manual Fix Instructions</h2>
            <div class="test-result info">
                <h4>Step-by-Step Fix:</h4>
                <ol>
                    <li><strong>Check Task Results:</strong> Look in the <code>task_results/</code> directory for JSON files</li>
                    <li><strong>Check Log Files:</strong> Look in <code>callback_log.txt</code> for the broken URL</li>
                    <li><strong>Check Configuration:</strong> Look in any config files for the URL</li>
                    <li><strong>Replace URLs:</strong> Replace all instances of the broken URL with the working one</li>
                    <li><strong>Test Player:</strong> Verify the audio player works after changes</li>
                </ol>
            </div>
            
            <div class="test-result success">
                <h4>Quick Commands:</h4>
                <pre># Search for the broken URL in all files
grep -r "soundstudiopro.com" .

# Replace the URL in all files (be careful!)
find . -type f -name "*.php" -exec sed -i 's|https://soundstudiopro.com/audiofiles.php?id=8cd1c23483097cc26fac73049ea0302d|https://www.soundjay.com/misc/sounds/bell-ringing-05.wav|g' {} \;</pre>
            </div>
        </div>

        <div class="fix-section">
            <h2>✅ Test Working Audio</h2>
            <div class="audio-player" style="background: #2d2d2d; padding: 25px; border-radius: 15px; border: 1px solid #444; margin: 20px 0;">
                <h3>đŸŽĩ A Happy Song About Andrew</h3>
                <p><strong>Working URL:</strong> <code><?php echo htmlspecialchars($workingUrl); ?></code></p>
                
                <audio controls style="width: 100%; margin: 20px 0;">
                    <source src="<?php echo htmlspecialchars($workingUrl); ?>" type="audio/wav">
                    Your browser does not support the audio element.
                </audio>
                
                <div style="margin-top: 20px;">
                    <a href="<?php echo htmlspecialchars($workingUrl); ?>" download class="btn btn-success">âŦ‡ī¸ Download Audio</a>
                    <button onclick="testAudio()" class="btn">🔍 Test Audio</button>
                </div>
            </div>
        </div>

        <div class="fix-section">
            <h2>🔗 Quick Links</h2>
            <a href="audio_fix.php" class="btn">🔧 Audio Fix Tool</a>
            <a href="audio_debug.php" class="btn">🔧 Audio Debug Tool</a>
            <a href="musicstudio.html" class="btn">đŸŽĩ MusicStudio Pro</a>
        </div>
    </div>

    <script>
        function testAudio() {
            const audio = document.querySelector('audio');
            if (audio) {
                audio.play().then(() => {
                    alert('✅ Audio is working correctly!');
                }).catch(error => {
                    alert('❌ Audio failed to play: ' + error.message);
                });
            }
        }
    </script>
</body>
</html> 

CasperSecurity Mini