-
Notifications
You must be signed in to change notification settings - Fork 255
/
SSI.php
44 lines (38 loc) · 1.18 KB
/
SSI.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* This file allows external access to SMF data via Server Side Includes (SSI).
*
* The standard SSI functions are declared in ./Sources/ServerSideIncludes.php.
* All standard SSI functions can be called using either of the following forms:
*
* - `SMF\ServerSideIncludes::funcname();`
* - `ssi_funcname();`
*
* Mods can add more SSI functions using the integrate_SSI hook.
*
* External scripts can set several global variables to control SSI behaviour.
* For more information about these variables and what they do, see the
* "Properties that allow external scripts to control SSI behaviour" section
* of ./Sources/ServerSideIncludes.php.
*
* See the ssi_examples.php file for examples of how to use SSI functions.
*
*
* Simple Machines Forum (SMF)
*
* @package SMF
* @author Simple Machines https://www.simplemachines.org
* @copyright 2024 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD
*
* @version 3.0 Alpha 2
*/
declare(strict_types=1);
if (!defined('SMF')) {
define('SMF', 'SSI');
}
// Initialize.
require_once __DIR__ . '/index.php';
$ssi = new SMF\ServerSideIncludes();
$ssi->execute();
?>