092a8bc7ce
- 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
24 lines
589 B
PHP
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
|
|
]);
|