"> // escape an attribute // partial('Include/matsit_incl.php', array( // render a partial with vars // 'matchId' => $id, // )); // // Benefits: e() makes "did I escape this?" answerable at a glance and B5 can // sweep raw `echo $var` -> `echo e($var)` mechanically. partial() gives the // duplicated *_incl.php fragments a single render path with explicit inputs // instead of relying on leaked globals (C4 dedup target). // Escape a value for safe output inside HTML text or a double/single-quoted // attribute. ENT_QUOTES covers both quote styles; UTF-8 matches the charset // sent by bootstrap.php. Null/ints/floats are cast to string first so callers // don't have to guard them. function e($value) { if ($value === null) { return ''; } return htmlspecialchars((string) $value, ENT_QUOTES, 'UTF-8'); } // Render a PHP partial in an isolated scope with only the variables it is // given. $vars keys become local variables inside the partial, so fragments // declare their inputs instead of reaching into page globals. Path is relative // to the project root (the directory above Include/). function partial($path, $vars = array()) { $full = __DIR__ . '/../' . ltrim($path, '/'); if (!is_file($full)) { error_log('partial(): missing file -- ' . $full); return; } extract($vars, EXTR_SKIP); include $full; }
| Pelaaja1 | Pelaaja2 | Map | Liiga | Arvosana | DL | Lisätty | Lisääjä | Kuumuus | ||
|---|---|---|---|---|---|---|---|---|---|---|
Lithian |
Reevou |
[TLMC13] Eternal Empire | Custom | - | 654 | 2025/12/28 | Revo | 450 | ![]() | |
Reevou |
kios |
King Sejong Station TW v3 | Custom | - | 391 | 2025/12/28 | Revo | 269 | ![]() | |
kios |
samosel |
[TLMC13] Eternal Empire | Custom | - | 379 | 2025/12/28 | xios | 260 | ![]() | |
Lithian |
samosel |
[EWC] Oceanborn | Custom | - | 371 | 2025/12/28 | lithian | 255 | ![]() | |
Alluton |
Mirzo |
[Official] King Sejong Station | Custom | - | 366 | 2025/12/28 | alluton | 252 | ![]() |
| Pelaaja1 | Pelaaja2 | Map | Liiga | Arvosana | DL | Lisätty | Lisääjä | ||
|---|---|---|---|---|---|---|---|---|---|
![]() |
PÄÄVASTUS |
PuPu |
10000 Feet LE | Custom | - | 100 | 2025/12/14 | azhrak | ![]() |
![]() |
TheMusZero |
Enpo |
Winter Madness LE | Custom | - | 97 | 2025/12/ 9 | azhrak | ![]() |
![]() |
TheMusZero |
PuPu |
Kairos Junction LE | Custom | - | 763 | 2018/12/17 | azhrak | ![]() |
![]() |
Mirzo |
Haspe |
Para Site LE | Custom | - | 746 | 2018/12/10 | azhrak | ![]() |
![]() |
Mirzo |
WoodedMicrob |
Automaton LE | Custom | - | 739 | 2018/12/ 2 | WoodedMicrobe9 | ![]() |
| Pelaaja1 | Pelaaja2 | Map | Liiga | Arvosana | DL | Lisätty | Lisääjä | ||
|---|---|---|---|---|---|---|---|---|---|
Lithian |
Reevou |
[TLMC13] Eternal Empire | Custom | - | 654 | 2025/12/28 | Revo | ![]() | |
kios |
samosel |
[TLMC13] Eternal Empire | Custom | - | 379 | 2025/12/28 | xios | ![]() | |
Alluton |
Mirzo |
[Official] King Sejong Station | Custom | - | 366 | 2025/12/28 | alluton | ![]() | |
Reevou |
kios |
King Sejong Station TW v3 | Custom | - | 391 | 2025/12/28 | Revo | ![]() | |
Lithian |
samosel |
[EWC] Oceanborn | Custom | - | 371 | 2025/12/28 | lithian | ![]() |