=====================================================
 HIVE MINING PLATFORM  -  PHP + MySQL  (cPanel ready)
=====================================================

INSTALL (5 minutes)
-------------------
1. Upload this ZIP to cPanel > File Manager > public_html and EXTRACT it.
2. cPanel > MySQL Databases: create a database + user, add user to the
   database with ALL PRIVILEGES.
3. cPanel > phpMyAdmin: select your database > Import > choose
   database.sql > Go.
4. Open db.php and fill in:
       $DB_HOST = 'localhost';
       $DB_NAME = 'cpaneluser_hive';
       $DB_USER = 'cpaneluser_hiveuser';
       $DB_PASS = 'your password';
5. Make the "uploads" and "assets" folders writable (permission 755).
6. Done. Visit your domain.

LOGINS
------
User side ....... https://yourdomain.com/register.php
Admin panel ..... https://yourdomain.com/admin/
Admin username .. admin
Admin password .. admin123      <-- CHANGE IT IMMEDIATELY
                                    (Admin > Site Settings > Change admin password)

USER PAGES (frontend)
---------------------
register.php  login.php  index.php (Home + News popup + Live prices + Withdraw log)
vip.php  mining.php  team.php  me.php  deposit.php  withdraw.php  transfer.php
statements.php  events.php  invite.php  about.php  faq.php  password.php
security_pin.php  authenticator.php  logout.php

ADMIN PAGES (backend) - folder /admin
-------------------------------------
dashboard.php ..... KPIs and latest users
users.php ......... search, edit, block, delete users, adjust balances
deposits.php ...... approve / reject (approving credits wallet + pays 3-level rebates)
withdrawals.php ... approve / reject (rejecting refunds the user automatically)
plans.php ......... unlimited VIP levels: amounts, daily %, window, hashrate
methods.php ....... payment networks + wallet addresses + QR
events.php ........ event/activity posts
faqs.php .......... FAQ entries
market.php ........ live price rows (pair, exchange, price, change %)
wlog.php .......... the scrolling withdraw log on Home
languages.php ..... add/remove languages (EN, SW, FR, PT, ES, DE preloaded)
translations.php .. translate every UI string per language
settings.php ...... site title, logo upload, all colors, currency symbol,
                    min/max withdraw, withdraw fee & time, min deposit,
                    signup bonus, rebate %, support/group/channel links,
                    social links, home counters, news popup, about page text,
                    maintenance mode, admin password

HOW IT WORKS
------------
- Everything is dynamic: nothing is hard-coded, all data comes from MySQL.
- Registration sends the user STRAIGHT to the Home page (not login).
- Deposits are manual-approve. On approval the invest wallet is credited and
  level 1/2/3 referral rebates are paid automatically.
- Buying a VIP plan moves money from the invest wallet into an investment.
- Daily mining income is credited automatically on the user's first page view
  each day, into the commission wallet.
- Withdrawals deduct immediately and are refunded if the admin rejects them.
- Security PIN (6 digits) is required to confirm a withdrawal.

REQUIREMENTS: PHP 7.4+ (8.x recommended), MySQL 5.7+/MariaDB, mysqli extension.
