NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/web/inc/twig.inc.php

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

twig.inc.php on main
Author Date Commit Line Code
Kristian Feldsam almost 5 years ago 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
2
Open commit View diff
2
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
3
use Twig\Environment;
Open commit View diff
3 use Twig\Environment;
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
4
use Twig\Loader\FilesystemLoader;
Open commit View diff
4 use Twig\Loader\FilesystemLoader;
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
5
use Twig\TwigFilter;
Open commit View diff
5 use Twig\TwigFilter;
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
6
use Twig\TwigFunction;
Open commit View diff
6 use Twig\TwigFunction;
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
7
Open commit View diff
7
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
8
$loader = new FilesystemLoader($_SERVER['DOCUMENT_ROOT'].'/templates');
Open commit View diff
8 $loader = new FilesystemLoader($_SERVER['DOCUMENT_ROOT'].'/templates');
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
9
$twig = new Environment($loader, [
Open commit View diff
9 $twig = new Environment($loader, [
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
10
  'debug' => $DEV_MODE,
Open commit View diff
10 'debug' => $DEV_MODE,
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
11
  'cache' => $_SERVER['DOCUMENT_ROOT'].'/templates/cache',
Open commit View diff
11 'cache' => $_SERVER['DOCUMENT_ROOT'].'/templates/cache',
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
12
]);
Open commit View diff
12 ]);
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
13
Open commit View diff
13
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
14
// functions
Open commit View diff
14 // functions
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
15
$twig->addFunction(new TwigFunction('query_string', function (array $params = []) {
Open commit View diff
15 $twig->addFunction(new TwigFunction('query_string', function (array $params = []) {
FreddleSpl0it 4 months ago 8c039f6

Improve template URI escaping and parameter handling

Full commit hash
8c039f694fe3cd7a736249b4e017def1414c47e9
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
16
  $allowed = ['lang', 'mobileconfig'];
Open commit View diff
16 $allowed = ['lang', 'mobileconfig'];
same change 8c039f6

Improve template URI escaping and parameter handling

Full commit hash
8c039f694fe3cd7a736249b4e017def1414c47e9
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
17
  $filtered = array_intersect_key($_GET, array_flip($allowed));
Open commit View diff
17 $filtered = array_intersect_key($_GET, array_flip($allowed));
same change 8c039f6

Improve template URI escaping and parameter handling

Full commit hash
8c039f694fe3cd7a736249b4e017def1414c47e9
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
18
  return http_build_query(array_merge($filtered, $params));
Open commit View diff
18 return http_build_query(array_merge($filtered, $params));
Kristian Feldsam almost 5 years ago 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
19
}));
Open commit View diff
19 }));
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
20
Open commit View diff
20
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
21
$twig->addFunction(new TwigFunction('is_uri', function (string $uri, string $where = null) {
Open commit View diff
21 $twig->addFunction(new TwigFunction('is_uri', function (string $uri, string $where = null) {
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
22
  if (is_null($where)) $where = $_SERVER['REQUEST_URI'];
Open commit View diff
22 if (is_null($where)) $where = $_SERVER['REQUEST_URI'];
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
23
  return preg_match('/'.$uri.'/i', $where);
Open commit View diff
23 return preg_match('/'.$uri.'/i', $where);
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
24
}));
Open commit View diff
24 }));
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
25
Open commit View diff
25
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
26
// filters
Open commit View diff
26 // filters
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
27
$twig->addFilter(new TwigFilter('rot13', 'str_rot13'));
Open commit View diff
27 $twig->addFilter(new TwigFilter('rot13', 'str_rot13'));
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
28
$twig->addFilter(new TwigFilter('base64_encode', 'base64_encode'));
Open commit View diff
28 $twig->addFilter(new TwigFilter('base64_encode', 'base64_encode'));
Niklas Meyer over 4 years ago 89fdd19

Jan(moo)uary Update 2022 - Revision A (2022-01a) (#4445)

Full commit hash
89fdd1986d922aa7ae87d589859cd3d483beaa23
Author
Niklas Meyer <[email protected]>
Date
over 4 years ago
Selected line
29
$twig->addFilter(new TwigFilter('formatBytes', 'formatBytes'));
Open commit View diff
29 $twig->addFilter(new TwigFilter('formatBytes', 'formatBytes'));