Ctrl K
ComunidadGuías…

proxy.php

Rama release-3.0 · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
<?php

/**
 * This is a lightweight proxy for serving images, generally meant to be used alongside SSL
 *
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines https://www.simplemachines.org
 * @copyright 2026 Simple Machines and individual contributors
 * @license https://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 3.0 Alpha 5-dev
 */

declare(strict_types=1);

if (!defined('SMF')) {
	define('SMF', 'PROXY');
}

if (SMF == 'PROXY') {
	// Initialize.
	require_once __DIR__ . DIRECTORY_SEPARATOR . 'index.php';

	(new SMF\ProxyServer())->serve();
}
// In case an old mod included this file in order to load the ProxyServer class.
else {
	class_exists(\SMF\ProxyServer::class);
}