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/resource.php

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

resource.php on main
Author Date Commit Line Code
tinect almost 7 years ago cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
2
Open commit View diff
2
Vincent Simon over 4 years ago deac5ad

[Web] Fix resource.php and /cache/ warning message

Full commit hash
deac5ad2fe303449a7dc4e442f6f07c32f6f0c14
Author
Vincent Simon <[email protected]>
Date
over 4 years ago
Selected line
3
if (!isset($_GET['file']) ) {
Open commit View diff
3 if (!isset($_GET['file']) ) {
same change deac5ad

[Web] Fix resource.php and /cache/ warning message

Full commit hash
deac5ad2fe303449a7dc4e442f6f07c32f6f0c14
Author
Vincent Simon <[email protected]>
Date
over 4 years ago
Selected line
4
    http_response_code(404);
Open commit View diff
4 http_response_code(404);
same change deac5ad

[Web] Fix resource.php and /cache/ warning message

Full commit hash
deac5ad2fe303449a7dc4e442f6f07c32f6f0c14
Author
Vincent Simon <[email protected]>
Date
over 4 years ago
Selected line
5
    exit;
Open commit View diff
5 exit;
same change deac5ad

[Web] Fix resource.php and /cache/ warning message

Full commit hash
deac5ad2fe303449a7dc4e442f6f07c32f6f0c14
Author
Vincent Simon <[email protected]>
Date
over 4 years ago
Selected line
6
}
Open commit View diff
6 }
tinect almost 7 years ago cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
7
$pathinfo = pathinfo($_GET['file']);
Open commit View diff
7 $pathinfo = pathinfo($_GET['file']);
Vincent Simon over 4 years ago deac5ad

[Web] Fix resource.php and /cache/ warning message

Full commit hash
deac5ad2fe303449a7dc4e442f6f07c32f6f0c14
Author
Vincent Simon <[email protected]>
Date
over 4 years ago
Selected line
8
Open commit View diff
8
same change deac5ad

[Web] Fix resource.php and /cache/ warning message

Full commit hash
deac5ad2fe303449a7dc4e442f6f07c32f6f0c14
Author
Vincent Simon <[email protected]>
Date
over 4 years ago
Selected line
9
if (!array_key_exists('extension', $pathinfo)) {
Open commit View diff
9 if (!array_key_exists('extension', $pathinfo)) {
same change deac5ad

[Web] Fix resource.php and /cache/ warning message

Full commit hash
deac5ad2fe303449a7dc4e442f6f07c32f6f0c14
Author
Vincent Simon <[email protected]>
Date
over 4 years ago
Selected line
10
    http_response_code(404);
Open commit View diff
10 http_response_code(404);
same change deac5ad

[Web] Fix resource.php and /cache/ warning message

Full commit hash
deac5ad2fe303449a7dc4e442f6f07c32f6f0c14
Author
Vincent Simon <[email protected]>
Date
over 4 years ago
Selected line
11
    exit;
Open commit View diff
11 exit;
same change deac5ad

[Web] Fix resource.php and /cache/ warning message

Full commit hash
deac5ad2fe303449a7dc4e442f6f07c32f6f0c14
Author
Vincent Simon <[email protected]>
Date
over 4 years ago
Selected line
12
}
Open commit View diff
12 }
tinect almost 7 years ago cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
13
$extension = strtolower($pathinfo['extension']);
Open commit View diff
13 $extension = strtolower($pathinfo['extension']);
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
14
Open commit View diff
14
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
15
$filepath = '/tmp/' . $pathinfo['basename'];
Open commit View diff
15 $filepath = '/tmp/' . $pathinfo['basename'];
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
16
$content = '';
Open commit View diff
16 $content = '';
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
17
Open commit View diff
17
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
18
if (file_exists($filepath)) {
Open commit View diff
18 if (file_exists($filepath)) {
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
19
    $secondsToCache = 31536000;
Open commit View diff
19 $secondsToCache = 31536000;
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
20
    $expires = gmdate('D, d M Y H:i:s', time() + $secondsToCache) . ' GMT';
Open commit View diff
20 $expires = gmdate('D, d M Y H:i:s', time() + $secondsToCache) . ' GMT';
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
21
Open commit View diff
21
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
22
    if ($extension === 'js') {
Open commit View diff
22 if ($extension === 'js') {
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
23
        header('Content-Type: application/javascript');
Open commit View diff
23 header('Content-Type: application/javascript');
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
24
    } elseif ($extension === 'css') {
Open commit View diff
24 } elseif ($extension === 'css') {
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
25
        header('Content-Type: text/css');
Open commit View diff
25 header('Content-Type: text/css');
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
26
    } else {
Open commit View diff
26 } else {
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
27
        //currently just css and js should be supported!
Open commit View diff
27 //currently just css and js should be supported!
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
28
        exit();
Open commit View diff
28 exit();
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
29
    }
Open commit View diff
29 }
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
30
Open commit View diff
30
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
31
    header("Expires: $expires");
Open commit View diff
31 header("Expires: $expires");
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
32
    header('Pragma: cache');
Open commit View diff
32 header('Pragma: cache');
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
33
    header('Cache-Control: max-age=' . $secondsToCache);
Open commit View diff
33 header('Cache-Control: max-age=' . $secondsToCache);
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
34
    $content = file_get_contents($filepath);
Open commit View diff
34 $content = file_get_contents($filepath);
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
35
}
Open commit View diff
35 }
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
36
Open commit View diff
36
same change cc1bf5d

deliver CSS and JS as external request

Full commit hash
cc1bf5d4263bf80c190fe6c01ca2f16c3d66ee47
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
37
echo $content;
Open commit View diff
37 echo $content;