|
|
||
|---|---|---|
| .. | ||
| CLOUDSTACK_FIXES.md | ||
| README.md | ||
| debug-command-execution-public.php | ||
| debug-command-execution.php | ||
| debug-paths.php | ||
| fix-permissions.sh | ||
| pre-enrollment-check.php | ||
| quick-fix-cloudstack.sh | ||
| test-assets.php | ||
| test-php-detection.sh | ||
| troubleshoot.sh | ||
README.md
Test and Debug Files
This directory contains all testing, debugging, and development utility files for the ZitiNexus Router Enrollment UI.
📁 Files in This Directory
Debug Files:
debug-command-execution.php- Debug script for testing command executiondebug-command-execution-public.php- Public version of debug scriptdebug-paths.php- Debug script for testing file paths and includes
Test Files:
test-assets.php- Test script for asset loading and pathstest-php-detection.sh- Shell script for testing PHP detection
🎯 Purpose
This directory serves as a container for:
- Development utilities that help during coding
- Debug scripts for troubleshooting issues
- Test files for validating functionality
- Temporary files created during development
🚫 Important Notes
- These files are NOT part of the production system
- Never reference these files from production code
- These files may be removed or modified without notice
- Do not rely on these files for production functionality
🔧 Usage Guidelines
When Creating Test Files:
- Always place them in this directory
- Use descriptive names (e.g.,
test-enrollment-flow.php) - Include comments explaining the test purpose
- Clean up when no longer needed
When Debugging:
- Create debug files here, not in main directories
- Use temporary names that won't conflict
- Remove debug files after issue is resolved
- Document any permanent debug utilities
📋 File Descriptions
debug-command-execution.php
- Tests command execution functionality
- Validates sudo permissions
- Checks system command availability
debug-paths.php
- Tests include paths and file references
- Validates asset loading
- Checks directory permissions
test-assets.php
- Tests CSS and JavaScript loading
- Validates asset paths from different locations
- Checks for missing assets
test-php-detection.sh
- Shell script for testing PHP installation
- Validates PHP version and modules
- Tests web server configuration
🧹 Maintenance
This directory should be cleaned regularly:
- Remove obsolete test files
- Archive useful debug scripts
- Update documentation as needed
- Keep only actively used utilities
⚠️ Security Note
Some files in this directory may contain:
- Debug output that reveals system information
- Test credentials or keys
- Sensitive configuration details
Never deploy this directory to production servers.