Setup Guide

Follow these steps to get started with BannerHub

1

Database Setup

Create database and tables for BannerHub

Step 1: Run the database setup script to create all required tables.

http://localhost/admin_setup.php
This will create:
  • ✅ user_access table (stores user codes & plans)
  • ✅ banners table (stores system banners)
  • ✅ settings table (stores admin settings)
  • ✅ Default users: FREE123, RDXSMM2
2

File Structure

Organize your files correctly

Required file structure:

/bannerhub/
├── index.php (Login page)
├── dashboard.php (Main dashboard)
├── setup_guide.php (This guide)
├── get_banner.php (API endpoint)
├── admin_setup.php (Setup script)
├── api/
│ └── get_banners.php (Web API)
└── user_banners/ (User uploads folder)
├── RDXSMM2/
└── [other_users]/
Important: Make sure the "user_banners" folder has write permissions (CHMOD 755 or 777).
3

Database Configuration

Update database credentials in all PHP files

Update these credentials in all PHP files:

define('DB_HOST', 'localhost');
define('DB_NAME', 'changebanner_abnner');
define('DB_USER', 'changebanner_abnner');
define('DB_PASS', 'changebanner_abnner');
Default Access Codes:
🔐 Admin: MASTER2025
👑 Premium: RDXSMM2
👤 Free: FREE123
4

Login & Dashboard

Access your BannerHub dashboard

Login using any access code:

1. Open index.php in your browser
2. Enter access code: MASTER2025 / RDXSMM2 / FREE123
3. Click "Verify & Access"
4. You'll be redirected to dashboard.php
After login, you'll see:
- YouTube tutorial popup (first time only)
- System banners gallery
- Premium users can upload their own banners
- Admin can manage users and banners
5

User Roles & Permissions

Understand what each user can do

👑 Admin (MASTER2025):
  • ✅ Add/Delete system banners
  • ✅ Upgrade/Downgrade users (Free ↔ Premium)
  • ✅ View all users
  • ✅ Full system control
💎 Premium User (RDXSMM2):
  • ✅ View system banners
  • ✅ Upload own banners (up to 10)
  • ✅ Delete own banners
  • ✅ Banners saved in: user_banners/USER_CODE/
👤 Free User (FREE123):
  • ✅ View system banners only
  • ❌ Cannot upload banners
  • ❌ No personal storage
6

Uploading Banners (Premium)

How premium users can upload banners

For premium users only:

  • Login with premium code (RDXSMM2)
  • Go to "Upload Your Banner" section
  • Click "Choose File" and select image (JPG/PNG/GIF, max 5MB)
  • Click "Upload" button
  • Banner appears in "My Banners" section
  • Copy URL to use anywhere
  • Note: Files are saved in /user_banners/YOUR_CODE/ folder
    7

    Admin Panel Guide

    Manage users and system banners

    Admin features:

    Add System Banner:
    • 1. Go to "Admin: Add System Banner" section
    • 2. Enter banner title
    • 3. Enter image URL
    • 4. Click "Add Banner"
    Manage Users:
    • 1. Go to "Admin: Manage Users" table
    • 2. Find the user you want to modify
    • 3. Select "Free" or "Premium" from dropdown
    • 4. Plan updates instantly
    8

    Customization

    Change colors, logo, and text

    Easy customization options:

    // Change colors in style section (index.php & dashboard.php)
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    // Change logo text
    <div class="logo">BannerHub</div>

    // Change site title
    <title>Your Title Here</title>
    To change logo image:
    • Replace the icon in logo div or add image tag
    • Modify CSS background colors in style tags
    • Update YouTube tutorial link if needed

    🎉 Congratulations!

    You've completed all setup steps! Your BannerHub is ready to use.

    Go to Dashboard
    Back to Login Go to Dashboard