public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
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/qhandler.php
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
<?php
2
session_start();
3
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
4
if (quarantine('hash_details', $_GET['hash']) === false && !isset($_POST)) {
5
header('Location: /admin');
6
exit();
7
}
8
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
10
$js_minifier->add('/web/js/site/qhandler.js');
12
$template = 'qhandler.twig';
13
$template_data = [
14
'quick_release' => preg_match("/^([a-f0-9]{64})$/", $_POST['quick_release']),
15
'quick_delete' => preg_match("/^([a-f0-9]{64})$/", $_POST['quick_delete']),
16
'is_action_release_delete' => in_array($_GET['action'], array('release', 'delete')),
17
'is_hash_present' => preg_match("/^([a-f0-9]{64})$/", $_GET['hash']),
18
'action' => $_GET['action'],
19
'hash' => $_GET['hash'],
20
'lang_quarantine' => json_encode($lang['quarantine']),
21
];
23
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';