Files
easystream/modules/m_frontend/m_donations/public/donate.php
T
Krystie 092a8bc7ce refactor: organize codebase and remove redundant files
- Removed all backup/duplicate files
- Removed test files from root
- Consolidated documentation to /docs/
- Moved scripts to /scripts/
- Renamed f_* directories (removed prefix)
- Organized icons and assets
- Removed unused vendor directories
- Cleaned up redundant config files
2026-03-30 16:34:45 -07:00

24 lines
589 B
PHP

<?php
define('_ISVALID', true);
include_once '../../../f_core/config.core.php';
require_once __DIR__ . '/../config/config.php';
use Donations\DonationHandler;
// Get streamer information
$streamer_id = $_GET['streamer_id'] ?? 0;
$sql = "SELECT username, display_name FROM users WHERE user_id = ?";
$streamer = db()->getRow($sql, [$streamer_id]);
if (!$streamer) {
handle_error('Invalid streamer', 404);
}
// Initialize donation handler
$donation_handler = new DonationHandler();
// Load view
view('donation_form', [
'streamer' => $streamer,
'config' => $square_config
]);