VEERGAME COMPLETE DB-CONNECTED API
Generated: 2026-10-01

INSTALL PATH
/public_html/VeerGame/

This package contains the complete original VeerGame API folder and overlays the latest repaired DB-driven APIs.
No existing API files were intentionally removed.

ADMIN -> API MAPPING
BADBOYAK/update_banner.php -> api/webapi/GetBannerList.php -> banners
BADBOYAK/websetting.php + home settings + language/currency -> api/webapi/GetHomeSettings.php
BADBOYAK/manage_webmessage.php -> api/webapi/GetSiteMessageList.php -> website_messages
BADBOYAK/manage_site_message.php -> api/webapi/GetSitePopMsgList.php / GetSiteMessage.php -> welcome_messages
BADBOYAK/update_commission.php -> api/webapi/commission.php + PromotionTutorial.php -> web_commission
Referral/team data -> _promotion_team.php, PromotionMytem.php, NewPromotion.php, TeamDayReport.php, GetPromotionRecord.php, GetCommissionDetails.php
BADBOYAK userbonus.php data -> GetTransactions.php / GetTransactionsTypes.php
BADBOYAK agent summary uses the same referral/deposit/withdraw/bet/result database sources as the corrected promotion helper.

COMMISSION
Actual six-level referral credits now read web_commission every time commission.php runs.
Changing Level 1..6 in the admin changes future commission calculation without editing the API file.
Existing historical vyavahara rows are not rewritten.

MESSAGES
SITE WEB MESSAGE controls website_messages -> GetSiteMessageList.
SITE WELCOME MESSAGE controls welcome_messages -> GetSitePopMsgList.

TEAM DATA
L1..L6 members come from shonu_subjects code/code1..code5.
Approved deposits: thevani.sthiti=1.
Approved withdrawals: hintegedukolli.sthiti=1.
Bets/payouts: all 16 legacy lottery tables + saas_lottery_bets + app_provider_transactions.

PREDICTION BOT
mtg_bot_Predction.php is an admin/Telegram process using auto_prediction_settings and auto_prediction_history.
The supplied frontend does not contain a matching prediction HTTP endpoint, so no invented frontend route was added.
