![]() 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/soundstudiopro.com/public_html/ |
<?php
// Move remaining utility files to utils folder
echo "š§ Moving remaining utility files to utils folder...\n\n";
// Files that should be moved to utils
$remainingUtils = [
// Test files
'test_api_endpoints.php',
'test_api_box_status.php',
'test_library_fix.php',
'test_player_bands.php',
'test_dashboard.php',
'test_library_redirect.php',
'test_api.php',
'test_db.php',
'test_complete_flow.html',
'test_status_endpoints.php',
'test_task_status.php',
'test_endpoints.php',
'test_api_connection.php',
'test_frontend.html',
'test_music_creation.php',
'demo_music_creation.php',
'test_correct_api.php',
'test_suno_api.php',
'test_workflow.php',
// Fix and utility files
'fix_audio_public.php',
'fix_redirect.php',
'fix_danny_songs.php',
'fix_permissions.php',
// Check and debug files
'check_danny_status.php',
'check_db.php',
'check_api_status.php',
'find_danny.php',
'debug_api_response.php',
'callback_status.php',
'diagnostic.php',
// Setup and update files
'setup_api_box.php',
'setup_admin.php',
'update_navigation_links.php',
'update_layout_system.php',
'update_to_audiofiles.php',
'download_and_store.php',
// Backup files
'index.php.backup.auth.2025-07-19-05-51-01',
'audiofiles_public.php.backup.2025-07-19-05-46-54',
'index.php.backup.2025-07-19-05-45-16',
'index.php.backup.2025-07-19-01-43-25',
// Other utility files
'test_audio.txt',
'index_old.html',
'musicstudio.html',
'library.php',
'FIXES_APPLIED.md',
'quick_test.php'
];
$movedCount = 0;
$errorCount = 0;
foreach ($remainingUtils as $file) {
if (file_exists($file)) {
$destination = 'utils/' . $file;
if (rename($file, $destination)) {
echo "ā
Moved: $file\n";
$movedCount++;
} else {
echo "ā Failed to move: $file\n";
$errorCount++;
}
}
}
echo "\nš Summary:\n";
echo "ā
Files moved: $movedCount\n";
echo "ā Errors: $errorCount\n";
// Show what's left in root
echo "\nš Files remaining in root directory:\n";
$rootFiles = scandir('.');
$mainPages = ['index.php', 'dashboard.php', 'library.php', 'artists.php', 'community.php', 'api.php', 'callback.php', 'update_credits.php', 'organize_site.php', 'move_remaining_utils.php'];
foreach ($rootFiles as $file) {
if ($file !== '.' && $file !== '..' && is_file($file)) {
if (in_array($file, $mainPages)) {
echo "ā
MAIN PAGE: $file\n";
} else {
echo "ā ļø UTILITY: $file (should be moved)\n";
}
}
}
echo "\nšÆ Main pages that should stay in root:\n";
foreach ($mainPages as $page) {
if (file_exists($page)) {
echo "ā
$page\n";
}
}
echo "\nš Organization complete!\n";
?>