A lightweight PHP application that detects WordPress themes and plugins for a given website. The application also includes AdSense integration, quote management, sitemap generation, and Google Analytics tracking.
Features
- **WordPress Detection**: Identify if a site is built with WordPress
- **Theme Detection**: Discover which theme is powering the WordPress site
- **Plugin Detection**: Identify active plugins used on the WordPress site
- **AdSense Integration**: Display ads on the front-end pages
- **Quote Management**: Add, edit, and delete inspirational quotes
- **Sitemap Generation**: Automatically generate a basic XML sitemap
- **Analytics**: Track visitors using Google Analytics
- **Admin Dashboard**: Manage quotes and view basic analytics
Requirements
- PHP 8.0 or higher
- MySQL 5.7 or higher
- Web server (Apache, Nginx, etc.)
Installation
1. Upload all files to your web server
2. Navigate to `install.php` in your web browser (e.g., `http://yourdomain.com/wp-detector/install.php`)
3. Follow the installation wizard to set up the database and admin account
4. After installation, the `install.php` file will be locked for security
Usage
Front-end
1. Enter a website URL in the form on the homepage
2. Click "Detect WordPress" to analyze the site
3. View the results showing WordPress status, theme, and plugins
Admin Dashboard
1. Access the admin dashboard at `/admin` (e.g., `http://yourdomain.com/wp-detector/admin/`)
2. Log in with your admin credentials
3. Use the dashboard to:
- View visitor statistics
- Manage quotes
- Configure Google Analytics
- Set up AdSense ads
File Structure
\`\`\`
/wp-detector/
├── index.php # Front-end homepage
├── results.php # Displays detection results
├── sitemap.php # Generates sitemap.xml
├── config.php # Configuration settings
├── install.php # Installation script
├── functions.php # Core functions
├── admin/ # Admin dashboard files
├── assets/ # CSS and JavaScript files
└── includes/ # Common includes
\`\`\`
Customization
AdSense
1. Log in to the admin dashboard
2. Go to "Analytics & Ads"
3. Paste your AdSense code in the provided field
4. Save changes
Google Analytics
1. Log in to the admin dashboard
2. Go to "Analytics & Ads"
3. Enter your Google Analytics tracking ID
4. Save changes
Security
- Admin passwords are hashed using PHP's `password_hash()`
- All user inputs are sanitized to prevent SQL injection and XSS
- Prepared statements are used for database queries
License
This software is provided as-is without any warranty. You are free to modify and distribute it as needed.